summaryrefslogtreecommitdiffstats
path: root/g10/ecdh.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2019-03-14 00:23:38 +0100
committerNIIBE Yutaka <gniibe@fsij.org>2019-03-14 00:23:38 +0100
commitf199b627ce512c8495af5c9bd1c81127ccde3ca0 (patch)
treebf72f7faba3f9d34f9ab6f18f2d7b8489fbb3a79 /g10/ecdh.c
parentg10: Fix symmetric cipher algo constant for ECDH. (diff)
downloadgnupg2-f199b627ce512c8495af5c9bd1c81127ccde3ca0.tar.xz
gnupg2-f199b627ce512c8495af5c9bd1c81127ccde3ca0.zip
Fix the previous commit.
* g10/ecdh.c (kek_params_table): Revert the change. * scd/app-openpgp.c (ecdh_params): Use CIPHER_ALGO_AES256 for 384-bit key. -- Avoiding CIPHER_ALGO_AES192 is intentional here. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'g10/ecdh.c')
-rw-r--r--g10/ecdh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/ecdh.c b/g10/ecdh.c
index 5bbea96c0..6587cc4b4 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_AES192 },
+ { 384, DIGEST_ALGO_SHA384, CIPHER_ALGO_AES256 },
/* Note: 528 is 521 rounded to the 8 bit boundary */
{ 528, DIGEST_ALGO_SHA512, CIPHER_ALGO_AES256 }