@@ -48,7 +48,6 @@ extern "C" {
4848void mbedtls_psa_crypto_free ( void );
4949
5050
51- #if ( defined(MBEDTLS_ENTROPY_NV_SEED ) && defined(MBEDTLS_PSA_HAS_ITS_IO ) )
5251/**
5352 * \brief Inject an initial entropy seed for the random generator into
5453 * secure storage.
@@ -89,13 +88,20 @@ void mbedtls_psa_crypto_free( void );
8988 *
9089 * This is an Mbed TLS extension.
9190 *
92- * \param seed[in] Buffer containing the seed value to inject.
93- * \param seed_size Size of the \p seed buffer.
94- * The size of the seed in bytes must be greater
95- * or equal to both #MBEDTLS_ENTROPY_MIN_PLATFORM
96- * and #MBEDTLS_ENTROPY_BLOCK_SIZE.
97- * It must be less or equal to
98- * #MBEDTLS_ENTROPY_MAX_SEED_SIZE.
91+ * \note This function is only available on the following platforms:
92+ * * If the compile-time options MBEDTLS_ENTROPY_NV_SEED and
93+ * MBEDTLS_PSA_HAS_ITS_IO are both enabled. Note that you
94+ * must provide compatible implementations of mbedtls_nv_seed_read
95+ * and mbedtls_nv_seed_write.
96+ * * In a client-server integration of PSA Cryptography, on the client side,
97+ * if the server supports this feature.
98+ * \param[in] seed Buffer containing the seed value to inject.
99+ * \param[in] seed_size Size of the \p seed buffer.
100+ * The size of the seed in bytes must be greater
101+ * or equal to both #MBEDTLS_ENTROPY_MIN_PLATFORM
102+ * and #MBEDTLS_ENTROPY_BLOCK_SIZE.
103+ * It must be less or equal to
104+ * #MBEDTLS_ENTROPY_MAX_SEED_SIZE.
99105 *
100106 * \retval #PSA_SUCCESS
101107 * The seed value was injected successfully. The random generator
@@ -114,7 +120,6 @@ void mbedtls_psa_crypto_free( void );
114120psa_status_t mbedtls_psa_inject_entropy (const unsigned char * seed ,
115121 size_t seed_size );
116122
117- #endif
118123
119124#ifdef __cplusplus
120125}
0 commit comments