Skip to content

Commit c0ace35

Browse files
mbedtls_ctr_drbg_context: minor documentation improvements
1 parent 460988a commit c0ace35

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

include/mbedtls/ctr_drbg.h

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,19 @@ extern "C" {
169169
typedef struct mbedtls_ctr_drbg_context
170170
{
171171
unsigned char counter[16]; /*!< The counter (V). */
172-
int reseed_counter; /*!< The reseed counter. */
172+
int reseed_counter; /*!< The reseed counter.
173+
* This is the number of requests that have
174+
* been made since the last (re)seeding,
175+
* minus one. */
173176
int prediction_resistance; /*!< This determines whether prediction
174177
resistance is enabled, that is
175178
whether to systematically reseed before
176179
each random generation. */
177180
size_t entropy_len; /*!< The amount of entropy grabbed on each
178-
seed or reseed operation. */
179-
int reseed_interval; /*!< The reseed interval. */
181+
seed or reseed operation, in bytes. */
182+
int reseed_interval; /*!< The reseed interval.
183+
* This is the maximum number of requests
184+
* that can be made between reseedings. */
180185

181186
mbedtls_aes_context aes_ctx; /*!< The AES context. */
182187

0 commit comments

Comments
 (0)