KI_DSAPublicX957BER

KI_DSAPublicX957BER

Purpose:

This KI is similar to KI_DSAPublic except that it uses the ASN.1 BER format. This KI allows you to parse and create an ASN.1 key info type encoded as specified by X9.57. You call B_SetKeyInfo to initialize a key object from the encoded key info type that includes the public component, prime, subprime, and base. You call B_GetKeyInfo with this KI to create an encoded key info type from a key object that was created using KI_DSAPublic, KI_DSAPublicBER, or KI_DSAPublicX957BER. The OID for DSA keys, excluding the tag and length bytes, in decimal, is

42, 134, 72, 206, 56, 4, 1”. Also see KI_DSAPublic and KI_DSAPublicBER.

Type of information this allows you to use:

the encoding of a DSA public key that is encoded as X9.57 SubjectPublicKeyInfo type. Note that this encoding contains all of the information specified by KI_DSAPublic.

Format of info supplied to B_SetKeyInfo:

pointer to an ITEM structure that gives the address and length of the BER encoding. The encoding is converted to DER before it is copied to the key object. B_SetKeyInfo returns BE_WRONG_KEY_INFO if the PublicKeyInfo specifies a public key for an algorithm other than DSA (as defined by X9.57).

Format of info returned by B_GetKeyInfo:

pointer to an ITEM structure that gives the address and length of the DER encoding.

Can get this info type if key object already has:

KI_DSAPublic, KI_DSAPublicBER, KI_DSAPublicX957BER.

2 6 2

R S A B S A F E C r y p t o - C L i b r a r y R e f e r e n c e M a n u a l

Page 272
Image 272
RSA Security manual KIDSAPublicX957BER