Skip to content

Commit a337167

Browse files
authored
Merge pull request #342 from Patater/reseed-counter-value-comment
ctr_drbg: Clarify reseed_counter values before seeding
2 parents 448d1cc + a15c713 commit a337167

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/mbedtls/ctr_drbg.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@ typedef struct mbedtls_ctr_drbg_context
177177
* minus one.
178178
* Before the initial seeding, this field
179179
* contains the amount of entropy in bytes
180-
* to use as a nonce for the initial seeding.
180+
* to use as a nonce for the initial seeding,
181+
* or -1 if no nonce length has been explicitly
182+
* set (see mbedtls_ctr_drbg_set_nonce_len()).
181183
*/
182184
int prediction_resistance; /*!< This determines whether prediction
183185
resistance is enabled, that is

0 commit comments

Comments
 (0)