diff options
author | NIIBE Yutaka <[email protected]> | 2019-03-13 00:12:14 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-03-27 11:29:45 +0000 |
commit | 38c2a9a644e0bc1e2594ea437a5930982f7b8c4e (patch) | |
tree | 84cbbb40ba7d886767854819957e1e5fe096d9e1 /g10/ecdh.c | |
parent | gpg: Don't use EdDSA algo ID for ECDSA curves. (diff) | |
download | gnupg-38c2a9a644e0bc1e2594ea437a5930982f7b8c4e.tar.gz gnupg-38c2a9a644e0bc1e2594ea437a5930982f7b8c4e.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]>
(cherry picked from commit af3efd149f555d36a455cb2ea311ff81caf5124c)
Diffstat (limited to '')
-rw-r--r-- | g10/ecdh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/ecdh.c b/g10/ecdh.c index 6c2a56b84..dcb3cdec9 100644 --- a/g10/ecdh.c +++ b/g10/ecdh.c @@ -39,7 +39,7 @@ static const struct /* Note: Must be sorted by ascending values for QBITS. */ { { 256, DIGEST_ALGO_SHA256, CIPHER_ALGO_AES }, - { 384, DIGEST_ALGO_SHA384, CIPHER_ALGO_AES256 }, + { 384, DIGEST_ALGO_SHA384, CIPHER_ALGO_AES192 }, /* Note: 528 is 521 rounded to the 8 bit boundary */ { 528, DIGEST_ALGO_SHA512, CIPHER_ALGO_AES256 } |