MCUX CLNS MCUX Crypto Library Normal Secure |

Macros | Functions
mcuxClRsa_sign_NoEncode_example.c File Reference

Example of using function mcuxClRsa_sign to perform the RSA signature generation primitive RSASP1 (private exponentiation and NO padding) according to PKCS #1 v2.2, using a key in plain format. More...

`#include <mcuxClSession.h>`
`#include <mcuxCsslFlowProtection.h>`
`#include <mcuxClPkc.h>`
`#include <mcuxClRsa.h>`
`#include <toolchain.h>`
`#include <stdbool.h>`
`#include <mcuxClCss.h>`

## Macros

#define | RSA_KEY_BIT_LENGTH
| The example uses a 1024-bit key. More...
#define | RSA_KEY_BYTE_LENGTH
| Converting the key-bitlength to bytelength. More...

## Functions

static const uint8_t modulus [RSA_KEY_BYTE_LENGTH] | __attribute__ ((aligned(4)))
| Example value for public RSA modulus N. More...
bool | mcuxClRsa_sign_NoEncode_example (void)
| Performs a session set-up; a call to function mcuxClRsa_sign using mode mcuxClRsa_Mode_Verify_NoVerify; a session clean-up. More...

## Detailed Description

Example of using function mcuxClRsa_sign to perform the RSA signature generation primitive RSASP1 (private exponentiation and NO padding) according to PKCS #1 v2.2, using a key in plain format.

## Macro Definition Documentation

## ◆ RSA_KEY_BIT_LENGTH

#define RSA_KEY_BIT_LENGTH

The example uses a 1024-bit key.

## ◆ RSA_KEY_BYTE_LENGTH

#define RSA_KEY_BYTE_LENGTH

Converting the key-bitlength to bytelength.

Examples
  mcuxClRsa_sign_NoEncode_example.c.

## Function Documentation

## ◆ __attribute__()

static const uint8_t modulus [RSA_KEY_BYTE_LENGTH] __attribute__ | ( | (aligned(4)) |  | ) |

static

Example value for public RSA modulus N.

Expected signature.

Input message.

Example value for private RSA exponent d.

Examples
  mcuxClRsa_sign_NoEncode_example.c.

## ◆ mcuxClRsa_sign_NoEncode_example()

bool mcuxClRsa_sign_NoEncode_example | ( | void |  | ) |

Performs a session set-up; a call to function mcuxClRsa_sign using mode mcuxClRsa_Mode_Verify_NoVerify; a session clean-up.

Return values

  true | The example code completed successfully
  false | The example code failed

Examples
  mcuxClRsa_sign_NoEncode_example.c.