pike.git/
src/
post_modules/
Nettle/
nettle.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2017-11-26
2017-11-26 17:36:35 by Martin Nilsson <nilsson@fastmail.com>
8ba3303d734f41b2db871d96fe1b63e617f811e8 (
6
lines) (+
6
/-
0
)
[
Show
|
Annotate
]
Branch:
master
Check for entropy underflow when the per-call output limit is reached.
494:
str += 16; if( !(stored % (1<<19)) )
+
{
ctr_debug_update(NULL);
-
+
THIS->reseed_counter++;
+
if(THIS->reseed_counter>THIS->reseed_interval)
+
apply_current(f_Nettle_AES128_CTR_DRBG_entropy_underflow_fun_num, 0);
}
-
+
}
if( len>stored ) {