mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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>
This commit is contained in:
parent
af3efd149f
commit
f199b627ce
2 changed files with 4 additions and 4 deletions
|
@ -1448,13 +1448,13 @@ ecdh_params (const char *curve)
|
|||
/* See RFC-6637 for those constants.
|
||||
0x03: Number of bytes
|
||||
0x01: Version for this parameter format
|
||||
KDF hash algo
|
||||
KEK symmetric cipher algo
|
||||
KEK digest algorithm
|
||||
KEK cipher algorithm
|
||||
*/
|
||||
if (nbits <= 256)
|
||||
return (const unsigned char*)"\x03\x01\x08\x07";
|
||||
else if (nbits <= 384)
|
||||
return (const unsigned char*)"\x03\x01\x09\x08";
|
||||
return (const unsigned char*)"\x03\x01\x09\x09";
|
||||
else
|
||||
return (const unsigned char*)"\x03\x01\x0a\x09";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue