diff options
author | Bodo Möller <bodo@openssl.org> | 1999-12-03 20:24:21 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-12-03 20:24:21 +0000 |
commit | cddfe788fbbc4726fcf9892963df3f3e823eb233 (patch) | |
tree | fe129b6f8b162a2053634fdfb62d17d9dad17a10 /crypto/des/des_opts.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/des_opts.c')
-rw-r--r-- | crypto/des/des_opts.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/des/des_opts.c b/crypto/des/des_opts.c index 746c456f8f..545075ce49 100644 --- a/crypto/des/des_opts.c +++ b/crypto/des/des_opts.c @@ -438,13 +438,13 @@ int main(int argc, char **argv) fprintf(stderr,"program when this computer is idle.\n"); #endif - des_set_key(&key,sch); - des_set_key(&key2,sch2); - des_set_key(&key3,sch3); + des_set_key_unchecked(&key,sch); + des_set_key_unchecked(&key2,sch2); + des_set_key_unchecked(&key3,sch3); #ifndef SIGALRM fprintf(stderr,"First we calculate the approximate speed ...\n"); - des_set_key(&key,sch); + des_set_key_unchecked(&key,sch); count=10; do { long i; |