A SERVICE OF

logo

AI_ECPubKeyBER
84 RSA BSAFE Crypto-C Library Reference Manual
AI_ECPubKeyBER
Purpose:
This AI allows you to specify an EC public key and underlying EC parameters in
order to build an acceleration table.
Type of information this allows you to use:
the encoding of an ANSI X9.62 Version 1 algorithm identifier that specifies an elliptic
curve public key. An initialized
AI_ECPubKeyBER or AI_ECPubKey algorithm object can
be used as the input parameter
ParameterInfoType
when initializing an
AI_ECBuildPubKeyAccelTable.
Format of info supplied to B_SetAlgorithmInfo:
pointer to an ITEM structure that contains the ANSI X9.62-compliant BER encoding of
a public key and its elliptic curve parameters. In compliance with X9.62, you can
specify the
CHOICE of either a full EC CURVE definition or a NAMED CURVE
definition. Both ANSI X9.62 uncompressed and hybrid base points are decoded.
The BER encoding can be obtained by calling
B_GetKeyInfo from a key object of type
KI_ECPublicBER.
The encoding is converted to DER before it is copied to the key object.
B_SetKeyInfo
returns
BE_WRONG_KEY_INFO if the BER encoding is incorrect.
Format of info returned by B_GetAlgorithmInfo:
pointer to an ITEM structure that contains the address and length of the BER encoding.
Crypto-C procedures to use with algorithm object:
B_SetAlgorithmInfo and B_GetAlgorithmInfo.
Can get this info type if algorithm object already has:
AI_ECPubKey or AI_ECPubKeyBER.