Structure type for Rsa key, specifying key type and key entries. More...
#include <mcuxClRsa_Types.h>
Data Fields | |
uint32_t | keytype |
Key type specifier: | |
mcuxClRsa_KeyEntry_t * | pMod1 |
Pointer to first key entry: | |
mcuxClRsa_KeyEntry_t * | pMod2 |
Pointer to second key entry: | |
mcuxClRsa_KeyEntry_t * | pQInv |
Pointer to third key entry: | |
mcuxClRsa_KeyEntry_t * | pExp1 |
Pointer to fourth key entry: | |
mcuxClRsa_KeyEntry_t * | pExp2 |
Pointer to fifth key entry: | |
mcuxClRsa_KeyEntry_t * | pExp3 |
Pointer to sixth key entry: | |
Structure type for Rsa key, specifying key type and key entries.
uint32_t mcuxClRsa_Key::keytype |
Key type specifier:
In case of an RSA public key this shall be set to MCUXCLRSA_KEY_PUBLIC. In case of an RSA private plain key this shall be set to MCUXCLRSA_KEY_PRIVATEPLAIN. In case of an RSA private CRT key this shall be set to MCUXCLRSA_KEY_PRIVATECRT. In case of an RSA private CRT key, with which a fault-protected CRT operation is executed, this shall be set to MCUXCLRSA_KEY_PRIVATECRT_DFA
mcuxClRsa_KeyEntry_t* mcuxClRsa_Key::pMod1 |
Pointer to first key entry:
In case of MCUXCLRSA_KEY_PUBLIC and MCUXCLRSA_KEY_PRIVATEPLAIN the first key entry points to the public parameter modulus N. In case of MCUXCLRSA_KEY_PRIVATECRT and MCUXCLRSA_KEY_PRIVATECRT_DFA the first key entry points to the private parameter prime factor P.
mcuxClRsa_KeyEntry_t* mcuxClRsa_Key::pMod2 |
Pointer to second key entry:
In case of MCUXCLRSA_KEY_PUBLIC and MCUXCLRSA_KEY_PRIVATEPLAIN this pointer shall be set to NULL. In case of MCUXCLRSA_KEY_PRIVATECRT and MCUXCLRSA_KEY_PRIVATECRT_DFA the second key entry points to the private parameter prime factor Q.
mcuxClRsa_KeyEntry_t* mcuxClRsa_Key::pQInv |
Pointer to third key entry:
In case of MCUXCLRSA_KEY_PUBLIC and MCUXCLRSA_KEY_PRIVATEPLAIN this pointer shall be set to NULL. In case of MCUXCLRSA_KEY_PRIVATECRT and MCUXCLRSA_KEY_PRIVATECRT_DFA the third key entry points to the private parameter QInv = (1 / (Q % P)).
mcuxClRsa_KeyEntry_t* mcuxClRsa_Key::pExp1 |
Pointer to fourth key entry:
In case of MCUXCLRSA_KEY_PUBLIC the first exponent entry points to the public parameter exponent E. In case of MCUXCLRSA_KEY_PRIVATEPLAIN the first exponent entry points to the private parameter exponent D. In case of MCUXCLRSA_KEY_PRIVATECRT and MCUXCLRSA_KEY_PRIVATECRT_DFA the first exponent entry points to the private parameter DP = D % (P-1).
mcuxClRsa_KeyEntry_t* mcuxClRsa_Key::pExp2 |
Pointer to fifth key entry:
In case of MCUXCLRSA_KEY_PUBLIC and MCUXCLRSA_KEY_PRIVATEPLAIN this pointer shall be set to NULL. In case of MCUXCLRSA_KEY_PRIVATECRT and MCUXCLRSA_KEY_PRIVATECRT_DFA the second exponent entry points to the private parameter DQ = D % (Q-1).
mcuxClRsa_KeyEntry_t* mcuxClRsa_Key::pExp3 |
Pointer to sixth key entry:
In case of MCUXCLRSA_KEY_PUBLIC, MCUXCLRSA_KEY_PRIVATEPLAIN, and MCUXCLRSA_KEY_PRIVATECRT this pointer shall be set to NULL. In case of MCUXCLRSA_KEY_PRIVATECRT_DFA the third exponent entry points to the public parameter exponent E.