Skip to content

Commit 7a97788

Browse files
Ron EldorRon Eldor
authored andcommitted
Change buf size to a valid size
Change the size of `buf` to a valid hash size, in `ecdsa_prim_random()`
1 parent 2ab14bb commit 7a97788

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/suites/test_suite_ecdsa.function

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void ecdsa_prim_random( int id )
1414
mbedtls_ecp_point Q;
1515
mbedtls_mpi d, r, s;
1616
rnd_pseudo_info rnd_info;
17-
unsigned char buf[66];
17+
unsigned char buf[MBEDTLS_MD_MAX_SIZE];
1818

1919
mbedtls_ecp_group_init( &grp );
2020
mbedtls_ecp_point_init( &Q );

0 commit comments

Comments
 (0)