mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-30 00:14:17 +01:00
Use plain memset() for signature transcoding
By nature, signatures don't need to be kept secret.
This commit is contained in:
parent
54526c3c89
commit
6bf30be457
@ -511,7 +511,7 @@ static int extract_ecdsa_sig_int( unsigned char **from, const unsigned char *end
|
|||||||
return( MBEDTLS_ERR_ASN1_LENGTH_MISMATCH );
|
return( MBEDTLS_ERR_ASN1_LENGTH_MISMATCH );
|
||||||
|
|
||||||
padding_len = to_len - unpadded_len;
|
padding_len = to_len - unpadded_len;
|
||||||
mbedtls_platform_memset( to, 0x00, padding_len );
|
memset( to, 0x00, padding_len );
|
||||||
memcpy( to + padding_len, *from, unpadded_len );
|
memcpy( to + padding_len, *from, unpadded_len );
|
||||||
( *from ) += unpadded_len;
|
( *from ) += unpadded_len;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user