TASN1EncDSAPublicKey Class Reference

class TASN1EncDSAPublicKey

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

Since
v8.0

Member Functions 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

const CDSAPublicKey & aKeyKey to encode.

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

const CDSAPublicKey & aKeyDSA public key.

EncodePublicValueLC(const CDSAPublicKey &)

IMPORT_C CASN1EncBitString *EncodePublicValueLC(const CDSAPublicKey &aKey)const

Encodes a public key as a bit string.

Parameters

const CDSAPublicKey & aKeyDSA public key.