mirror of
https://github.com/polhenarejos/pico-hsm
synced 2026-04-26 16:53:02 +02:00
Add sanity check if wrong oid is provided.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user