mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-25 09:05:27 +00:00
pkwrite: add an explicit cast to size_t
This commit is contained in:
parent
d6d07909f2
commit
3bd69dda1a
|
@ -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