diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2024-01-23 07:36:26 +0100 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2024-01-23 07:36:26 +0100 |
commit | 9408c6bf51722a4b268f8fa9152998fd73695bcc (patch) | |
tree | 7978d9395fa8854ff9123209376909ef691547e1 /sm | |
parent | gpg: Use ephemeral mode for generating card keys. (diff) | |
download | gnupg2-9408c6bf51722a4b268f8fa9152998fd73695bcc.tar.xz gnupg2-9408c6bf51722a4b268f8fa9152998fd73695bcc.zip |
sm: Fix ECDH encryption with dhSinglePass-stdDH-sha384kdf-scheme.
* sm/encrypt.c (ecdh_encrypt): Cipher is AES192 for id-aes192-wrap.
--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'sm')
-rw-r--r-- | sm/encrypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/encrypt.c b/sm/encrypt.c index 3c43edf61..741fe6206 100644 --- a/sm/encrypt.c +++ b/sm/encrypt.c @@ -260,7 +260,7 @@ ecdh_encrypt (DEK dek, gcry_sexp_t s_pkey, gcry_sexp_t *r_encval) encr_algo_str = "1.3.132.1.11.2"; wrap_algo_str = "2.16.840.1.101.3.4.1.25"; hash_algo = GCRY_MD_SHA384; - cipher_algo = GCRY_CIPHER_AES256; + cipher_algo = GCRY_CIPHER_AES192; keylen = 24; } else |