1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Add hmac_drbg_set_entropy_len()

This commit is contained in:
Manuel Pégourié-Gonnard
2014-01-30 18:06:08 +01:00
parent 6801f39397
commit 4e669c614d
2 changed files with 19 additions and 1 deletions

View File

@ -156,6 +156,14 @@ int hmac_drbg_init( hmac_drbg_context *ctx,
return( 0 );
}
/*
* Set entropy length grabbed for reseeds
*/
void hmac_drbg_set_entropy_len( hmac_drbg_context *ctx, size_t len )
{
ctx->entropy_len = len;
}
/*
* HMAC_DRBG random function with optional additional data (10.1.2.5)
*/