How can i wipe user key (FUS/WS CKS) when all index positions are used?
For storing my crypto key I'm using the following function to store the key in the WB55 core 2 secure key storage:
uint8_t key_index = 1;
SHCI_CmdStatus_t result;
SHCI_C2_FUS_StoreUsrKey_Cmd_Param_t CKS_param;
CKS_param.KeyType = KEYTYPE_SIMPLE;
CKS_param.KeySize = KEYSIZE_32;
memcpy(CKS_param.KeyData, key, KEYSIZE_32);
result = SHCI_C2_FUS_StoreUsrKey(&CKS_param, &key_index);
DPRINTF("Key stored at index: %d", key_index);And than loading it into the aes crypto peripheral.
Al works fine until the index reaches the end positions(100 keys).
After that writing a new key will always fail.
I can't find a function to wipe the user key(s).
I there a way to achieve this?
How can i wipe or overwrite a user key?
I think I misunderstand the use of CKS...
