Fix returning kcv

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2022-03-31 19:31:02 +02:00
parent 0cc656c6c0
commit 4400eba974
No known key found for this signature in database
GPG Key ID: C0095B7870A4CCD3

View File

@ -88,6 +88,7 @@ int dkek_kcv(uint8_t *kcv) { //kcv 8 bytes
hash256(dkek+IV_SIZE, 32, hsh);
release_dkek();
memcpy(kcv, hsh, 8);
return HSM_OK;
}
int dkek_kenc(uint8_t *kenc) { //kenc 32 bytes