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

Definitions of Weierstrass point encoding variant descriptors. More...

Variables

const mcuxClEcc_WeierECC_PointEncDescriptor_t mcuxClEcc_WeierECC_PointEncDescriptor_SEC
 Point encoding variant descriptor to be used for Weierstrass curve points as specified in SEC 1: Elliptic Curve Cryptography.
static const mcuxClEcc_WeierECC_PointEncType_t mcuxClEcc_WeierECC_PointEncType_SEC
 Point encoding type to be used for Weierstrass curve points as specified in SEC 1: Elliptic Curve Cryptography.

Detailed Description

Definitions of Weierstrass point encoding variant descriptors.

Variable Documentation

◆ mcuxClEcc_WeierECC_PointEncDescriptor_SEC

const mcuxClEcc_WeierECC_PointEncDescriptor_t mcuxClEcc_WeierECC_PointEncDescriptor_SEC
extern

Point encoding variant descriptor to be used for Weierstrass curve points as specified in SEC 1: Elliptic Curve Cryptography.

◆ mcuxClEcc_WeierECC_PointEncType_SEC

const mcuxClEcc_WeierECC_PointEncType_t mcuxClEcc_WeierECC_PointEncType_SEC
static

Point encoding type to be used for Weierstrass curve points as specified in SEC 1: Elliptic Curve Cryptography.

SEC encoding which encodes

  • the neutral point as 0x00
  • a point (x,y) either as
    • 0x04 || x || y if no point-compression is used
    • (0x02 | LSBit(y)) || x if point-compression is used. NOTES:

If the encoded point starts with 0x00, nothing is written to the output buffer, but MCUXCLECC_STATUS_NEUTRAL_POINT is returned from the decoding function.

  • If the encoded point starts with 0x02 or 0x03 the compressed point gets decompressed.
  • If the encoding is invalid, i.e. the leading bytes is not in {0x00,0x02,0x03,0x04}, MCUXCLECC_STATUS_INVALID_PARAMS is returned from the decoding function.
  • If the encoded point is not on the curve, MCUXCLECC_STATUS_INVALID_PARAMS is returned from the decoding function.
Examples
mcuxClEcc_WeierECC_DecodePoint_brainpoolP384r1_example.c, and mcuxClEcc_WeierECC_DecodePoint_secp224r1_example.c.