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/rsa.h

    r457 r464  
    2424*/
    2525
    26 
     26/*
     27
     28DESCRIPTION
     29This library provides the interface to the RSA.
     30RSA keys can be used to encrypt, decrypt, sign and verify data.
     31
     32*/
    2733#ifndef WOLF_CRYPT_RSA_H
    2834#define WOLF_CRYPT_RSA_H
     
    136142#endif
    137143
    138 #ifdef HAVE_PKCS11
     144#ifdef WOLF_CRYPTO_CB
    139145    RSA_MAX_ID_LEN      = 32,
     146    RSA_MAX_LABEL_LEN   = 32,
    140147#endif
    141148};
     
    179186    XSecure_Rsa xRsa;
    180187#endif
    181 #ifdef HAVE_PKCS11
     188#ifdef WOLF_CRYPTO_CB
    182189    byte id[RSA_MAX_ID_LEN];
    183190    int  idLen;
     191    char label[RSA_MAX_LABEL_LEN];
     192    int  labelLen;
    184193#endif
    185194#if defined(WOLFSSL_ASYNC_CRYPT) || !defined(WOLFSSL_RSA_VERIFY_INLINE)
     
    208217WOLFSSL_API int  wc_InitRsaKey_ex(RsaKey* key, void* heap, int devId);
    209218WOLFSSL_API int  wc_FreeRsaKey(RsaKey* key);
    210 #ifdef HAVE_PKCS11
     219#ifdef WOLF_CRYPTO_CB
    211220WOLFSSL_API int wc_InitRsaKey_Id(RsaKey* key, unsigned char* id, int len,
    212221                                 void* heap, int devId);
     222WOLFSSL_API int wc_InitRsaKey_Label(RsaKey* key, const char* label, void* heap,
     223                                    int devId);
    213224#endif
    214225WOLFSSL_API int  wc_CheckRsaKey(RsaKey* key);
     
    241252WOLFSSL_API int  wc_RsaSSL_Verify_ex(const byte* in, word32 inLen, byte* out,
    242253                              word32 outLen, RsaKey* key, int pad_type);
     254WOLFSSL_API int  wc_RsaSSL_Verify_ex2(const byte* in, word32 inLen, byte* out,
     255                              word32 outLen, RsaKey* key, int pad_type,
     256                              enum wc_HashType hash);
    243257WOLFSSL_API int  wc_RsaPSS_VerifyInline(byte* in, word32 inLen, byte** out,
    244258                                        enum wc_HashType hash, int mgf,
     
    281295WOLFSSL_API int  wc_RsaPublicKeyDecodeRaw(const byte* n, word32 nSz,
    282296                                        const byte* e, word32 eSz, RsaKey* key);
    283 WOLFSSL_API int wc_RsaKeyToDer(RsaKey*, byte* output, word32 inLen);
    284 
     297#ifdef WOLFSSL_KEY_GEN
     298    WOLFSSL_API int wc_RsaKeyToDer(RsaKey*, byte* output, word32 inLen);
     299#endif
    285300
    286301#ifdef WC_RSA_BLINDING
     
    361376                                   int bits, void* heap);
    362377
     378WOLFSSL_LOCAL int wc_hash2mgf(enum wc_HashType hType);
     379
    363380#endif /* HAVE_USER_RSA */
    364381
Note: See TracChangeset for help on using the changeset viewer.