add rk delete implementations

This commit is contained in:
Conor Patrick
2020-03-24 17:12:46 -04:00
parent 98bcf647c4
commit d677f8c346
4 changed files with 35 additions and 0 deletions

View File

@@ -449,6 +449,12 @@ void ctap_store_rk(int index, CTAP_residentKey * rk)
}
void ctap_delete_rk(int index)
{
CTAP_residentKey rk;
memset(&rk, 0xff, sizeof(CTAP_residentKey));
memmove(RK_STORE.rks + index, &rk, sizeof(CTAP_residentKey));
}
void ctap_load_rk(int index, CTAP_residentKey * rk)
{