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_arm/trunk/wolfssl-3.12.2/wolfssl/wolfcrypt/des3.h

    r352 r372  
    2020 */
    2121
     22/*!
     23    \file wolfssl/wolfcrypt/des3.h
     24*/
    2225
    2326#ifndef WOLF_CRYPT_DES3_H
     
    2831#ifndef NO_DES3
    2932
    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))
    3140/* included for fips @wc_fips */
    3241#include <cyassl/ctaocrypt/des3.h>
     
    3746#endif
    3847
    39 #ifndef HAVE_FIPS /* to avoid redefinition of macros */
     48/* these are required for FIPS and non-FIPS */
     49enum {
     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))
    4059
    4160#ifdef WOLFSSL_ASYNC_CRYPT
     
    4463
    4564enum {
    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
    4868    DES_BLOCK_SIZE  = 8,
    49     DES_KS_SIZE     = 32,
     69    DES_KS_SIZE     = 32,    /* internal DES key buffer size */
    5070
    5171    DES_ENCRYPTION  = 0,
Note: See TracChangeset for help on using the changeset viewer.