- Timestamp:
- Jun 22, 2021, 9:00:19 PM (3 years ago)
- 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 24 24 */ 25 25 26 26 /* 27 28 DESCRIPTION 29 This library provides the interface to the RSA. 30 RSA keys can be used to encrypt, decrypt, sign and verify data. 31 32 */ 27 33 #ifndef WOLF_CRYPT_RSA_H 28 34 #define WOLF_CRYPT_RSA_H … … 136 142 #endif 137 143 138 #ifdef HAVE_PKCS11144 #ifdef WOLF_CRYPTO_CB 139 145 RSA_MAX_ID_LEN = 32, 146 RSA_MAX_LABEL_LEN = 32, 140 147 #endif 141 148 }; … … 179 186 XSecure_Rsa xRsa; 180 187 #endif 181 #ifdef HAVE_PKCS11188 #ifdef WOLF_CRYPTO_CB 182 189 byte id[RSA_MAX_ID_LEN]; 183 190 int idLen; 191 char label[RSA_MAX_LABEL_LEN]; 192 int labelLen; 184 193 #endif 185 194 #if defined(WOLFSSL_ASYNC_CRYPT) || !defined(WOLFSSL_RSA_VERIFY_INLINE) … … 208 217 WOLFSSL_API int wc_InitRsaKey_ex(RsaKey* key, void* heap, int devId); 209 218 WOLFSSL_API int wc_FreeRsaKey(RsaKey* key); 210 #ifdef HAVE_PKCS11219 #ifdef WOLF_CRYPTO_CB 211 220 WOLFSSL_API int wc_InitRsaKey_Id(RsaKey* key, unsigned char* id, int len, 212 221 void* heap, int devId); 222 WOLFSSL_API int wc_InitRsaKey_Label(RsaKey* key, const char* label, void* heap, 223 int devId); 213 224 #endif 214 225 WOLFSSL_API int wc_CheckRsaKey(RsaKey* key); … … 241 252 WOLFSSL_API int wc_RsaSSL_Verify_ex(const byte* in, word32 inLen, byte* out, 242 253 word32 outLen, RsaKey* key, int pad_type); 254 WOLFSSL_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); 243 257 WOLFSSL_API int wc_RsaPSS_VerifyInline(byte* in, word32 inLen, byte** out, 244 258 enum wc_HashType hash, int mgf, … … 281 295 WOLFSSL_API int wc_RsaPublicKeyDecodeRaw(const byte* n, word32 nSz, 282 296 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 285 300 286 301 #ifdef WC_RSA_BLINDING … … 361 376 int bits, void* heap); 362 377 378 WOLFSSL_LOCAL int wc_hash2mgf(enum wc_HashType hType); 379 363 380 #endif /* HAVE_USER_RSA */ 364 381
Note:
See TracChangeset
for help on using the changeset viewer.