mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-02-07 19:18:23 +00:00
Add sanity check if wrong oid is provided.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
008db87fa7
commit
4d647ba3c8
1 changed files with 3 additions and 0 deletions
|
|
@ -599,6 +599,9 @@ int cmd_cipher_sym() {
|
|||
}
|
||||
res_APDU_size = enc_len;
|
||||
}
|
||||
else {
|
||||
return SW_WRONG_DATA();
|
||||
}
|
||||
}
|
||||
else {
|
||||
mbedtls_platform_zeroize(kdata, sizeof(kdata));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue