11.12.3.4.92. Function Se05x_API_GetECCurveId

11.12.3.4.92.1. Function Documentation

smStatus_t Se05x_API_GetECCurveId(pSe05xSession_t session_ctx, uint32_t objectID, uint8_t *pcurveId)

Se05x_API_GetECCurveId

Get the curve associated with an EC key.

Command to Applet

Field

Value

Description

CLA

0x80

INS

INS_READ

See SE05x_INS_t

P1

P1_CURVE

See SE05x_P1_t

P2

P2_ID

See SE05x_P2_t

Lc

#(Payload)

Payload

TLV[TAG_1]

4-byte identifier

Le

0x00

R-APDU Body

Value

Description

TLV[TAG_1]

1-byte curve identifier (from SE05x_ECCurve_t)

R-APDU Trailer

SW

Description

SW_NO_ERROR

Data is returned successfully.

Parameters
  • [in] session_ctx: Session Context [0:kSE05x_pSession]

  • [in] objectID: object id [1:kSE05x_TAG_1]

  • [out] pcurveId: [0:kSE05x_TAG_1]