We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 94e3caa + 03cee6f commit e98fb8fCopy full SHA for e98fb8f
3 files changed
tests/api/test_ed25519.c
@@ -347,13 +347,17 @@ int test_wc_ed25519_export(void)
347
XMEMSET(&rng, 0, sizeof(WC_RNG));
348
349
ExpectIntEQ(wc_ed25519_init(&key), 0);
350
+
351
+#if !defined(HAVE_FIPS) || FIPS_VERSION3_GE(7,0,0)
352
/* Reject export when private key not set. */
353
PRIVATE_KEY_UNLOCK();
354
ExpectIntEQ(wc_ed25519_export_private_only(&key, priv, &privSz),
355
WC_NO_ERR_TRACE(BAD_FUNC_ARG));
356
ExpectIntEQ(wc_ed25519_export_private(&key, priv, &privSz),
357
358
PRIVATE_KEY_LOCK();
359
+#endif /* !HAVE_FIPS || FIPS_VERSION3_GE(7,0,0) */
360
361
ExpectIntEQ(wc_InitRng(&rng), 0);
362
#ifdef HAVE_ED25519_MAKE_KEY
363
ExpectIntEQ(wc_ed25519_make_key(&rng, ED25519_KEY_SIZE, &key), 0);
@@ -392,12 +396,16 @@ int test_wc_ed25519_export(void)
392
396
wc_ed25519_free(&key);
393
397
394
398
ExpectIntEQ(wc_ed25519_import_public(pub, pubSz, &key), 0);
399
400
395
401
402
403
404
405
406
407
408
409
#endif
410
411
DoExpectIntEQ(wc_FreeRng(&rng), 0);
tests/api/test_ed448.c
@@ -324,13 +324,17 @@ int test_wc_ed448_export(void)
324
325
326
ExpectIntEQ(wc_ed448_init(&key), 0);
327
328
329
330
331
ExpectIntEQ(wc_ed448_export_private_only(&key, priv, &privSz),
332
333
ExpectIntEQ(wc_ed448_export_private(&key, priv, &privSz),
334
335
336
337
338
339
ExpectIntEQ(wc_ed448_make_key(&rng, ED448_KEY_SIZE, &key), 0);
340
@@ -364,12 +368,16 @@ int test_wc_ed448_export(void)
364
368
wc_ed448_free(&key);
365
369
366
370
ExpectIntEQ(wc_ed448_import_public(pub, pubSz, &key), 0);
371
372
367
373
374
375
376
377
378
379
380
381
382
383
wolfcrypt/test/test.c
@@ -16840,7 +16840,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t aes_cbc_test(void)
16840
* the wrong ciphertext block into aes->reg between calls (e.g. the
16841
* first block instead of the last) will fail the second KAT. */
16842
{
16843
- WOLFSSL_SMALL_STACK_STATIC const byte msg4[] = {
+ static const byte msg4[] = {
16844
0x6b,0xc1,0xbe,0xe2,0x2e,0x40,0x9f,0x96,
16845
0xe9,0x3d,0x7e,0x11,0x73,0x93,0x17,0x2a,
16846
0xae,0x2d,0x8a,0x57,0x1e,0x03,0xac,0x9c,
@@ -16850,7 +16850,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t aes_cbc_test(void)
16850
0xf6,0x9f,0x24,0x45,0xdf,0x4f,0x9b,0x17,
16851
0xad,0x2b,0x41,0x7b,0xe6,0x6c,0x37,0x10
16852
};
16853
- WOLFSSL_SMALL_STACK_STATIC const byte verify4[] = {
+ static const byte verify4[] = {
16854
0x76,0x49,0xab,0xac,0x81,0x19,0xb2,0x46,
16855
0xce,0xe9,0x8e,0x9b,0x12,0xe9,0x19,0x7d,
16856
0x50,0x86,0xcb,0x9b,0x50,0x72,0x19,0xee,
0 commit comments