mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Add hmac_drbg_set_entropy_len()
This commit is contained in:
parent
6801f39397
commit
4e669c614d
2 changed files with 19 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ int hmac_drbg_init( hmac_drbg_context *ctx,
|
|||
size_t len );
|
||||
|
||||
/**
|
||||
* \brief Simplified HMAC_DRBG initialisation.
|
||||
* \brief Initilisation of simpified HMAC_DRBG (never reseeds).
|
||||
* (For use with deterministic ECDSA.)
|
||||
*
|
||||
* \param ctx HMAC_DRBG context to be initialised
|
||||
|
|
@ -112,6 +112,16 @@ int hmac_drbg_init_buf( hmac_drbg_context *ctx,
|
|||
const md_info_t * md_info,
|
||||
const unsigned char *data, size_t data_len );
|
||||
|
||||
/**
|
||||
* \brief Set the amount of entropy grabbed on each reseed
|
||||
* (Default: HMAC_DRBG_ENTROPY_LEN)
|
||||
*
|
||||
* \param ctx HMAC_DRBG context
|
||||
* \param len Amount of entropy to grab
|
||||
*/
|
||||
void hmac_drbg_set_entropy_len( hmac_drbg_context *ctx,
|
||||
size_t len );
|
||||
|
||||
/**
|
||||
* \brief HMAC_DRBG update state
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue