Fix buffer overflow when importing AES 512 key.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2023-03-20 17:06:06 +01:00
parent 11a30863e8
commit 13755cb4d5
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -75,7 +75,7 @@ int cmd_key_unwrap() {
}
}
else if (key_type & HSM_KEY_AES) {
uint8_t aes_key[32];
uint8_t aes_key[64];
int key_size = 0, aes_type = 0;
do {
r = dkek_decode_key(++kdom,