mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-26 03:35:35 +00:00
Change buf size to a valid size
Change the size of `buf` to a valid hash size, in `ecdsa_prim_random()`
This commit is contained in:
parent
2ab14bb2ca
commit
7a977881b4
@ -14,7 +14,7 @@ void ecdsa_prim_random( int id )
|
|||||||
mbedtls_ecp_point Q;
|
mbedtls_ecp_point Q;
|
||||||
mbedtls_mpi d, r, s;
|
mbedtls_mpi d, r, s;
|
||||||
rnd_pseudo_info rnd_info;
|
rnd_pseudo_info rnd_info;
|
||||||
unsigned char buf[66];
|
unsigned char buf[MBEDTLS_MD_MAX_SIZE];
|
||||||
|
|
||||||
mbedtls_ecp_group_init( &grp );
|
mbedtls_ecp_group_init( &grp );
|
||||||
mbedtls_ecp_point_init( &Q );
|
mbedtls_ecp_point_init( &Q );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user