diff options
Diffstat (limited to 'src/lib/libcrypto/des/set_key.c')
| -rw-r--r-- | src/lib/libcrypto/des/set_key.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/libcrypto/des/set_key.c b/src/lib/libcrypto/des/set_key.c index a43ef3c881..c0806d593c 100644 --- a/src/lib/libcrypto/des/set_key.c +++ b/src/lib/libcrypto/des/set_key.c | |||
| @@ -64,6 +64,10 @@ | |||
| 64 | * 1.0 First working version | 64 | * 1.0 First working version |
| 65 | */ | 65 | */ |
| 66 | #include "des_locl.h" | 66 | #include "des_locl.h" |
| 67 | #ifdef OPENSSL_FIPS | ||
| 68 | #include <openssl/fips.h> | ||
| 69 | #endif | ||
| 70 | |||
| 67 | 71 | ||
| 68 | OPENSSL_IMPLEMENT_GLOBAL(int,DES_check_key); /* defaults to false */ | 72 | OPENSSL_IMPLEMENT_GLOBAL(int,DES_check_key); /* defaults to false */ |
| 69 | 73 | ||
| @@ -349,6 +353,10 @@ void DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule) | |||
| 349 | k = &schedule->ks->deslong[0]; | 353 | k = &schedule->ks->deslong[0]; |
| 350 | in = &(*key)[0]; | 354 | in = &(*key)[0]; |
| 351 | 355 | ||
| 356 | #ifdef OPENSSL_FIPS | ||
| 357 | FIPS_selftest_check(); | ||
| 358 | #endif | ||
| 359 | |||
| 352 | c2l(in,c); | 360 | c2l(in,c); |
| 353 | c2l(in,d); | 361 | c2l(in,d); |
| 354 | 362 | ||
| @@ -405,3 +413,4 @@ void des_fixup_key_parity(des_cblock *key) | |||
| 405 | des_set_odd_parity(key); | 413 | des_set_odd_parity(key); |
| 406 | } | 414 | } |
| 407 | */ | 415 | */ |
| 416 | |||
