123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- #ifndef CRYS_RSA_BUILD_H
- #define CRYS_RSA_BUILD_H
- #include "crys_error.h"
- #include "crys_rsa_types.h"
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- CIMPORT_C CRYSError_t CRYS_RSA_Build_PubKey(
- CRYS_RSAUserPubKey_t *UserPubKey_ptr,
- uint8_t *Exponent_ptr,
- uint16_t ExponentSize,
- uint8_t *Modulus_ptr,
- uint16_t ModulusSize
- );
- CIMPORT_C CRYSError_t CRYS_RSA_Build_PrivKey(
- CRYS_RSAUserPrivKey_t *UserPrivKey_ptr,
- uint8_t *PrivExponent_ptr,
- uint16_t PrivExponentSize,
- uint8_t *PubExponent_ptr,
- uint16_t PubExponentSize,
- uint8_t *Modulus_ptr,
- uint16_t ModulusSize
- );
- CIMPORT_C CRYSError_t CRYS_RSA_Build_PrivKeyCRT(
- CRYS_RSAUserPrivKey_t *UserPrivKey_ptr,
- uint8_t *P_ptr,
- uint16_t PSize,
- uint8_t *Q_ptr,
- uint16_t QSize,
- uint8_t *dP_ptr,
- uint16_t dPSize,
- uint8_t *dQ_ptr,
- uint16_t dQSize,
- uint8_t *qInv_ptr,
- uint16_t qInvSize
- );
- CIMPORT_C CRYSError_t CRYS_RSA_Get_PubKey(
- CRYS_RSAUserPubKey_t *UserPubKey_ptr,
- uint8_t *Exponent_ptr,
- uint16_t *ExponentSize_ptr,
- uint8_t *Modulus_ptr,
- uint16_t *ModulusSize_ptr
- );
- #ifdef __cplusplus
- }
- #endif
- #endif
|