aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/des/rpc_enc.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-12-03 20:24:21 +0000
committerBodo Möller <bodo@openssl.org>1999-12-03 20:24:21 +0000
commitcddfe788fbbc4726fcf9892963df3f3e823eb233 (patch)
treefe129b6f8b162a2053634fdfb62d17d9dad17a10 /crypto/des/rpc_enc.c
parent21131f00d7ffcdac99334ce5704366c1cdd06fc4 (diff)
downloadopenssl-cddfe788fbbc4726fcf9892963df3f3e823eb233.tar.gz
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/rpc_enc.c')
-rw-r--r--crypto/des/rpc_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/des/rpc_enc.c b/crypto/des/rpc_enc.c
index c96c204147..32d96d5cae 100644
--- a/crypto/des/rpc_enc.c
+++ b/crypto/des/rpc_enc.c
@@ -66,7 +66,7 @@ int _des_crypt(char *buf, int len, struct desparams *desp)
des_key_schedule ks;
int enc;
- des_set_key(&desp->des_key,ks);
+ des_set_key_unchecked(&desp->des_key,ks);
enc=(desp->des_dir == ENCRYPT)?DES_ENCRYPT:DES_DECRYPT;
if (desp->des_mode == CBC)