header of mcuxClEcc functionalities related to ECC protocols based on (short) Weierstrass curves More...
#include <mcuxClCore_FunctionIdentifiers.h>
#include <mcuxClSession.h>
#include <mcuxClKey.h>
#include <mcuxClEcc_Types.h>
Go to the source code of this file.
Data Structures | |
struct | mcuxClEcc_Weier_BasicDomainParams_t |
Structure to define basic custom domain parameters for (short) Weierstrass curves with cofactor 1. More... | |
Macros | |
#define | MCUXCLECC_OPTION_GENERATEPRECPOINT_YES |
#define | MCUXCLECC_OPTION_GENERATEPRECPOINT_NO |
#define | MCUXCLECC_OPTION_GENERATEPRECPOINT_MASK |
#define | MCUXCLECC_OPTION_GENERATEPRECPOINT_OFFSET |
Functions | |
mcuxClEcc_Status_t | mcuxClEcc_WeierECC_GenerateDomainParams (mcuxClSession_Handle_t pSession, mcuxClEcc_Weier_DomainParams_t *pEccWeierDomainParams, mcuxClEcc_Weier_BasicDomainParams_t *pEccWeierBasicDomainParams, uint32_t options) |
ECC Weierstrass custom domain parameter generation function. More... | |
mcuxClEcc_Status_t | mcuxClEcc_WeierECC_GenerateCustomKeyType (mcuxClKey_CustomType_t customType, mcuxClKey_AlgorithmId_t algoId, mcuxClKey_Size_t size, void *pCustomParams) |
Key type constructor. More... | |
header of mcuxClEcc functionalities related to ECC protocols based on (short) Weierstrass curves
mcuxClEcc_Status_t mcuxClEcc_WeierECC_GenerateDomainParams | ( | mcuxClSession_Handle_t | pSession, |
mcuxClEcc_Weier_DomainParams_t * | pEccWeierDomainParams, | ||
mcuxClEcc_Weier_BasicDomainParams_t * | pEccWeierBasicDomainParams, | ||
uint32_t | options | ||
) |
ECC Weierstrass custom domain parameter generation function.
Given pointers and lengths specifying domain parameters of a custom (short) Weierstrass curve with cofactor 1, this function generates a corresponding optimized custom domain parameter struct.
pSession | Handle for the current CL session. | |
[out] | pEccWeierDomainParams | Pointer to memory area in which the optimized domain parameters shall be stored. |
[in] | pEccWeierBasicDomainParams | Pointer to struct containing pointers and lengths specifying the custom domain parameters. |
[in] | options | Parameter specifying whether or not the pre-computed point (2 ^ (byteLenN * 4)) * G corresponding to the base point G shall be calculated or not, If set to
|
MCUXCLECC_STATUS_OK | if optimized domain parameters are generated successfully; |
MCUXCLECC_STATUS_INVALID_PARAMS | if parameters are invalid; |
MCUXCLECC_STATUS_FAULT_ATTACK | if fault attack (unexpected behavior) is detected. |
mcuxClEcc_Status_t mcuxClEcc_WeierECC_GenerateCustomKeyType | ( | mcuxClKey_CustomType_t | customType, |
mcuxClKey_AlgorithmId_t | algoId, | ||
mcuxClKey_Size_t | size, | ||
void * | pCustomParams | ||
) |
Key type constructor.
This function allows to generate custom key types according to the passed algoId
.
[out] | customType | Handle for the custom key type. |
[in] | algoId | Algorithm identifier specifying the key type descriptor to be generated. The supported algoIds are
|
[in] | size | Algorithm based key size. |
[in] | pCustomParams | Pointer to algorithm based custom parameters. If algoId & MCUXCLKEY_ALGO_ID_ALGO_MASK equals
|
MCUXCLECC_STATUS_OK | if custom key type is generated successfully; |
MCUXCLECC_STATUS_INVALID_PARAMS | if Parameters are invalid. |
MCUXCLECC_STATUS_FAULT_ATTACK | if fault attack (unexpected behavior) is detected. |