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
1 changed files with 1 additions and 2 deletions
|
@ -484,8 +484,7 @@ int mbedtls_pk_verify_ext( mbedtls_pk_type_t type, const void *options,
|
||||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||||
if( pss_opts->mgf1_hash_id == md_alg )
|
if( pss_opts->mgf1_hash_id == md_alg )
|
||||||
{
|
{
|
||||||
/* see RSA_PUB_DER_MAX_BYTES in pkwrite.c */
|
unsigned char buf[MBEDTLS_PK_RSA_PUB_DER_MAX_BYTES];
|
||||||
unsigned char buf[ 38 + 2 * MBEDTLS_MPI_MAX_SIZE ];
|
|
||||||
unsigned char *p;
|
unsigned char *p;
|
||||||
int key_len;
|
int key_len;
|
||||||
size_t signature_length;
|
size_t signature_length;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue