pkwrite: add an explicit cast to size_t
This commit is contained in:
parent
d6d07909f2
commit
3bd69dda1a
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ int mbedtls_pk_write_pubkey( unsigned char **p, unsigned char *start,
|
|||
if ( *p < start )
|
||||
return( MBEDTLS_ERR_PK_BAD_INPUT_DATA );
|
||||
|
||||
buffer_size = *p - start;
|
||||
buffer_size = (size_t)( *p - start );
|
||||
if ( psa_export_public_key( *key_slot, start, buffer_size, &len )
|
||||
!= PSA_SUCCESS )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue