diff options
author | miod <> | 2014-07-22 18:09:20 +0000 |
---|---|---|
committer | miod <> | 2014-07-22 18:09:20 +0000 |
commit | 9537b06bc09eb72b0f1edd06de4049fb515437b8 (patch) | |
tree | a97eb5f989e740f16421e60d712773c06d2fa896 /src/lib/libcrypto/bio/bio_lib.c | |
parent | 4ed4f9bf6421a1b24b17919b26ff064b4d031b4d (diff) | |
download | openbsd-9537b06bc09eb72b0f1edd06de4049fb515437b8.tar.gz openbsd-9537b06bc09eb72b0f1edd06de4049fb515437b8.tar.bz2 openbsd-9537b06bc09eb72b0f1edd06de4049fb515437b8.zip |
In DES_random_key(), force the generated key to the odd parity before checking
it is not one of the weak and semi-weak keys.
Even though the probability of generating a weak key with incorrect parity is
abysmally small, there is no reason to be correct (although, if you're in a
need for fresh DES keys nowadays, you should seriously consider switching to
a stronger symmetric cipher algorithm).
ok beck@
Diffstat (limited to 'src/lib/libcrypto/bio/bio_lib.c')
0 files changed, 0 insertions, 0 deletions