KI_DSAPublicBER

KI_DSAPublicBER

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 with the X.509 standard for SubjectPublicKeyInfo. 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 or KI_DSAPublicBER. The OID for DSA keys, excluding the tag and length bytes, in decimal, is “43, 14, 3, 2, 12”. Also see KI_DSAPublic and KI_DSAPublicX957BER.

Type of information this allows you to use:

the encoding of a DSA public key that is encoded as an X.509 SubjectPublicKeyInfo type as defined in X9.30 Part III. 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.

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.

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

261

Page 271
Image 271
RSA Security 5 manual KIDSAPublicBER