- Timestamp:
- Feb 7, 2019, 8:36:33 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_rx/trunk/wolfssl-3.12.2/wolfssl/wolfcrypt/des3.h
r337 r372 20 20 */ 21 21 22 /*! 23 \file wolfssl/wolfcrypt/des3.h 24 */ 22 25 23 26 #ifndef WOLF_CRYPT_DES3_H … … 28 31 #ifndef NO_DES3 29 32 30 #ifdef HAVE_FIPS 33 #if defined(HAVE_FIPS) && \ 34 defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 2) 35 #include <wolfssl/wolfcrypt/fips.h> 36 #endif /* HAVE_FIPS_VERSION >= 2 */ 37 38 #if defined(HAVE_FIPS) && \ 39 (!defined(HAVE_FIPS_VERSION) || (HAVE_FIPS_VERSION < 2)) 31 40 /* included for fips @wc_fips */ 32 41 #include <cyassl/ctaocrypt/des3.h> … … 37 46 #endif 38 47 39 #ifndef HAVE_FIPS /* to avoid redefinition of macros */ 48 /* these are required for FIPS and non-FIPS */ 49 enum { 50 DES_KEY_SIZE = 8, /* des */ 51 DES3_KEY_SIZE = 24, /* 3 des ede */ 52 DES_IV_SIZE = 8, /* should be the same as DES_BLOCK_SIZE */ 53 }; 54 55 56 /* avoid redefinition of structs */ 57 #if !defined(HAVE_FIPS) || \ 58 (defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 2)) 40 59 41 60 #ifdef WOLFSSL_ASYNC_CRYPT … … 44 63 45 64 enum { 46 DES_ENC_TYPE = 2, /* cipher unique type */ 47 DES3_ENC_TYPE = 3, /* cipher unique type */ 65 DES_ENC_TYPE = WC_CIPHER_DES, /* cipher unique type */ 66 DES3_ENC_TYPE = WC_CIPHER_DES3, /* cipher unique type */ 67 48 68 DES_BLOCK_SIZE = 8, 49 DES_KS_SIZE = 32, 69 DES_KS_SIZE = 32, /* internal DES key buffer size */ 50 70 51 71 DES_ENCRYPTION = 0,
Note:
See TracChangeset
for help on using the changeset viewer.