MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
mcuxClRsa

RSA component. More...

Topics

 mcuxClRsa_Constants
 Constants of mcuxClRsa component.
 mcuxClRsa_Functions
 Defines all functions of mcuxClRsa.
 mcuxClRsa_Descriptors
 Defines descriptors of mcuxClRsa.
 mcuxClRsa_Macros
 Defines all macros of mcuxClRsa.
 mcuxClRsa_Types
 Defines all types of the mcuxClRsa component.

Detailed Description

RSA component.

The mcuxClRsa component implements the RSA functionality supported by CLNS. This includes RSA signature generation and verification according to PKCS#1 v2.2. It also provides RSA key generation functionality. The RSA component relies on the mcuxClMath component for modular arithmetic operations as well as the secure and non-secure exponentiation. It further relies on the mcuxHash component for the execution of hashing operations. The component offers the following functionality:

  • RSA signature generation and verification:
    1. RSA signature generation using RSA keys in private plain or private CRT format together with the PKCS#1 v1.5 padding or PSS padding functionality, according to to RSASSA-PSS-SIGN or RSASSA-PKCS1-v1_5-SIGN of PKCS #1 v2.2.
    2. RSA signature verification using RSA keys public format together with the PKCS#1 v1.5 padding or PSS verification functionality, according to to RSASSA-PSS-VERIFY or RSASSA-PKCS1-v1_5-VERIFY of PKCS #1 v2.2.
    3. RSA signature generation primitive RSASP1 (exponentiation with public exponent) according to PKCS #1 v2.2.
    4. RSA signature verification primitive RSAVP1 (exponentiation with RSA keys in private plain or private CRT format) according to PKCS #1 v2.2.
    5. The bit-length of the modulus can vary from 512 bits to 4096 bits in multiples of 8.
    6. The bit-length of the public exponent is limited to: of 2 <= e < N.
    7. The bit-length of the private exponent is limited to: d < N.
  • RSA key generation
    1. Generation of an RSA key in CRT format {p, q, dp, dq, qInv} and n.
    2. Generation of an RSA key in Plain format {d, n}.
    3. Primes p and q are generated based on the method specified in the FIPS 186-4, Appendix B.3.3.
    4. Private exponent d is computed with the requirements specified in the FIPS 186-4, Appendix B.3.1.
    5. Primes p and q are generated using probabilistic primality test with the probability of not being prime less than 2^(-125).
    6. The bit-length of the key size is limited to 2048, 3072 and 4096.
    7. The public exponent is restricted to (FIPS compliant) odd values in the range 2^16 < e < 2^256 (i.e. including 0x10001).
    8. User shall ensure that if FIPS 186-4 compliance is claimed, the key generation functions are used to generate keys of 2048 or 3072 bits only.