mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-05-06 20:23:05 +00:00
Fix buffer overflow when importing AES 512 key.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
11a30863e8
commit
13755cb4d5
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue