KI_ECPublic
KI_ECPublic
Purpose:
This KI allows you to specify a public key used by the Elliptic Curve algorithm. The information consists of the public component and the underlying elliptic curve parameters.
Type of information this allows you to use:
an elliptic curve public key. The parameters of the key are specified as the public component (publicKey), and the underlying elliptic curve parameters.
Format of info supplied to B_SetKeyInfo:
pointer to an A_EC_PUBLIC_KEY structure:
typedef struct { |
|
|
|
A_EC_PARAMS curveParams; | /* the underlying elliptic curve parameters */ | ||
ITEM | publicKey; | /* public component */ |
}A_EC_PUBLIC_KEY;
Each ITEM supplies an integer in canonical format, where the ITEM's data points to an unsigned byte array, most significant byte first, and the ITEM's len gives its length. For all ITEM values except the public component (x) and the curve parameter base, leading zeros are stripped before it is copied to the key object.
Format of info returned by B_GetKeyInfo:
pointer to an A_EC_PUBLIC_KEY structure.
Can get this info type if key object already has:
KI_ECPublic or KI_ECPublicBER.
C h a p t e r 3 K e y I n f o Ty p e s | 267 |