mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-11 22:45:30 +00:00
Fix too small buffer in a test
This commit is contained in:
parent
0efa8567d8
commit
b46f1bd451
|
@ -5,7 +5,7 @@ static int load_public_key( int grp_id, const char *point_str,
|
||||||
mbedtls_ecp_keypair *ecp )
|
mbedtls_ecp_keypair *ecp )
|
||||||
{
|
{
|
||||||
int ok = 0;
|
int ok = 0;
|
||||||
unsigned char point_buf[MBEDTLS_ECP_MAX_BYTES];
|
unsigned char point_buf[MBEDTLS_ECP_MAX_PT_LEN];
|
||||||
size_t point_len = unhexify( point_buf, point_str );
|
size_t point_len = unhexify( point_buf, point_str );
|
||||||
|
|
||||||
TEST_ASSERT( mbedtls_ecp_group_load( &ecp->grp, grp_id ) == 0 );
|
TEST_ASSERT( mbedtls_ecp_group_load( &ecp->grp, grp_id ) == 0 );
|
||||||
|
|
Loading…
Reference in a new issue