MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxClRsa_Functions.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------*/
2 /* Copyright 2020-2021 NXP */
3 /* */
4 /* NXP Confidential. This software is owned or controlled by NXP and may */
5 /* only be used strictly in accordance with the applicable license terms. */
6 /* By expressly accepting such terms or by downloading, installing, */
7 /* activating and/or otherwise using the software, you are agreeing that */
8 /* you have read, and that you agree to comply with and are bound by, such */
9 /* license terms. If you do not agree to be bound by the applicable license */
10 /* terms, then you may not retain, install, activate or otherwise use the */
11 /* software. */
12 /*--------------------------------------------------------------------------*/
13 
19 #ifndef MCUXCLRSA_FUNCTIONS_H_
20 #define MCUXCLRSA_FUNCTIONS_H_
21 
22 #include <mcuxClSession.h>
23 #include <mcuxCsslFlowProtection.h>
24 #include <mcuxClHash.h>
25 #include <mcuxClRsa_Types.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
116  mcuxClSession_Handle_t pSession,
117  const mcuxClRsa_Key * const pKey,
118  const uint8_t * const pMessageOrDigest,
119  const uint32_t messageLength,
120  const mcuxClRsa_SignVerifyMode pPaddingMode,
121  const uint32_t saltLength,
122  const uint32_t options,
123  uint8_t * const pSignature
124 );
125 
197  mcuxClSession_Handle_t pSession,
198  const mcuxClRsa_Key * const pKey,
199  const uint8_t * const pMessageOrDigest,
200  const uint32_t messageLength,
201  uint8_t * const pSignature,
202  const mcuxClRsa_SignVerifyMode pVerifyMode,
203  const uint32_t saltLength,
204  const uint32_t options,
205  uint8_t * const pOutput
206 );
207 
208  /* mcuxClRsa_Functions */
212 
213 #ifdef __cplusplus
214 } /* extern "C" */
215 #endif
216 
217 #endif /* MCUXCLRSA_FUNCTIONS_H_ */
218 
Structure type for Rsa key, specifying key type and key entries.
Definition: mcuxClRsa_Types.h:137
mcuxClSession_Descriptor_t *const mcuxClSession_Handle_t
Type for mcuxClSession Handle.
Definition: mcuxClSession_Types.h:110
Top-level include file for the mcuxClHash component.
mcuxClRsa_Status_Protected_t mcuxClRsa_sign(mcuxClSession_Handle_t pSession, const mcuxClRsa_Key *const pKey, const uint8_t *const pMessageOrDigest, const uint32_t messageLength, const mcuxClRsa_SignVerifyMode pPaddingMode, const uint32_t saltLength, const uint32_t options, uint8_t *const pSignature)
RSA sign operation.
mcuxClRsa_Status_Protected_t mcuxClRsa_verify(mcuxClSession_Handle_t pSession, const mcuxClRsa_Key *const pKey, const uint8_t *const pMessageOrDigest, const uint32_t messageLength, uint8_t *const pSignature, const mcuxClRsa_SignVerifyMode pVerifyMode, const uint32_t saltLength, const uint32_t options, uint8_t *const pOutput)
RSA verify operation.
Type definitions for the mcuxClRsa component.
uint64_t mcuxClRsa_Status_Protected_t
Type for RSA protected status codes.
Definition: mcuxClRsa_Types.h:109
mcuxClRsa_SignVerifyMode_t * mcuxClRsa_SignVerifyMode
Pointer type to Sign/Verify mode.
Definition: mcuxClRsa_Types.h:178
Top-level include file for the mcuxClSession component.
Provides the API for the CSSL flow protection mechanism.
#define MCUX_CSSL_FP_FUNCTION_DECL(id)
Declaration of a flow protected function.
Definition: mcuxCsslFlowProtection.h:119