projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
8794274
)
Use cryptographically strong random when generating keys.
author
Steffan Karger
<steffan@karger.me>
Tue, 29 Apr 2014 18:28:05 +0000
(20:28 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Thu, 1 May 2014 12:56:07 +0000
(14:56 +0200)
From the OpenSSL manual:
"Byte sequences generated by RAND_pseudo_bytes() will be unique
if they are of sufficient length, but are not necessarily unpredictable."
So, replace these call with RAND_bytes() to get cryptographically strong
key material.
Signed-off-by: Steffan Karger <steffan@karger.me>
No differences found