Ignore:
Timestamp:
Jun 22, 2021, 9:00:19 PM (3 years ago)
Author:
coas-nagasima
Message:

WolfSSLとAzure IoT SDKを更新

Location:
azure_iot_hub_f767zi/trunk/wolfssl-4.7.0
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • azure_iot_hub_f767zi/trunk/wolfssl-4.7.0/wolfssl/wolfcrypt/aes.h

    r457 r464  
    2323    \file wolfssl/wolfcrypt/aes.h
    2424*/
    25 
    26 
     25/*
     26
     27DESCRIPTION
     28This library provides the interfaces to the Advanced Encryption Standard (AES)
     29for encrypting and decrypting data. AES is the standard known for a symmetric
     30block cipher mechanism that uses n-bit binary string parameter key with 128-bits,
     31192-bits, and 256-bits of key sizes.
     32
     33*/
    2734#ifndef WOLF_CRYPT_AES_H
    2835#define WOLF_CRYPT_AES_H
     
    5663#endif
    5764
    58 #ifdef WOLFSSL_AESNI
    59 
    60 #include <wmmintrin.h>
    61 #include <emmintrin.h>
    62 #include <smmintrin.h>
    63 
    64 #endif /* WOLFSSL_AESNI */
    65 
     65#ifdef WOLFSSL_IMXRT_DCP
     66    #include "fsl_dcp.h"
     67#endif
    6668
    6769#ifdef WOLFSSL_XILINX_CRYPT
     
    7779#include <wolfssl/wolfcrypt/port/devcrypto/wc_devcrypto.h>
    7880#endif
     81
     82#ifdef WOLFSSL_SILABS_SE_ACCEL
     83    #include <wolfssl/wolfcrypt/port/silabs/silabs_aes.h>
     84#endif
     85
    7986
    8087#if defined(HAVE_AESGCM) && !defined(WC_NO_RNG)
     
    142149
    143150#ifdef HAVE_PKCS11
    144     AES_MAX_ID_LEN   = 32,
     151    AES_MAX_ID_LEN      = 32,
     152    AES_MAX_LABEL_LEN   = 32,
    145153#endif
    146154};
     
    170178    /* key-based fast multiplication table. */
    171179    ALIGN16 byte M0[256][AES_BLOCK_SIZE];
     180#elif defined(GCM_TABLE_4BIT)
     181    #if defined(BIG_ENDIAN_ORDER) || defined(WC_16BIT_CPU)
     182        ALIGN16 byte M0[16][AES_BLOCK_SIZE];
     183    #else
     184        ALIGN16 byte M0[32][AES_BLOCK_SIZE];
     185    #endif
    172186#endif /* GCM_TABLE */
    173187#ifdef HAVE_CAVIUM_OCTEON_SYNC
     
    185199    byte id[AES_MAX_ID_LEN];
    186200    int  idLen;
     201    char label[AES_MAX_LABEL_LEN];
     202    int  labelLen;
    187203#endif
    188204#ifdef WOLFSSL_ASYNC_CRYPT
     
    227243    defined(WOLFSSL_RENESAS_TSIP_TLS_AES_CRYPT)
    228244    TSIP_AES_CTX ctx;
     245#endif
     246#if defined(WOLFSSL_IMXRT_DCP)
     247    dcp_handle_t handle;
     248#endif
     249#if defined(WOLFSSL_SILABS_SE_ACCEL)
     250    silabs_aes_t ctx;
    229251#endif
    230252    void*  heap; /* memory hint to use */
     
    370392#endif /* HAVE_AESGCM */
    371393#ifdef HAVE_AESCCM
     394 WOLFSSL_LOCAL int wc_AesCcmCheckTagSize(int sz);
    372395 WOLFSSL_API int  wc_AesCcmSetKey(Aes* aes, const byte* key, word32 keySz);
    373396 WOLFSSL_API int  wc_AesCcmEncrypt(Aes* aes, byte* out,
     
    426449WOLFSSL_API int  wc_AesInit_Id(Aes* aes, unsigned char* id, int len, void* heap,
    427450        int devId);
     451WOLFSSL_API int  wc_AesInit_Label(Aes* aes, const char* label, void* heap,
     452        int devId);
    428453#endif
    429454WOLFSSL_API void wc_AesFree(Aes* aes);
Note: See TracChangeset for help on using the changeset viewer.