mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-01-17 09:28:05 +00:00
Clearing hash, just in case.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
0556a528f3
commit
be911a7aa7
1 changed files with 1 additions and 0 deletions
|
|
@ -158,6 +158,7 @@ int import_dkek_share(uint8_t id, const uint8_t *share) {
|
|||
int dkek_kcv(uint8_t id, uint8_t *kcv) { //kcv 8 bytes
|
||||
uint8_t hsh[32], dkek[DKEK_KEY_SIZE];
|
||||
memset(kcv, 0, 8);
|
||||
memset(hsh, 0, sizeof(hsh));
|
||||
int r = load_dkek(id, dkek);
|
||||
if (r != CCID_OK)
|
||||
return r;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue