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:
Name-Comment: "my secrets"
Preferences: SHA512 SHA384 SHA256 SHA224 AES256 TWOFISH AES192 AES ZLIB BZIP2 ZIP Uncompressed
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.