We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de26517 commit 22e2aa3Copy full SHA for 22e2aa3
1 file changed
stsafe/wolfssl_stsafe_full_test.c
@@ -218,7 +218,7 @@ static int test_ecdh_p256(void)
218
int i;
219
220
printf("\nTest: ECDH P-256 Key Exchange (HW + SW)\n");
221
- printf(" Note: STSAFE key used for one side, software for other\n");
+ printf(" Note: STSAFE key (ephemeral slot 0xFF) for one side, software for other\n");
222
223
ret = wc_InitRng(&rng);
224
if (ret != 0) {
@@ -236,6 +236,9 @@ static int test_ecdh_p256(void)
236
return -1;
237
}
238
239
+ /* Configure hardware key for ECDH - uses ephemeral slot 0xFF */
240
+ keyHW.devCtx = (void*)(uintptr_t)STSAFE_KEY_SLOT_EPHEMERAL;
241
+
242
/* Initialize software key (INVALID_DEVID for software) */
243
ret = wc_ecc_init_ex(&keySW, NULL, INVALID_DEVID);
244
0 commit comments