TX509DSAKeyEncoder Class Reference

class TX509DSAKeyEncoder : public TX509KeyEncoder

Provides key encoding and signing capability using a DSA public key.

This class is part of the pkcs10 API, and will be changed or removed in a future release. You should not use it.

Inherits from

Constructor & Destructor Documentation

TX509DSAKeyEncoder(const CDSAPublicKey &, TAlgorithmId)

IMPORT_CTX509DSAKeyEncoder(const CDSAPublicKey &aKeyPublic,
TAlgorithmIdaDigestAlg
)

Constructs a DSA key pair encoder, saving reference to the passed public key in the member variable.

Parameters

const CDSAPublicKey & aKeyPublicDSA public key to use for encoding.
TAlgorithmId aDigestAlgDigest algorithm to use.

Member Functions Documentation

EncodeKeyLC()

IMPORT_C CASN1EncBase *EncodeKeyLC()const [virtual]

Produces the SubjectPublicKeyInfo encoding.

The ASN.1 encoding of a DSA key has the following form:
 SEQUENCE-OF
     SEQUENCE-OF
         OID dsa (1.2.840.10040.4.1)
         SEQUENCE-OF
             INTEGER p
             INTEGER q
             INTEGER g
     BIT STRING
         INTEGER public value (y)

EncodeSignatureAlgorithmLC()

IMPORT_C CASN1EncSequence *EncodeSignatureAlgorithmLC()const [virtual]

Produces the AlgorithmIdentifier encoding.

This has the following form:
 SEQUENCE-OF
     OID dsa-signature-oid
     SEQUENCE-OF dsa-params
         INTEGER p
         INTEGER q
         INTEGER g

Member Data Documentation

const CDSAPublicKey & iPublicKey

const CDSAPublicKey &iPublicKey[private]

Saved reference to the DSA public key to be used for encoding.