1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Add Tests for psa crypto entropy incjection

Adjust code to handle and work with MBEDTLS_ENTROPY_BLOCK_SIZE definition option
This commit is contained in:
Netanel Gonen
2018-11-19 11:53:55 +02:00
committed by avolinski
parent ee2ffd311b
commit 21f37cbbec
5 changed files with 23 additions and 13 deletions

View File

@ -91,8 +91,10 @@ void mbedtls_psa_crypto_free( void );
*
* \param seed[in] Buffer containing the seed value to inject.
* \param seed_size Size of the \p seed buffer.
* The size of the seed must be
* at least #MBEDTLS_ENTROPY_MIN_PLATFORM bytes
* The size of the seed must be equal or larger than any
* of the values defined both in
* #MBEDTLS_ENTROPY_MIN_PLATFORM
* and in the #MBEDTLS_ENTROPY_BLOCK_SIZE defines
* and at most #MBEDTLS_ENTROPY_MAX_SEED_SIZE bytes.
*
* \retval #PSA_SUCCESS