mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-05-03 21:36:25 +00:00
Fix symmetric AES encryption/decryption. It works!
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
e36c80761e
commit
855b51730b
1 changed files with 1 additions and 0 deletions
1
sc_hsm.c
1
sc_hsm.c
|
|
@ -1474,6 +1474,7 @@ static int cmd_cipher_sym() {
|
|||
return SW_EXEC_ERROR();
|
||||
}
|
||||
}
|
||||
res_APDU_size = apdu.cmd_apdu_data_len;
|
||||
mbedtls_aes_free(&aes);
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue