Skip to content

Commit c1bb535

Browse files
committed
Small workaround for CompCert compatibility.
1 parent 87a796d commit c1bb535

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_crypto.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6783,7 +6783,7 @@ test_RSA_keygen(const char *name, br_rsa_keygen kg, br_rsa_compute_modulus cm,
67836783
uint32_t mod[256];
67846784
uint32_t cc;
67856785
size_t u, v;
6786-
unsigned char sig[257], hv[32], hv2[sizeof hv];
6786+
unsigned char sig[257], hv[32], hv2[32];
67876787
unsigned mask1, mask2;
67886788
int j;
67896789

@@ -8316,7 +8316,7 @@ test_EC_inner(const char *sk, const char *sU,
83168316
static void
83178317
test_EC_P256_carry_inner(const br_ec_impl *impl, const char *sP, const char *sQ)
83188318
{
8319-
unsigned char P[65], Q[sizeof P], k[1];
8319+
unsigned char P[65], Q[65], k[1];
83208320
size_t plen, qlen;
83218321

83228322
plen = hextobin(P, sP);

0 commit comments

Comments
 (0)