Tool/software:
Hello,
I added Keys to key store memory using some functions that are visible in the below. Also you can see my main functionin the below . Now I want to encrypt these Keys, however I can not use usual encryption functions because keys are in the Key Store and they are not accessible. Is there any specific functions or any specific way to encrypt these Keys?
I am looking forward to your respond.
/*FUNCTIONS*/
uint32_t AESWriteToKeyStore(const uint8_t *aesKey, uint32_t aesKeyLength, uint32_t keyStoreArea);
uint32_t AESReadFromKeyStore(uint32_t keyStoreArea);
/*MY MAIN FUNCTION*/
uint32_t writeStatus = AESWriteToKeyStore(aesKey, AES_KEY_SIZE, AES_KEY_AREA);
if (writeStatus == AES_SUCCESS) {
uint32_t readStatus = AESReadFromKeyStore(AES_KEY_AREA);
if (readStatus == AES_SUCCESS) {
//THIS PART I WANT TO ENCRYPT THE KEYS THAT ARE IN THE KEY STORE
}
}
Regards,
Cetin