mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-28 08:37:25 +00:00
Take advantage of now-public macro in pk.c
Used to be private, hence the duplication, but that's been fixed in the meantime, I guess we just missed this occurrence. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
6958355a51
commit
4dacf58d6d
@ -484,8 +484,7 @@ int mbedtls_pk_verify_ext( mbedtls_pk_type_t type, const void *options,
|
||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||
if( pss_opts->mgf1_hash_id == md_alg )
|
||||
{
|
||||
/* see RSA_PUB_DER_MAX_BYTES in pkwrite.c */
|
||||
unsigned char buf[ 38 + 2 * MBEDTLS_MPI_MAX_SIZE ];
|
||||
unsigned char buf[MBEDTLS_PK_RSA_PUB_DER_MAX_BYTES];
|
||||
unsigned char *p;
|
||||
int key_len;
|
||||
size_t signature_length;
|
||||
|
Loading…
x
Reference in New Issue
Block a user