TASN1EncDSAPublicKey Class Reference

#include <x509keys.h>

class TASN1EncDSAPublicKey

Detailed Description

Class for encoding DSA public keys to ASN.1 encoding.

Since
v8.0

Member Function Documentation

EncodeDERL ( const CDSAPublicKey & )

IMPORT_C CASN1EncSequence *EncodeDERL(const CDSAPublicKey &aKey)const

Encodes the supplied public key into a buffer in DER format.

Note that the encoding has the following format:
     SEQUENCE-OF
         SEQUENCE-OF
             INTEGER p
             INTEGER q
             INTEGER g
         BIT STRING (encoded INTEGER public value)

Parameters
aKeyKey to encode.
Return Value
Sequence containing public key information.

EncodeParamsLC ( const CDSAPublicKey & )

IMPORT_C CASN1EncSequence *EncodeParamsLC(const CDSAPublicKey &aKey)const

Encodes DSA parameters into an ASN.1 encoding structure suitable for inclusion into other objects, like a PKCS#10 certificate request.

Note that the encoding has the following form:
     SEQUENCE-OF
         INTEGER p
         INTEGER q
         INTEGER g

Parameters
aKeyDSA public key.
Return Value
ASN.1 encoding structure on the cleanup stack.

EncodePublicValueLC ( const CDSAPublicKey & )

IMPORT_C CASN1EncBitString *EncodePublicValueLC(const CDSAPublicKey &aKey)const

Encodes a public key as a bit string.

Parameters
aKeyDSA public key.
Return Value
ASN.1 bit string (public key). This is left on the cleanup stack.