TX509RSAKeyEncoder Class Reference

class TX509RSAKeyEncoder : public TX509KeyEncoder

Subclasses TC509KeyEncoder to provides key encoding capability for RSA public keys.

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

TX509RSAKeyEncoder(const CRSAPublicKey &, TAlgorithmId)

IMPORT_CTX509RSAKeyEncoder(const CRSAPublicKey &aPublicKey,
TAlgorithmIdaDigestAlg
)

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

Parameters

const CRSAPublicKey & aPublicKeyRSA 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 resulting encoding has the following form:
     SEQUENCE-OF
         SEQUENCE-OF
             OID of the encryption algorithm (KRSA)
             NULL
         BIT STRING encoded public key.

EncodeSignatureAlgorithmLC()

IMPORT_C CASN1EncSequence *EncodeSignatureAlgorithmLC()const [virtual]

Produces the AlgorithmIdentifier encoding.

This has the following form:
     SEQUENCE-OF
         OID signature-algorithm
         NULL

Member Data Documentation

const CRSAPublicKey & iPublicKey

const CRSAPublicKey &iPublicKey[private]

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