MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxClEcc_Types.h File Reference

Type definitions of mcuxClEcc component. More...

#include <stdint.h>
#include <mcuxClConfig.h>
#include <mcuxCsslFlowProtection.h>
#include <mcuxClEcc_ParameterSizes.h>
#include <mcuxCsslAnalysis.h>

Go to the source code of this file.

Data Structures

struct  mcuxClEcc_DomainParam_t
 Parameter structure of elliptic curve of the form, y^2 = x^3 + a*x + b modulo prime p. More...
 
struct  mcuxClEcc_KeyGen_Param_t
 Parameter structure for function mcuxClEcc_KeyGen. More...
 
struct  mcuxClEcc_Sign_Param_t
 Parameter structure for function mcuxClEcc_Sign. More...
 
struct  mcuxClEcc_Verify_Param_t
 Parameter structure for function mcuxClEcc_Verify. More...
 
struct  mcuxClEcc_PointMult_Param_t
 Parameter structure for function mcuxClEcc_PointMult. More...
 

Macros

#define MCUXCLECC_STATUS_OK
 Operation was successful. More...
 
#define MCUXCLECC_STATUS_INVALID_PARAMS
 Parameters are invalid. More...
 
#define MCUXCLECC_STATUS_RNG_ERROR
 Random number (DRBG / PRNG) error (unexpected behavior). More...
 
#define MCUXCLECC_STATUS_INVALID_SIGNATURE
 ECDSA Signature is invalid. More...
 
#define MCUXCLECC_STATUS_NEUTRAL_POINT
 The result of the point operation is the neutral point. More...
 
#define MCUXCLECC_STATUS_FAULT_ATTACK
 Fault attack (unexpected behavior) is detected. More...
 
#define MCUXCLECC_STATUS_NOT_SUPPORTED
 Functionality is not supported. More...
 
#define MCUXCLECC_STATUS_ERROR_SMALL_SUBGROUP
 MONTDH public key lies in small subgroup. More...
 
#define mcuxClEcc_DomainParam_misc_Pack(byteLenN, byteLenP)
 mcuxClEcc macros and defines to pack or access components of misc parameter of mcuxClEcc_DomainParam_t More...
 
#define mcuxClEcc_DomainParam_misc_byteLenP_offset
 Offset of byteLenP in packed misc parameter of mcuxClEcc_DomainParam_t. More...
 
#define mcuxClEcc_DomainParam_misc_byteLenP_mask
 Mask to extract byteLenP from packed misc parameter of mcuxClEcc_DomainParam_t. More...
 
#define mcuxClEcc_DomainParam_misc_byteLenN_offset
 Offset of byteLenN in packed misc parameter of mcuxClEcc_DomainParam_t. More...
 
#define mcuxClEcc_DomainParam_misc_byteLenN_mask
 Mask to extract byteLenN from packed misc parameter of mcuxClEcc_DomainParam_t. More...
 
#define mcuxClEcc_Sign_Param_optLen_Pack(byteLenHash)
 mcuxClEcc macros and defines to pack or access components of optLen parameter of mcuxClEcc_Sign_Param_t More...
 
#define mcuxClEcc_Sign_Param_optLen_byteLenHash_offset
 Offset of byteLenHash in packed optLen parameter of mcuxClEcc_Sign_Param_t. More...
 
#define mcuxClEcc_Sign_Param_optLen_byteLenHash_mask
 Mask to extract byteLenHash from packed optLen parameter of mcuxClEcc_Sign_Param_t. More...
 
#define mcuxClEcc_Verify_Param_optLen_Pack(byteLenHash)
 mcuxClEcc macros and defines to pack or access components of optLen parameter of mcuxClEcc_Verify_Param_t More...
 
#define mcuxClEcc_Verify_Param_optLen_byteLenHash_offset
 Offset of byteLenHash in packed optLen parameter of mcuxClEcc_Verify_Param_t. More...
 
#define mcuxClEcc_Verify_Param_optLen_byteLenHash_mask
 Mask to extract byteLenHash from packed optLen parameter of mcuxClEcc_Verify_Param_t. More...
 

Typedefs

typedef uint32_t mcuxClEcc_Status_t
 Type for mcuxClEcc component return codes. More...
 
typedef mcuxClEcc_Status_t mcuxClEcc_Status_Protected_t
 Deprecated type for mcuxClEcc component return codes. More...
 
typedef struct mcuxClEcc_MontDH_DomainParams mcuxClEcc_MontDH_DomainParams_t
 Type for MontDH domain parameters. More...
 
typedef struct mcuxClEcc_EdDSA_DomainParams mcuxClEcc_EdDSA_DomainParams_t
 Type for EdDSA domain parameters. More...
 
typedef struct mcuxClEcc_EdDSA_GenerateKeyPairDescriptor mcuxClEcc_EdDSA_GenerateKeyPairDescriptor_t
 EdDSA GenerateKeyPair variant descriptor type. More...
 
typedef struct mcuxClEcc_EdDSA_SignatureProtocolDescriptor mcuxClEcc_EdDSA_SignatureProtocolDescriptor_t
 EdDSA SignatureProtocol variant descriptor type. More...
 
typedef struct mcuxClEcc_Weier_DomainParams mcuxClEcc_Weier_DomainParams_t
 Type for Weierstrass ECC domain parameters. More...
 

Variables

const mcuxClEcc_EdDSA_GenerateKeyPairDescriptor_t mcuxClEcc_EdDsa_GeneratePrivKeyDescriptor
 
const mcuxClEcc_EdDSA_SignatureProtocolDescriptor_t mcuxClEcc_EdDsa_Ed25519ProtocolDescriptor
 Ed25519 signature protocol descriptor. More...
 

Detailed Description

Type definitions of mcuxClEcc component.