From c7529c910bdc8cbc071ae97288fcdede6e17c7bc Mon Sep 17 00:00:00 2001 From: Jaeden Amero <jaeden.amero@arm.com> Date: Mon, 19 Aug 2019 11:08:04 +0100 Subject: [PATCH] crypto_extra: Use const seed for entropy injection The crypto.c implementation of psa_inject_entropy() didn't match the declaration in crypto_extra.h. Use a const seed in both files. --- include/psa/crypto_extra.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/psa/crypto_extra.h b/include/psa/crypto_extra.h index 355012236..62d7b824a 100644 --- a/include/psa/crypto_extra.h +++ b/include/psa/crypto_extra.h @@ -332,7 +332,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(uint8_t *seed, +psa_status_t mbedtls_psa_inject_entropy(const uint8_t *seed, size_t seed_size); #if defined(PSA_PRE_1_0_KEY_DERIVATION)