diff options
author | Bodo Möller <bodo@openssl.org> | 1999-12-03 23:24:21 +0300 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-12-03 23:24:21 +0300 |
commit | cddfe788fbbc4726fcf9892963df3f3e823eb233 (patch) | |
tree | fe129b6f8b162a2053634fdfb62d17d9dad17a10 /crypto/des/fcrypt.c | |
parent | 21131f00d7ffcdac99334ce5704366c1cdd06fc4 (diff) |
Add functions des_set_key_checked, des_set_key_unchecked.
Never use des_set_key (it depends on the global variable des_check_key),
but usually des_set_key_unchecked.
Only destest.c bothered to look at the return values of des_set_key,
but it did not set des_check_key -- if it had done so,
most checks would have failed because of wrong parity and
because of weak keys.
Diffstat (limited to 'crypto/des/fcrypt.c')
-rw-r--r-- | crypto/des/fcrypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/des/fcrypt.c b/crypto/des/fcrypt.c index b59855c724..889715a746 100644 --- a/crypto/des/fcrypt.c +++ b/crypto/des/fcrypt.c @@ -151,7 +151,7 @@ r=(r+7)/8; for (; i<8; i++) key[i]=0; - des_set_key(&key,ks); + des_set_key_unchecked(&key,ks); fcrypt_body(&(out[0]),ks,Eswap0,Eswap1); ll=out[0]; l2c(ll,b); |