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/wolfssl/wolfcrypt/error-crypt.h

    r337 r372  
    2020 */
    2121
    22 
     22/*!
     23    \file wolfssl/wolfcrypt/error-crypt.h
     24*/
    2325
    2426#ifndef WOLF_CRYPT_ERROR_H
     
    98100    ASN_NTRU_KEY_E     = -159,  /* ASN ntru key decode error, invalid input */
    99101    ASN_CRIT_EXT_E     = -160,  /* ASN unsupported critical extension */
     102    ASN_ALT_NAME_E     = -161,  /* ASN alternate name error */
     103    ASN_NO_PEM_HEADER  = -162,  /* ASN no PEM header found */
    100104
    101105    ECC_BAD_ARG_E      = -170,  /* ECC input argument of wrong type */
     
    192196    ECC_PRIVATEONLY_E   = -246,  /* Invalid use of private only ECC key*/
    193197    EXTKEYUSAGE_E       = -247,  /* Bad Extended Key Usage value */
    194 
    195     WC_LAST_E           = -247,  /* Update this to indicate last error */
     198    WC_HW_E             = -248,  /* Error with hardware crypto use */
     199    WC_HW_WAIT_E        = -249,  /* Hardware waiting on resource */
     200
     201    PSS_SALTLEN_E       = -250,  /* PSS length of salt is to long for hash */
     202    PRIME_GEN_E         = -251,  /* Failure finding a prime. */
     203    BER_INDEF_E         = -252,  /* Cannot decode indefinite length BER. */
     204    RSA_OUT_OF_RANGE_E  = -253,  /* Ciphertext to decrypt out of range. */
     205    RSAPSS_PAT_FIPS_E   = -254,  /* RSA-PSS PAT failure */
     206    ECDSA_PAT_FIPS_E    = -255,  /* ECDSA PAT failure */
     207    DH_KAT_FIPS_E       = -256,  /* DH KAT failure */
     208    AESCCM_KAT_FIPS_E   = -257,  /* AESCCM KAT failure */
     209    SHA3_KAT_FIPS_E     = -258,  /* SHA-3 KAT failure */
     210    ECDHE_KAT_FIPS_E    = -259,  /* ECDHE KAT failure */
     211    AES_GCM_OVERFLOW_E  = -260,  /* AES-GCM invocation counter overflow. */
     212    AES_CCM_OVERFLOW_E  = -261,  /* AES-CCM invocation counter overflow. */
     213    RSA_KEY_PAIR_E      = -262,  /* RSA Key Pair-Wise Consistency check fail. */
     214    DH_CHECK_PRIV_E     = -263,  /* DH Check Priv Key error */
     215
     216    WC_AFALG_SOCK_E     = -264,  /* AF_ALG socket error */
     217    WC_DEVCRYPTO_E      = -265,  /* /dev/crypto error */
     218
     219    ZLIB_INIT_ERROR     = -266,   /* zlib init error  */
     220    ZLIB_COMPRESS_ERROR = -267,   /* zlib compression error  */
     221    ZLIB_DECOMPRESS_ERROR = -268,  /* zlib decompression error  */
     222
     223    PKCS7_NO_SIGNER_E   = -269,  /* No signer in PKCS#7 signed data msg */
     224    WC_PKCS7_WANT_READ_E= -270,  /* PKCS7 operations wants more input */
     225
     226    WC_LAST_E           = -270,  /* Update this to indicate last error */
    196227    MIN_CODE_E          = -300   /* errors -101 - -299 */
    197228
     
    201232
    202233
     234#ifdef NO_ERROR_STRINGS
     235    #define wc_GetErrorString(error) "no support for error strings built in"
     236    #define wc_ErrorString(err, buf) \
     237        (void)err; XSTRNCPY((buf), wc_GetErrorString((err)), \
     238        WOLFSSL_MAX_ERROR_SZ);
     239
     240#else
    203241WOLFSSL_API void wc_ErrorString(int err, char* buff);
    204242WOLFSSL_API const char* wc_GetErrorString(int error);
    205 
     243#endif
    206244
    207245#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.