123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- #ifndef CRYS_RSA_KG_H
- #define CRYS_RSA_KG_H
- #include "crys_rsa_types.h"
- #include "crys_rnd.h"
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- #define CRYS_RSA_KG_PUB_EXP_MAX_SIZE_BITS 17
- #define CRYS_RSA_KG_PUB_EXP_ALLOW_VAL_1 0x000003
- #define CRYS_RSA_KG_PUB_EXP_ALLOW_VAL_2 0x000011
- #define CRYS_RSA_KG_PUB_EXP_ALLOW_VAL_3 0x010001
- CIMPORT_C CRYSError_t CRYS_RSA_KG_GenerateKeyPair(
- void *rndState_ptr,
- SaSiRndGenerateVectWorkFunc_t rndGenerateVectFunc,
- uint8_t *pubExp_ptr,
- uint16_t pubExpSizeInBytes,
- uint32_t keySize,
- CRYS_RSAUserPrivKey_t *userPrivKey_ptr,
- CRYS_RSAUserPubKey_t *userPubKey_ptr,
- CRYS_RSAKGData_t *keyGenData_ptr,
- CRYS_RSAKGFipsContext_t *pFipsCtx
- );
- CIMPORT_C CRYSError_t CRYS_RSA_KG_GenerateKeyPairCRT(
- void *rndState_ptr,
- SaSiRndGenerateVectWorkFunc_t rndGenerateVectFunc,
- uint8_t *pubExp_ptr,
- uint16_t pubExpSizeInBytes,
- uint32_t keySize,
- CRYS_RSAUserPrivKey_t *userPrivKey_ptr,
- CRYS_RSAUserPubKey_t *userPubKey_ptr,
- CRYS_RSAKGData_t *keyGenData_ptr,
- CRYS_RSAKGFipsContext_t *pFipsCtx
- );
- #ifdef __cplusplus
- }
- #endif
- #endif
|