KI_ECPrivateComponent

KI_ECPrivateComponent

Purpose:

This KI allows you to specify the private component of an EC private key. Unlike KI_ECPrivate, it does not contain the underlying EC parameters and it is not to be used with any algorithms. It provides a way to extract the EC private key.

Type of information this allows you to use:

an elliptic curve private key without its curve parameters.

Format of info supplied to B_SetKeyInfo:

pointer to an ITEM structure that contains the private key component of an EC private key.

Format of info returned by B_GetKeyInfo:

pointer to an ITEM structure that contains the address and length of the private key component of an EC private key.

Restrictions:

Key objects built with this KI are not compatible with any Crypto-C AI. This KI is supplied only as a convenience to extract the EC private key component.

Can get this info type if key object already has:

KI_ECPrivateComponent, KI_ECPrivateComponentBER,

KI_ECPrivate, or KI_ECPrivateBER.

C h a p t e r 3 K e y I n f o Ty p e s

265

Page 275
Image 275
RSA Security 5 manual KIECPrivateComponent, An elliptic curve private key without its curve parameters