MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
mcuxClRsa_Types.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/* Copyright 2020-2025 NXP */
3/* */
4/* NXP Confidential and Proprietary. This software is owned or controlled */
5/* by NXP and may only be used strictly in accordance with the applicable */
6/* license terms. By expressly accepting such terms or by downloading, */
7/* installing, activating and/or otherwise using the software, you are */
8/* agreeing that you have read, and that you agree to comply with and are */
9/* bound by, such license terms. If you do not agree to be bound by the */
10/* applicable license terms, then you may not retain, install, activate or */
11/* otherwise use the software. */
12/*--------------------------------------------------------------------------*/
13
18
19#ifndef MCUXCLRSA_TYPES_H_
20#define MCUXCLRSA_TYPES_H_
21
22#include <stdint.h>
23#include <stddef.h>
24#include <stdbool.h>
25#include <mcuxClConfig.h> // Exported features flags header
26#include <mcuxClSession.h>
29
30/***********************************************************
31 * MACROS
32 **********************************************************/
33
40
41/***********************************************************
42 * MACROS RELATED TO FUNCTION STATUS
43 **********************************************************/
44
51#define MCUXCLRSA_STATUS_SIGN_OK ((mcuxClRsa_Status_t) 0x0FF62E07u )
52#define MCUXCLRSA_STATUS_VERIFY_OK ((mcuxClRsa_Status_t) 0x0FF62E03u )
53#define MCUXCLRSA_STATUS_OK ((mcuxClRsa_Status_t) 0x0FF62E17u )
54#define MCUXCLRSA_STATUS_ERROR ((mcuxClRsa_Status_t) 0x0FF65330u )
55#define MCUXCLRSA_STATUS_INVALID_INPUT ((mcuxClRsa_Status_t) 0x0FF653F8u )
56#define MCUXCLRSA_STATUS_VERIFY_FAILED ((mcuxClRsa_Status_t) 0x0FF68930u )
57#define MCUXCLRSA_STATUS_FAULT_ATTACK ((mcuxClRsa_Status_t) 0x0FF6F0F0u )
58#define MCUXCLRSA_STATUS_KEYGENERATION_OK ((mcuxClRsa_Status_t) 0x0FF62E0Fu )
59
61
62
63/***********************************************************
64 * MACROS RELATED TO PUBLIC FUNCTIONS' OPTIONS
65 **********************************************************/
76
77/**********************************************
78 * TYPEDEFS
79 **********************************************/
86
87/***********************************************************
88 * TYPES RELATED TO FUNCTION STATUS
89 **********************************************************/
90
94typedef uint32_t mcuxClRsa_Status_t;
95
96/***********************************************************
97 * TYPES RELATED TO RSA KEY
98 **********************************************************/
102/* Struct is packed to prevent compiler optimizations (e.g., LDR.D) on unaligned data. */
103typedef struct
104{
105 uint8_t* pKeyEntryData;
106 uint32_t keyEntryLength;
107} __attribute__ ((packed)) mcuxClRsa_KeyEntry_t;
108
112
113
114#endif /* MCUXCLRSA_TYPES_H_ */
115
Definition of function identifiers for the flow protection mechanism.
Top-level include file for the mcuxClSession component.
Provides the API for the CSSL flow protection mechanism.
uint32_t mcuxClRsa_Status_t
Type for RSA status codes.
Definition mcuxClRsa_Types.h:94
Structure type for Rsa key entries, specifying key entry length and data.
Definition mcuxClRsa_Types.h:104
uint8_t * pKeyEntryData
Pointer to buffer containing the key entry data in big-endian byte order.
Definition mcuxClRsa_Types.h:105
uint32_t keyEntryLength
Byte-length of the buffer pointed to by pKeyEntryData.
Definition mcuxClRsa_Types.h:106