Skip to content

Commit 47ed447

Browse files
Merge pull request wolfSSL#8632 from douzzer/20250403-fixes
20250403-fixes
2 parents 151b9f0 + b5d9997 commit 47ed447

File tree

4 files changed

+832
-822
lines changed

4 files changed

+832
-822
lines changed

configure.ac

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,14 @@ AS_CASE([$ENABLED_FIPS],
508508
ENABLED_FIPS="yes"
509509
# for dev, DEF_SP_MATH and DEF_FAST_MATH follow non-FIPS defaults (currently sp-math-all)
510510
],
511+
[v5-kcapi],[
512+
FIPS_VERSION="v5-dev"
513+
HAVE_FIPS_VERSION_MAJOR=5
514+
HAVE_FIPS_VERSION_MINOR=3
515+
HAVE_FIPS_VERSION_PATCH=0
516+
ENABLED_FIPS="yes"
517+
# for dev, DEF_SP_MATH and DEF_FAST_MATH follow non-FIPS defaults (currently sp-math-all)
518+
],
511519
[v6],[
512520
FIPS_VERSION="v6"
513521
HAVE_FIPS_VERSION=6

tests/api.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4933,11 +4933,13 @@ static int test_wolfSSL_FPKI(void)
49334933
DYNAMIC_TYPE_TMP_BUFFER));
49344934
ExpectIntEQ(wc_GetFASCNFromCert(&cert, fascn, &fascnSz), 0);
49354935
XFREE(fascn, NULL, DYNAMIC_TYPE_TMP_BUFFER);
4936+
fascn = NULL;
49364937

49374938
ExpectIntEQ(wc_GetUUIDFromCert(&cert, NULL, &uuidSz), WC_NO_ERR_TRACE(LENGTH_ONLY_E));
49384939
ExpectNotNull(uuid = (byte*)XMALLOC(uuidSz, NULL, DYNAMIC_TYPE_TMP_BUFFER));
49394940
ExpectIntEQ(wc_GetUUIDFromCert(&cert, uuid, &uuidSz), 0);
49404941
XFREE(uuid, NULL, DYNAMIC_TYPE_TMP_BUFFER);
4942+
uuid = NULL;
49414943
wc_FreeDecodedCert(&cert);
49424944

49434945
XMEMSET(buf, 0, 4096);

wolfcrypt/src/port/arm/thumb2-aes-asm_c.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1908,7 +1908,7 @@ void AES_ECB_decrypt(const unsigned char* in, unsigned char* out,
19081908
register word32* L_AES_Thumb2_td_ecb_c __asm__ ("r5") =
19091909
(word32*)L_AES_Thumb2_td_ecb;
19101910

1911-
register byte L_AES_Thumb2_td4_c __asm__ ("r6") = (byte)&L_AES_Thumb2_td4;
1911+
register byte L_AES_Thumb2_td4_c __asm__ ("r6") = (byte)(word32)&L_AES_Thumb2_td4;
19121912

19131913
#else
19141914
register word32* L_AES_Thumb2_td_ecb_c = (word32*)L_AES_Thumb2_td_ecb;
@@ -2134,7 +2134,7 @@ void AES_CBC_decrypt(const unsigned char* in, unsigned char* out,
21342134
register word32* L_AES_Thumb2_td_ecb_c __asm__ ("r6") =
21352135
(word32*)L_AES_Thumb2_td_ecb;
21362136

2137-
register byte L_AES_Thumb2_td4_c __asm__ ("r7") = (byte)&L_AES_Thumb2_td4;
2137+
register byte L_AES_Thumb2_td4_c __asm__ ("r7") = (byte)(word32)&L_AES_Thumb2_td4;
21382138

21392139
#else
21402140
register word32* L_AES_Thumb2_td_ecb_c = (word32*)L_AES_Thumb2_td_ecb;

0 commit comments

Comments
 (0)