Skip to content

Commit 9de1996

Browse files
committed
Fix minor naming issues in keywrap test
- Use macro instead of hard coded keyid - Fix function name in error prints
1 parent da7231d commit 9de1996

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/wh_test_keywrap.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ static int _Rsa_UseWrappedKeyFromNvm(whClientContext* client, void* flashCtx,
542542
whKeyId serverKekId = WH_TEST_KEKID;
543543

544544
RsaKey rsa[1];
545-
whKeyId rsaKeyId = 2;
545+
whKeyId rsaKeyId = WH_TEST_RSA_KEYID;
546546
uint8_t rsaWrappedKey[WH_TEST_RSA_WRAPPED_KEYSIZE];
547547

548548
const uint8_t ciphertext[] = {
@@ -658,7 +658,7 @@ int whTest_Client_WriteWrappedKeysToNvm(whClientContext* client, void* flashCtx,
658658
#ifndef NO_RSA
659659
ret = _Rsa_WriteWrappedKeyToNvm(client, flashCtx, flashCb);
660660
if (ret != WH_ERROR_OK) {
661-
WH_ERROR_PRINT("Failed to _WriteWrappedAesGcmKeyToFlash %d\n", ret);
661+
WH_ERROR_PRINT("Failed to _Rsa_WriteWrappedKeyToNvm %d\n", ret);
662662
return ret;
663663
}
664664
#endif /* !NO_RSA */
@@ -686,7 +686,7 @@ int whTest_Client_UseWrappedKeysFromNvm(whClientContext* client, void* flashCtx,
686686
#ifndef NO_RSA
687687
ret = _Rsa_UseWrappedKeyFromNvm(client, flashCtx, flashCb);
688688
if (ret != WH_ERROR_OK) {
689-
WH_ERROR_PRINT("Failed to _UseWrappedAesGcmKeyToFlash %d\n", ret);
689+
WH_ERROR_PRINT("Failed to _Rsa_UseWrappedKeyFromNvm %d\n", ret);
690690
return ret;
691691
}
692692
#endif /* !NO_RSA */

0 commit comments

Comments
 (0)