Example of using function mcuxClRsa_verify to perform the RSA signature verification primitive RSAVP1 (public exponentiation and NO padding verification) according to PKCS #1 v2.2. 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 2048-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_verify_NoVerify_example (void) |
Performs a session set-up; a call to function mcuxClRsa_verify using mode mcuxClRsa_Mode_Verify_NoVerify; a session clean-up. More... | |
Example of using function mcuxClRsa_verify to perform the RSA signature verification primitive RSAVP1 (public exponentiation and NO padding verification) according to PKCS #1 v2.2.
#define RSA_KEY_BIT_LENGTH |
The example uses a 2048-bit key.
#define RSA_KEY_BYTE_LENGTH |
Converting the key-bitlength to bytelength.
|
static |
Example value for public RSA modulus N.
Reference output when calling mcuxClRsa_verify on signature s using the RSA public key pair (N,e) and choosing mode mcuxClRsa_Mode_Verify_NoVerify.
Example value for RSA signature s.
Example value for public RSA exponent e.
bool mcuxClRsa_verify_NoVerify_example | ( | void | ) |
Performs a session set-up; a call to function mcuxClRsa_verify using mode mcuxClRsa_Mode_Verify_NoVerify; a session clean-up.
true | The example code completed successfully |
false | The example code failed |