MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
mcuxClEcc_ArithmeticOperation

Definionts of variant descriptors for arithmetic operations of mcuxClEcc. More...

Variables

const mcuxClEcc_ArithmeticOperationDescriptor_t mcuxClEcc_ArithOpDesc_PointAdd
 ECC Arithmetic operation descriptor for full point addition on a short Weierstrass curve not secured against side-channel attacks.
static mcuxClEcc_ArithmeticOperation_t mcuxClEcc_ArithmeticOperation_PointAdd
 ECC Arithmetic operation type for full point addition on a short Weierstrass curve not secured against side-channel attacks.
const mcuxClEcc_ArithmeticOperationDescriptor_t mcuxClEcc_ArithOpDesc_PointSub
 ECC Arithmetic operation descriptor for full point subtraction on a short Weierstrass curve not secured against side-channel attacks.
static mcuxClEcc_ArithmeticOperation_t mcuxClEcc_ArithmeticOperation_PointSub
 ECC Arithmetic operation type for full point subtraction on a short Weierstrass curve not secured against side-channel attacks.

Detailed Description

Definionts of variant descriptors for arithmetic operations of mcuxClEcc.

Variable Documentation

◆ mcuxClEcc_ArithOpDesc_PointAdd

const mcuxClEcc_ArithmeticOperationDescriptor_t mcuxClEcc_ArithOpDesc_PointAdd
extern

ECC Arithmetic operation descriptor for full point addition on a short Weierstrass curve not secured against side-channel attacks.

◆ mcuxClEcc_ArithmeticOperation_PointAdd

mcuxClEcc_ArithmeticOperation_t mcuxClEcc_ArithmeticOperation_PointAdd
static

ECC Arithmetic operation type for full point addition on a short Weierstrass curve not secured against side-channel attacks.

This type shall be passed to function mcuxClEcc_ArithmeticOperation in order to perform a full point addition P1 + P2 on a short Weierstrass curve over prime p with base point order n. The function is not secured against side-channel attacks.

The parameters of the function shall be chosen as follows:

  • pDomainParams: Pointer to the domain parameters of the Weierstrass curve (of type mcuxClEcc_Weier_DomainParams_t)
  • pOp1: Pointer to buffer storing the coordinates x1 and y1 of P1 concatenated. Both coordinates are elements of GF(p), i.e. 0 <= x1,y1 < p, and given by byteLen(p) bytes in big endian format. The passed parameter size op1Size must be 2*byteLen(p).
  • pOp2: Pointer to buffer storing the coordinates x2 and y2 of P2 concatenated. Both coordinates are elements of GF(p), i.e. 0 <= x2,y2 < p, and given by byteLen(p) bytes in big endian format. The passed parameter size op2Size must be 2*byteLen(p).
  • pResult: Point to buffer in which the coordinates xRes and yRes of the result P1 + P2 shall be stored concatenated. Both coordinates are elements of GF(p), i.e. 0 <= xRes,yRes < p, and given by byteLen(p) bytes in big endian format. This buffer will only be written if MCUXCLECC_STATUS_OK is returned.

The function returns

Examples
mcuxClEcc_ArithmeticOperation_PointAdd_NIST_P224_example.c, and mcuxClKey_Spake2Plus_example.c.

◆ mcuxClEcc_ArithOpDesc_PointSub

const mcuxClEcc_ArithmeticOperationDescriptor_t mcuxClEcc_ArithOpDesc_PointSub
extern

ECC Arithmetic operation descriptor for full point subtraction on a short Weierstrass curve not secured against side-channel attacks.

◆ mcuxClEcc_ArithmeticOperation_PointSub

mcuxClEcc_ArithmeticOperation_t mcuxClEcc_ArithmeticOperation_PointSub
static

ECC Arithmetic operation type for full point subtraction on a short Weierstrass curve not secured against side-channel attacks.

This type shall be passed to function mcuxClEcc_ArithmeticOperation in order to perform a full point subtraction P1 - P2 on a short Weierstrass curve over prime p with base point order n. The function is not secured against side-channel attacks.

The parameters of the function shall be chosen as follows:

  • pDomainParams: Pointer to the domain parameters of the Weierstrass curve (of type mcuxClEcc_Weier_DomainParams_t)
  • pOp1: Pointer to buffer storing the coordinates x1 and y1 of P1 concatenated. Both coordinates are elements of GF(p), i.e. 0 <= x1,y1 < p, and given by byteLen(p) bytes in big endian format. The passed parameter size op1Size must be 2*byteLen(p).
  • pOp2: Pointer to buffer storing the coordinates x2 and y2 of P2 concatenated. Both coordinates are elements of GF(p), i.e. 0 <= x2,y2 < p, and given by byteLen(p) bytes in big endian format. The passed parameter size op2Size must be 2*byteLen(p).
  • pResult: Point to buffer in which the coordinates xRes and yRes of the result P1 - P2 shall be stored concatenated. Both coordinates are elements of GF(p), i.e. 0 <= xRes,yRes < p, and given by byteLen(p) bytes in big endian format. This buffer will only be written if MCUXCLECC_STATUS_OK is returned.

The function returns

Examples
mcuxClEcc_ArithmeticOperation_PointSub_NIST_P224_example.c, and mcuxClKey_Spake2Plus_example.c.