Skip to content

Commit 3fe84bf

Browse files
authored
Merge pull request #8961 from douzzer/20250703-fixes-for-multi-test-reports
20250703-fixes-for-multi-test-reports
2 parents 01de7cc + 1d1a87b commit 3fe84bf

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

wolfcrypt/src/dilithium.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,8 +1386,8 @@ static void dilithium_encode_gamma1_19_bits(const sword32* z, byte* s)
13861386
((word64)z2 << 40) | ((word64)z3 << 60);
13871387
#else
13881388
word32* s32p = (word32*)s;
1389-
s32p[0] = (word16)( z0 | (z1 << 20) );
1390-
s32p[1] = (word16)((z1 >> 12) | (z2 << 8) | (z3 << 28));
1389+
s32p[0] = (word32)( z0 | (z1 << 20) );
1390+
s32p[1] = (word32)((z1 >> 12) | (z2 << 8) | (z3 << 28));
13911391
#endif
13921392
s16p[4] = (word16)((z3 >> 4) );
13931393
#else

wolfcrypt/test/test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23714,7 +23714,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t dh_test(void)
2371423714
}
2371523715
#endif
2371623716

23717-
#if (!defined(HAVE_FIPS) || FIPS_VERSION_GE(7,0)) && \
23717+
#if !defined(WC_NO_RNG) && (!defined(HAVE_FIPS) || FIPS_VERSION_GE(7,0)) && \
2371823718
!defined(HAVE_SELFTEST)
2371923719
agreeSz = DH_TEST_BUF_SIZE;
2372023720
agreeSz2 = DH_TEST_BUF_SIZE;
@@ -23740,7 +23740,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t dh_test(void)
2374023740
if (XMEMCMP(agree, agree2, agreeSz) != 0) {
2374123741
ERROR_OUT(WC_TEST_RET_ENC_NC, done);
2374223742
}
23743-
#endif /* (!HAVE_FIPS || FIPS_VERSION_GE(7,0)) && !HAVE_SELFTEST */
23743+
#endif /* !WC_NO_RNG && (!HAVE_FIPS || FIPS_VERSION_GE(7,0)) && !HAVE_SELFTEST */
2374423744

2374523745
/* Test DH key import / export */
2374623746
#if defined(WOLFSSL_DH_EXTRA) && !defined(NO_FILESYSTEM) && \

wolfssl/wolfcrypt/tfm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ int fp_leading_bit(fp_int *a);
725725
int fp_unsigned_bin_size(const fp_int *a);
726726
int fp_read_unsigned_bin(fp_int *a, const unsigned char *b, int c);
727727
int fp_to_unsigned_bin(fp_int *a, unsigned char *b);
728-
int fp_to_unsigned_bin_len_ct(fp_int *a, unsigned char *b, int c);
728+
int fp_to_unsigned_bin_len_ct(fp_int *a, unsigned char *out, int outSz);
729729
int fp_to_unsigned_bin_len(fp_int *a, unsigned char *b, int c);
730730
int fp_to_unsigned_bin_at_pos(int x, fp_int *t, unsigned char *b);
731731

0 commit comments

Comments
 (0)