MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
mcuxClSignature_Functions.h
1/*--------------------------------------------------------------------------*/
2/* Copyright 2020-2023 NXP */
3/* */
4/* SPDX-License-Identifier: BSD-3-Clause */
5/* */
6/* Redistribution and use in source and binary forms, with or without */
7/* modification, are permitted provided that the following conditions are */
8/* met: */
9/* */
10/* 1. Redistributions of source code must retain the above copyright */
11/* notice, this list of conditions and the following disclaimer. */
12/* */
13/* 2. Redistributions in binary form must reproduce the above copyright */
14/* notice, this list of conditions and the following disclaimer in the */
15/* documentation and/or other materials provided with the distribution. */
16/* */
17/* 3. Neither the name of the copyright holder nor the names of its */
18/* contributors may be used to endorse or promote products derived from */
19/* this software without specific prior written permission. */
20/* */
21/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS */
22/* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED */
23/* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A */
24/* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */
25/* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */
26/* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */
27/* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR */
28/* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */
29/* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */
30/* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS */
31/* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
32/*--------------------------------------------------------------------------*/
33
34#ifndef MCUXCLSIGNATURE_FUNCTIONS_H_
35#define MCUXCLSIGNATURE_FUNCTIONS_H_
36
37#include <mcuxClConfig.h> // Exported features flags header
38#include <mcuxClCore_Platform.h>
39#include <mcuxClBuffer.h>
40
41#include <mcuxClSession_Types.h>
42#include <mcuxClKey_Types.h>
43#include <mcuxClSignature_Types.h>
44
47
48#ifdef __cplusplus
49extern "C" {
50#endif
51
58
59#ifdef MCUXCL_FEATURE_SIGNATURE_SIGN
92MCUX_CSSL_FP_FUNCTION_DECL(mcuxClSignature_sign)
98 uint32_t inSize,
99 mcuxCl_Buffer_t pSignature,
100 uint32_t * const pSignatureSize
101); /* oneshot sign */
102#endif /* MCUXCL_FEATURE_SIGNATURE_SIGN */
103
104#ifdef MCUXCL_FEATURE_SIGNATURE_VERIFY
135MCUX_CSSL_FP_FUNCTION_DECL(mcuxClSignature_verify)
141 uint32_t inSize,
142 mcuxCl_InputBuffer_t pSignature,
143 uint32_t signatureSize
144); /* oneshot verification */
146#endif /* MCUXCL_FEATURE_SIGNATURE_VERIFY */
147#endif /* MCUXCL_FEATURE_SIGNATURE_ONESHOT */
148
149#ifdef MCUXCL_FEATURE_SIGNATURE_SELFTEST
169MCUX_CSSL_FP_FUNCTION_DECL(mcuxClSignature_selftest)
174); /* selftest */
175#endif /* MCUXCL_FEATURE_SIGNATURE_SELFTEST */
176
177
178#ifdef __cplusplus
179} /* extern "C" */
180#endif
181
182#endif /* MCUXCLSIGNATURE_FUNCTIONS_H_ */
Top-level include file for the mcuxClBuffer component.
Definition of function identifiers for the flow protection mechanism.
Type definitions for the mcuxClKey component.
Type definitions for the mcuxClSession component.
Provides the API for the CSSL flow protection mechanism.
const uint8_t * mcuxCl_InputBuffer_t
Input buffer type.
Definition mcuxClBuffer_Pointer.h:58
uint8_t * mcuxCl_Buffer_t
Input/output buffer type.
Definition mcuxClBuffer_Pointer.h:67
mcuxClKey_Descriptor_t *const mcuxClKey_Handle_t
Key handle type.
Definition mcuxClKey_Types.h:108
mcuxClSession_Descriptor_t *const mcuxClSession_Handle_t
Type for mcuxClSession Handle.
Definition mcuxClSession_Types.h:133
const mcuxClSignature_TestDescriptor_t *const mcuxClSignature_Test_t
Signature selftest mode/algorithm type.
Definition mcuxClSignature_Types.h:95
uint32_t mcuxClSignature_Status_t
Signature status code.
Definition mcuxClSignature_Types.h:119
const mcuxClSignature_ModeDescriptor_t *const mcuxClSignature_Mode_t
Signature mode/algorithm type.
Definition mcuxClSignature_Types.h:72
#define MCUX_CSSL_FP_FUNCTION_DECL(...)
Declaration of a flow protected function.
Definition mcuxCsslFlowProtection.h:145
#define MCUX_CSSL_FP_PROTECTED_TYPE(resultType)
Based on a given base type, builds a return type with flow protection.
Definition mcuxCsslFlowProtection.h:101