mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-06-04 14:58:22 +00:00
DRBG documentation: Relate f_entropy arguments to the entropy module
This commit is contained in:
parent
97edf5e1e2
commit
b9cfe58180
|
@ -179,6 +179,16 @@ void mbedtls_ctr_drbg_init( mbedtls_ctr_drbg_context *ctx );
|
||||||
* \brief This function seeds and sets up the CTR_DRBG
|
* \brief This function seeds and sets up the CTR_DRBG
|
||||||
* entropy source for future reseeds.
|
* entropy source for future reseeds.
|
||||||
*
|
*
|
||||||
|
* A typical choice for the \p f_entropy and \p p_entropy parameters is
|
||||||
|
* to use the entropy module:
|
||||||
|
* - \p f_entropy is mbedtls_entropy_func();
|
||||||
|
* - \p p_entropy is an instance of ::mbedtls_entropy_context initialized
|
||||||
|
* with mbedtls_entropy_init() (which registers the platform's default
|
||||||
|
* entropy sources).
|
||||||
|
*
|
||||||
|
* \p f_entropy is always called with a buffer size equal to the entropy
|
||||||
|
* length described in the documentation of mbedtls_ctr_drbg_set_entropy_len().
|
||||||
|
*
|
||||||
* You can provide a personalization string in addition to the
|
* You can provide a personalization string in addition to the
|
||||||
* entropy source, to make this instantiation as unique as possible.
|
* entropy source, to make this instantiation as unique as possible.
|
||||||
*
|
*
|
||||||
|
|
|
@ -122,6 +122,13 @@ void mbedtls_hmac_drbg_init( mbedtls_hmac_drbg_context *ctx );
|
||||||
*
|
*
|
||||||
* Set the initial seed and set up the entropy source for future reseeds.
|
* Set the initial seed and set up the entropy source for future reseeds.
|
||||||
*
|
*
|
||||||
|
* A typical choice for the \p f_entropy and \p p_entropy parameters is
|
||||||
|
* to use the entropy module:
|
||||||
|
* - \p f_entropy is mbedtls_entropy_func();
|
||||||
|
* - \p p_entropy is an instance of ::mbedtls_entropy_context initialized
|
||||||
|
* with mbedtls_entropy_init() (which registers the platform's default
|
||||||
|
* entropy sources).
|
||||||
|
*
|
||||||
* You can provide a personalization string in addition to the
|
* You can provide a personalization string in addition to the
|
||||||
* entropy source, to make this instantiation as unique as possible.
|
* entropy source, to make this instantiation as unique as possible.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue