diff options
author | miod <> | 2014-07-22 18:09:20 +0000 |
---|---|---|
committer | miod <> | 2014-07-22 18:09:20 +0000 |
commit | ae3ddac8a2c0327ef4ee78740df590f055b72097 (patch) | |
tree | a97eb5f989e740f16421e60d712773c06d2fa896 /src/lib/libcrypto/cms/cms_lib.c | |
parent | 597aae33aea53604bef34fc1eeb541e8774663d1 (diff) | |
download | openbsd-ae3ddac8a2c0327ef4ee78740df590f055b72097.tar.gz openbsd-ae3ddac8a2c0327ef4ee78740df590f055b72097.tar.bz2 openbsd-ae3ddac8a2c0327ef4ee78740df590f055b72097.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/cms/cms_lib.c')
0 files changed, 0 insertions, 0 deletions