Support for ECDH keys is a great and much needed improvement. However, while I can create such keys in interactive mode, I receive an Invalid digest algorithm error, if I try to generate keys in batch mode.
Here's the command I use:
gpg --batch --full-gen-key --expert --homedir /tmp/gpgtest gpgopts (gen-key is also getting the same error)
In gpgopts file, I have the following options:
%no-protection
Key-Type: ecdh
Key-Curve: ed25519
#Key-Type: ecdsa
#Key-Curve: nistp384
Subkey-Type: ecdh
Subkey-Curve: cv25519
Subkey-Usage: encrypt
Expire-Date: 0
Name-Comment: "my secrets"
Name-Real: "arctic"
Preferences: SHA512 SHA384 SHA256 SHA224 AES256 TWOFISH AES192 AES ZLIB BZIP2 ZIP Uncompressed
%commit
I tried various key types, and while ECDH curve 25519 is accepted for subkeys, the ECDSA nistp384 is the strongest key type that I could use, in batch mode.
Please let me know if any additional information is required.