40#ifndef MCUXCLECC_TYPES_H_
41#define MCUXCLECC_TYPES_H_
44#include <mcuxClCore_Platform.h>
47#include <mcuxCsslAnalysis.h>
83struct mcuxClEcc_EdDSA_GenerateKeyPairDescriptor;
93struct mcuxClEcc_EdDSA_SignatureProtocolDescriptor;
103struct mcuxClEcc_ArithmeticOperationDescriptor;
122struct mcuxClEcc_ECDSA_SignatureProtocolDescriptor;
155#define mcuxClEcc_DomainParam_misc_Pack(byteLenN, byteLenP) MCUXCLPKC_PACKARGS4(0u, 0u, (uint8_t) byteLenN, (uint8_t) byteLenP)
156#define mcuxClEcc_DomainParam_misc_byteLenP_offset 0
157#define mcuxClEcc_DomainParam_misc_byteLenP_mask ((uint32_t) 0x000000FFu)
158#define mcuxClEcc_DomainParam_misc_byteLenN_offset 8
159#define mcuxClEcc_DomainParam_misc_byteLenN_mask ((uint32_t) 0x0000FF00u)
192#define mcuxClEcc_Sign_Param_optLen_Pack(byteLenHash) ((uint32_t) (byteLenHash) & 0xFFu)
193#define mcuxClEcc_Sign_Param_optLen_byteLenHash_offset 0
194#define mcuxClEcc_Sign_Param_optLen_byteLenHash_mask ((uint32_t) 0x000000FFu)
214#define mcuxClEcc_Verify_Param_optLen_Pack(byteLenHash) ((uint32_t) (byteLenHash) & 0xFFu)
215#define mcuxClEcc_Verify_Param_optLen_byteLenHash_offset 0
216#define mcuxClEcc_Verify_Param_optLen_byteLenHash_mask ((uint32_t) 0x000000FFu)
319#define mcuxClEcc_Weier_DomainParams_NIST_P192 mcuxClEcc_Weier_DomainParams_secp192r1
320#define mcuxClEcc_Weier_DomainParams_ansix9p192r1 mcuxClEcc_Weier_DomainParams_secp192r1
324#define mcuxClEcc_Weier_DomainParams_NIST_P224 mcuxClEcc_Weier_DomainParams_secp224r1
325#define mcuxClEcc_Weier_DomainParams_ansix9p224r1 mcuxClEcc_Weier_DomainParams_secp224r1
329#define mcuxClEcc_Weier_DomainParams_NIST_P256 mcuxClEcc_Weier_DomainParams_secp256r1
330#define mcuxClEcc_Weier_DomainParams_ansix9p256r1 mcuxClEcc_Weier_DomainParams_secp256r1
334#define mcuxClEcc_Weier_DomainParams_NIST_P384 mcuxClEcc_Weier_DomainParams_secp384r1
335#define mcuxClEcc_Weier_DomainParams_ansix9p384r1 mcuxClEcc_Weier_DomainParams_secp384r1
339#define mcuxClEcc_Weier_DomainParams_NIST_P521 mcuxClEcc_Weier_DomainParams_secp521r1
340#define mcuxClEcc_Weier_DomainParams_ansix9p521r1 mcuxClEcc_Weier_DomainParams_secp521r1
431MCUX_CSSL_ANALYSIS_START_PATTERN_EXTERNAL_API_DECLARATIONS()
432MCUX_CSSL_ANALYSIS_START_PATTERN_EXTERNAL_API_DEFINITIONS()
435MCUX_CSSL_ANALYSIS_STOP_PATTERN_EXTERNAL_API_DEFINITIONS()
436MCUX_CSSL_ANALYSIS_STOP_PATTERN_EXTERNAL_API_DECLARATIONS()
469MCUX_CSSL_ANALYSIS_START_PATTERN_EXTERNAL_API_DECLARATIONS()
470MCUX_CSSL_ANALYSIS_START_PATTERN_EXTERNAL_API_DEFINITIONS()
473MCUX_CSSL_ANALYSIS_STOP_PATTERN_EXTERNAL_API_DEFINITIONS()
474MCUX_CSSL_ANALYSIS_STOP_PATTERN_EXTERNAL_API_DECLARATIONS()
Top-level include file for the mcuxClBuffer component.
Constant definitions of mcuxClEcc 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
const mcuxClEcc_ArithmeticOperationDescriptor_t * mcuxClEcc_ArithmeticOperation_t
ECC arithmetic operation type.
Definition mcuxClEcc_Types.h:113
struct mcuxClEcc_EdDSA_DomainParams mcuxClEcc_EdDSA_DomainParams_t
Type for EdDSA domain parameters.
Definition mcuxClEcc_Types.h:78
mcuxClEcc_Status_t mcuxClEcc_Status_Protected_t
Deprecated type for mcuxClEcc component return codes.
Definition mcuxClEcc_Types.h:70
struct mcuxClEcc_MontDH_DomainParams mcuxClEcc_MontDH_DomainParams_t
Type for MontDH domain parameters.
Definition mcuxClEcc_Types.h:74
struct mcuxClEcc_ECDSA_SignatureProtocolDescriptor mcuxClEcc_ECDSA_SignatureProtocolDescriptor_t
ECDSA SignatureProtocol variant descriptor type.
Definition mcuxClEcc_Types.h:127
struct mcuxClEcc_ArithmeticOperationDescriptor mcuxClEcc_ArithmeticOperationDescriptor_t
ECC arithmetic operation descriptor type.
Definition mcuxClEcc_Types.h:108
struct mcuxClEcc_EdDSA_GenerateKeyPairDescriptor mcuxClEcc_EdDSA_GenerateKeyPairDescriptor_t
EdDSA GenerateKeyPair variant descriptor type.
Definition mcuxClEcc_Types.h:88
struct mcuxClEcc_EdDSA_SignatureProtocolDescriptor mcuxClEcc_EdDSA_SignatureProtocolDescriptor_t
EdDSA SignatureProtocol variant descriptor type.
Definition mcuxClEcc_Types.h:98
uint32_t mcuxClEcc_Status_t
Type for mcuxClEcc component return codes.
Definition mcuxClEcc_Types.h:65
struct mcuxClEcc_Weier_DomainParams mcuxClEcc_Weier_DomainParams_t
Type for Weierstrass ECC domain parameters.
Definition mcuxClEcc_Types.h:116
static mcuxClEcc_ArithmeticOperation_t mcuxClEcc_ArithmeticOperation_PointSub
ECC Arithmetic operation type for full point subtraction on a short Weierstrass curve not secured aga...
Definition mcuxClEcc_Types.h:471
const mcuxClEcc_ArithmeticOperationDescriptor_t mcuxClEcc_ArithOpDesc_PointSub
ECC Arithmetic operation descriptor for full point subtraction on a short Weierstrass curve not secur...
const mcuxClEcc_ArithmeticOperationDescriptor_t mcuxClEcc_ArithOpDesc_PointAdd
ECC Arithmetic operation descriptor for full point addition on a short Weierstrass curve not secured ...
static mcuxClEcc_ArithmeticOperation_t mcuxClEcc_ArithmeticOperation_PointAdd
ECC Arithmetic operation type for full point addition on a short Weierstrass curve not secured agains...
Definition mcuxClEcc_Types.h:433
#define MCUX_CSSL_FP_PROTECTED_TYPE(resultType)
Based on a given base type, builds a return type with flow protection.
Definition mcuxCsslFlowProtection.h:101
const mcuxClEcc_EdDSA_SignatureProtocolDescriptor_t mcuxClEcc_EdDsa_Ed25519ProtocolDescriptor
Ed25519 signature protocol descriptor.
Parameter structure of elliptic curve of the form, y^2 = x^3 + a*x + b modulo prime p.
Definition mcuxClEcc_Types.h:139
mcuxCl_InputBuffer_t pG
[in] InputBuffer for octet string of base point G.
Definition mcuxClEcc_Types.h:144
uint32_t misc
[in] packed lengths, via mcuxClEcc_DomainParam_misc_Pack: bits 0~ 7: byteLenP: length of the octet st...
Definition mcuxClEcc_Types.h:148
mcuxCl_InputBuffer_t pB
[in] InputBuffer for octet string of curve parameter b (< p), of which the length is byteLenP.
Definition mcuxClEcc_Types.h:141
mcuxCl_InputBuffer_t pP
[in] InputBuffer for octet string of prime modulus p, of which the length is byteLenP.
Definition mcuxClEcc_Types.h:142
mcuxCl_InputBuffer_t pN
[in] InputBuffer for octet string of base point order n, of which the length is byteLenN.
Definition mcuxClEcc_Types.h:146
mcuxCl_InputBuffer_t pA
[in] InputBuffer for octet string of curve parameter a (< p), of which the length is byteLenP.
Definition mcuxClEcc_Types.h:140
Parameter structure for function mcuxClEcc_KeyGen.
Definition mcuxClEcc_Types.h:165
mcuxClEcc_DomainParam_t curveParam
[in] structure of InputBuffers for curve parameters and length of parameters.
Definition mcuxClEcc_Types.h:166
uint8_t * pPrivateKey
[out] pointer to memory area, where the private key will be exported if KeyGen is executed successful...
Definition mcuxClEcc_Types.h:167
uint32_t optLen
[in] packed options (reserved): bits 0~31: reserved.
Definition mcuxClEcc_Types.h:171
uint8_t * pPublicKey
[out] pointer to memory area, where the public key will be exported if KeyGen is executed successfull...
Definition mcuxClEcc_Types.h:169
Parameter structure for function mcuxClEcc_Sign.
Definition mcuxClEcc_Types.h:178
mcuxCl_InputBuffer_t pHash
[in] InputBuffer for string of message digest (hash), of which the length is byteLenHash (in optLen).
Definition mcuxClEcc_Types.h:180
const mcuxClEcc_ECDSA_SignatureProtocolDescriptor_t * pMode
[in] pointer to ECDSA protocol descriptor.
Definition mcuxClEcc_Types.h:188
const uint8_t * pPrivateKey
[in] pointer to octet string of private key, which is of the same format as base point order n.
Definition mcuxClEcc_Types.h:181
mcuxClEcc_DomainParam_t curveParam
[in] structure of InputBuffers for curve parameters and length of parameters.
Definition mcuxClEcc_Types.h:179
mcuxCl_Buffer_t pSignature
[out] Buffer for memory area in which signature R and S will be exported if signature is generated su...
Definition mcuxClEcc_Types.h:182
uint32_t optLen
[in] packed options (reserved) and lengths: bits 0~7: byteLenHash: length of the string of message di...
Definition mcuxClEcc_Types.h:185
Parameter structure for function mcuxClEcc_Verify.
Definition mcuxClEcc_Types.h:198
mcuxCl_InputBuffer_t pPrecG
[in] InputBuffer for octet string of pre-computed point of base point G, which is of the same format ...
Definition mcuxClEcc_Types.h:200
const uint8_t * pPublicKey
[in] pointer to octet string of public key, which is of the same format as base point G.
Definition mcuxClEcc_Types.h:205
mcuxCl_InputBuffer_t pHash
[in] InputBuffer for string of message digest (hash), of which the length is byteLenHash (in optLen).
Definition mcuxClEcc_Types.h:202
mcuxClEcc_DomainParam_t curveParam
[in] structure of InputBuffers for curve parameters and length of parameters.
Definition mcuxClEcc_Types.h:199
mcuxCl_InputBuffer_t pSignature
[in] InputBuffer for to octet string of signature R and S.
Definition mcuxClEcc_Types.h:203
mcuxCl_Buffer_t pOutputR
[out] Buffer for memory area in which signature R calculated by verify function will be exported if s...
Definition mcuxClEcc_Types.h:206
uint32_t optLen
[in] packed options (reserved) and lengths: bits 0~7: byteLenHash: length of the string of message di...
Definition mcuxClEcc_Types.h:208
Parameter structure for function mcuxClEcc_PointMult.
Definition mcuxClEcc_Types.h:221
uint32_t optLen
[in] packed options (reserved): bits 0~31: reserved.
Definition mcuxClEcc_Types.h:227
mcuxClEcc_DomainParam_t curveParam
[in] structure of InputBuffers for curve parameters and length of parameters.
Definition mcuxClEcc_Types.h:222
mcuxCl_InputBuffer_t pScalar
[in] InputBuffer for octet string of scalar d, which is of the same format as base point order n.
Definition mcuxClEcc_Types.h:223
mcuxCl_Buffer_t pResult
[out] Buffer for memory area, where the result R = dQ will be exported if PointMult is executed succe...
Definition mcuxClEcc_Types.h:225
mcuxCl_InputBuffer_t pPoint
[in] InputBuffer for octet string of EC point Q, which is of the same format as base point G.
Definition mcuxClEcc_Types.h:224