summaryrefslogtreecommitdiff
path: root/usr.bin/mg/kbd.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-07-22 18:09:21 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-07-22 18:09:21 +0000
commitee5a90dfd02234d2cbb3038d818c4aaecd2c337d (patch)
treee51434cd3b87c2a20dbd339131be40fed17a320d /usr.bin/mg/kbd.c
parentf928d1de2411dafe69c50d139c18c7653cabc751 (diff)
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 'usr.bin/mg/kbd.c')
0 files changed, 0 insertions, 0 deletions