Add sanity check if wrong oid is provided.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2023-03-22 23:28:55 +01:00
parent 008db87fa7
commit 4d647ba3c8
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -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));