diff options
Diffstat (limited to 'src/lib/libcrypto/des/des_enc.c')
-rw-r--r-- | src/lib/libcrypto/des/des_enc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/libcrypto/des/des_enc.c b/src/lib/libcrypto/des/des_enc.c index 1c37ab96d3..72be2d98d7 100644 --- a/src/lib/libcrypto/des/des_enc.c +++ b/src/lib/libcrypto/des/des_enc.c | |||
@@ -58,6 +58,8 @@ | |||
58 | 58 | ||
59 | #include "des_locl.h" | 59 | #include "des_locl.h" |
60 | 60 | ||
61 | #ifndef OPENSSL_FIPS | ||
62 | |||
61 | void DES_encrypt1(DES_LONG *data, DES_key_schedule *ks, int enc) | 63 | void DES_encrypt1(DES_LONG *data, DES_key_schedule *ks, int enc) |
62 | { | 64 | { |
63 | register DES_LONG l,r,t,u; | 65 | register DES_LONG l,r,t,u; |
@@ -287,8 +289,12 @@ void DES_decrypt3(DES_LONG *data, DES_key_schedule *ks1, | |||
287 | data[1]=r; | 289 | data[1]=r; |
288 | } | 290 | } |
289 | 291 | ||
292 | #endif /* ndef OPENSSL_FIPS */ | ||
293 | |||
290 | #ifndef DES_DEFAULT_OPTIONS | 294 | #ifndef DES_DEFAULT_OPTIONS |
291 | 295 | ||
296 | #if !defined(OPENSSL_FIPS_DES_ASM) | ||
297 | |||
292 | #undef CBC_ENC_C__DONT_UPDATE_IV | 298 | #undef CBC_ENC_C__DONT_UPDATE_IV |
293 | #include "ncbc_enc.c" /* DES_ncbc_encrypt */ | 299 | #include "ncbc_enc.c" /* DES_ncbc_encrypt */ |
294 | 300 | ||
@@ -404,4 +410,6 @@ void DES_ede3_cbc_encrypt(const unsigned char *input, unsigned char *output, | |||
404 | tin[0]=tin[1]=0; | 410 | tin[0]=tin[1]=0; |
405 | } | 411 | } |
406 | 412 | ||
413 | #endif /* !defined(OPENSSL_FIPS_DES_ASM) */ | ||
414 | |||
407 | #endif /* DES_DEFAULT_OPTIONS */ | 415 | #endif /* DES_DEFAULT_OPTIONS */ |