- 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/wolfcrypt/src/des3.c
r337 r372 32 32 #ifndef NO_DES3 33 33 34 #if defined(HAVE_FIPS) && \ 35 defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 2) 36 37 /* set NO_WRAPPERS before headers, use direct internal f()s not wrappers */ 38 #define FIPS_NO_WRAPPERS 39 40 #ifdef USE_WINDOWS_API 41 #pragma code_seg(".fipsA$i") 42 #pragma const_seg(".fipsB$i") 43 #endif 44 #endif 45 34 46 #include <wolfssl/wolfcrypt/des3.h> 35 47 36 48 /* fips wrapper calls, user can call direct */ 37 #ifdef HAVE_FIPS 49 #if defined(HAVE_FIPS) && \ 50 (!defined(HAVE_FIPS_VERSION) || (HAVE_FIPS_VERSION < 2)) 51 38 52 int wc_Des_SetKey(Des* des, const byte* key, const byte* iv, int dir) 39 53 { … … 108 122 } 109 123 110 #else /* build without fips*/124 #else /* else build without fips, or for FIPS v2 */ 111 125 112 126 … … 1287 1301 }; 1288 1302 1289 static INLINE void IPERM(word32* left, word32* right)1303 static WC_INLINE void IPERM(word32* left, word32* right) 1290 1304 { 1291 1305 word32 work; … … 1313 1327 } 1314 1328 1315 static INLINE void FPERM(word32* left, word32* right)1329 static WC_INLINE void FPERM(word32* left, word32* right) 1316 1330 { 1317 1331 word32 work;
Note:
See TracChangeset
for help on using the changeset viewer.