mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-02-02 16:49:52 +00:00
Fixed buffer overflow when unlocking the device.
Fixes #68. Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
866aac8fe3
commit
f88aad1e2c
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ int cmd_extras() {
|
|||
low_flash_available();
|
||||
}
|
||||
else if (P2(apdu) == SECURE_LOCK_MASK) {
|
||||
memcpy(mkek_mask, apdu.data, apdu.nc);
|
||||
memcpy(mkek_mask, apdu.data, MKEK_KEY_SIZE);
|
||||
has_mkek_mask = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue