From 7228da25f9685bb0bff34d2ee9959308130eb4c6 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Mon, 15 Jul 2019 11:06:15 +0200 Subject: [PATCH] Favor stdint.h types in implementation-specific API --- include/psa/crypto_extra.h | 2 +- library/psa_crypto.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/psa/crypto_extra.h b/include/psa/crypto_extra.h index 0ab589226..b2d4633de 100644 --- a/include/psa/crypto_extra.h +++ b/include/psa/crypto_extra.h @@ -221,7 +221,7 @@ void mbedtls_psa_get_stats( mbedtls_psa_stats_t *stats ); * The library has already been initialized. It is no longer * possible to call this function. */ -psa_status_t mbedtls_psa_inject_entropy(const unsigned char *seed, +psa_status_t mbedtls_psa_inject_entropy(uint8_t *seed, size_t seed_size); #if defined(PSA_PRE_1_0_KEY_DERIVATION) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 08eff519b..ff7654a8f 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -5313,7 +5313,7 @@ psa_status_t psa_generate_random( uint8_t *output, #if defined(MBEDTLS_PSA_INJECT_ENTROPY) #include "mbedtls/entropy_poll.h" -psa_status_t mbedtls_psa_inject_entropy( const unsigned char *seed, +psa_status_t mbedtls_psa_inject_entropy( const uint8_t *seed, size_t seed_size ) { if( global_data.initialized )