mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
sm: Support AES-256 key.
* sm/decrypt.c (prepare_decryption): Handle a case for AES-256. -- Cherry-pick master commit of: ef2424144a070c9199e40424ec8d9b5a9919aa72 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
ccf5cc8b0b
commit
a9816d5fb1
@ -75,10 +75,10 @@ prepare_decryption (ctrl_t ctrl, const char *hexkeygrip, const char *desc,
|
||||
log_printhex ("pkcs1 encoded session key:", seskey, seskeylen);
|
||||
|
||||
n=0;
|
||||
if (seskeylen == 24 || seskeylen == 16)
|
||||
if (seskeylen == 32 || seskeylen == 24 || seskeylen == 16)
|
||||
{
|
||||
/* Smells like a 3-DES or AES-128 key. This might happen
|
||||
* because a SC has already done the unpacking. A better
|
||||
/* Smells like an AES-128, 3-DES, or AES-256 key. This might
|
||||
* happen because a SC has already done the unpacking. A better
|
||||
* solution would be to test for this only after we triggered
|
||||
* the GPG_ERR_INV_SESSION_KEY. */
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user