Ignore:
Timestamp:
Feb 7, 2019, 8:36:33 AM (5 years ago)
Author:
coas-nagasima
Message:

wolfsslを3.15.7にバージョンアップ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asp3_tinet_ecnl_rx/trunk/wolfssl-3.12.2/wolfcrypt/src/des3.c

    r337 r372  
    3232#ifndef NO_DES3
    3333
     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
    3446#include <wolfssl/wolfcrypt/des3.h>
    3547
    3648/* 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
    3852    int wc_Des_SetKey(Des* des, const byte* key, const byte* iv, int dir)
    3953    {
     
    108122    }
    109123
    110 #else /* build without fips */
     124#else /* else build without fips, or for FIPS v2 */
    111125
    112126
     
    12871301    };
    12881302
    1289     static INLINE void IPERM(word32* left, word32* right)
     1303    static WC_INLINE void IPERM(word32* left, word32* right)
    12901304    {
    12911305        word32 work;
     
    13131327    }
    13141328
    1315     static INLINE void FPERM(word32* left, word32* right)
     1329    static WC_INLINE void FPERM(word32* left, word32* right)
    13161330    {
    13171331        word32 work;
Note: See TracChangeset for help on using the changeset viewer.