aboutsummaryrefslogtreecommitdiffstats
path: root/sm/encrypt.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2024-01-23 06:36:26 +0000
committerNIIBE Yutaka <[email protected]>2024-01-23 06:36:26 +0000
commit9408c6bf51722a4b268f8fa9152998fd73695bcc (patch)
tree7978d9395fa8854ff9123209376909ef691547e1 /sm/encrypt.c
parentgpg: Use ephemeral mode for generating card keys. (diff)
downloadgnupg-9408c6bf51722a4b268f8fa9152998fd73695bcc.tar.gz
gnupg-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 <[email protected]>
Diffstat (limited to '')
-rw-r--r--sm/encrypt.c2
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