mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-23 02:12:12 +00:00
- (djm) [openbsd-compat/arc4random.c] Zero seed after keying PRNG
This commit is contained in:
parent
44988defb1
commit
2a8699f37c
@ -1,3 +1,6 @@
|
|||||||
|
20140904
|
||||||
|
- (djm) [openbsd-compat/arc4random.c] Zero seed after keying PRNG
|
||||||
|
|
||||||
20140903
|
20140903
|
||||||
- (djm) [defines.h sshbuf.c] Move __predict_true|false to defines.h and
|
- (djm) [defines.h sshbuf.c] Move __predict_true|false to defines.h and
|
||||||
conditionalise to avoid duplicate definition.
|
conditionalise to avoid duplicate definition.
|
||||||
|
@ -87,7 +87,7 @@ _rs_stir(void)
|
|||||||
_rs_init(rnd, sizeof(rnd));
|
_rs_init(rnd, sizeof(rnd));
|
||||||
} else
|
} else
|
||||||
_rs_rekey(rnd, sizeof(rnd));
|
_rs_rekey(rnd, sizeof(rnd));
|
||||||
memset(rnd, 0, sizeof(rnd));
|
explicit_bzero(rnd, sizeof(rnd));
|
||||||
|
|
||||||
/* invalidate rs_buf */
|
/* invalidate rs_buf */
|
||||||
rs_have = 0;
|
rs_have = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user