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 4f09804c44..6a49ec4a55 100644 --- a/src/lib/libcrypto/des/des_enc.c +++ b/src/lib/libcrypto/des/des_enc.c | |||
@@ -58,7 +58,9 @@ | |||
58 | 58 | ||
59 | #include "des_locl.h" | 59 | #include "des_locl.h" |
60 | 60 | ||
61 | #ifndef OPENSSL_FIPS | ||
61 | #ifndef OPENBSD_DES_ASM | 62 | #ifndef OPENBSD_DES_ASM |
63 | |||
62 | void DES_encrypt1(DES_LONG *data, DES_key_schedule *ks, int enc) | 64 | void DES_encrypt1(DES_LONG *data, DES_key_schedule *ks, int enc) |
63 | { | 65 | { |
64 | register DES_LONG l,r,t,u; | 66 | register DES_LONG l,r,t,u; |
@@ -289,8 +291,12 @@ void DES_decrypt3(DES_LONG *data, DES_key_schedule *ks1, | |||
289 | data[1]=r; | 291 | data[1]=r; |
290 | } | 292 | } |
291 | 293 | ||
294 | #endif /* ndef OPENSSL_FIPS */ | ||
295 | |||
292 | #ifndef DES_DEFAULT_OPTIONS | 296 | #ifndef DES_DEFAULT_OPTIONS |
293 | 297 | ||
298 | #if !defined(OPENSSL_FIPS_DES_ASM) | ||
299 | |||
294 | #undef CBC_ENC_C__DONT_UPDATE_IV | 300 | #undef CBC_ENC_C__DONT_UPDATE_IV |
295 | #include "ncbc_enc.c" /* DES_ncbc_encrypt */ | 301 | #include "ncbc_enc.c" /* DES_ncbc_encrypt */ |
296 | 302 | ||
@@ -406,4 +412,6 @@ void DES_ede3_cbc_encrypt(const unsigned char *input, unsigned char *output, | |||
406 | tin[0]=tin[1]=0; | 412 | tin[0]=tin[1]=0; |
407 | } | 413 | } |
408 | 414 | ||
415 | #endif /* !defined(OPENSSL_FIPS_DES_ASM) */ | ||
416 | |||
409 | #endif /* DES_DEFAULT_OPTIONS */ | 417 | #endif /* DES_DEFAULT_OPTIONS */ |