KI_DSAPublicX957BER
262 RSA BSAFE Crypto-C Library Reference Manual
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.