aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-openpgp.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2019-03-13 00:12:14 +0000
committerNIIBE Yutaka <[email protected]>2019-03-13 00:12:14 +0000
commitaf3efd149f555d36a455cb2ea311ff81caf5124c (patch)
tree55977be217c169e348781c4460e59121be607e86 /scd/app-openpgp.c
parentdirmngr: Avoid testing for Tor with --gpgconf-list. (diff)
downloadgnupg-af3efd149f555d36a455cb2ea311ff81caf5124c.tar.gz
gnupg-af3efd149f555d36a455cb2ea311ff81caf5124c.zip
g10: Fix symmetric cipher algo constant for ECDH.
* g10/ecdh.c (kek_params_table): Use CIPHER_ALGO_AES192 for ECC strength 384, according to RFC-6637. -- Reported-by: Trevor Bentley Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'scd/app-openpgp.c')
-rw-r--r--scd/app-openpgp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index 8b6286a7d..62b3cbc2f 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -1448,8 +1448,8 @@ ecdh_params (const char *curve)
/* See RFC-6637 for those constants.
0x03: Number of bytes
0x01: Version for this parameter format
- KDF algo
- KEK algo
+ KDF hash algo
+ KEK symmetric cipher algo
*/
if (nbits <= 256)
return (const unsigned char*)"\x03\x01\x08\x07";