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_C TX509RSAKeyEncoder ( const CRSAPublicKey & aPublicKey,
TAlgorithmId aDigestAlg
)

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

Parameters

const CRSAPublicKey & aPublicKey RSA public key to use for encoding.
TAlgorithmId aDigestAlg Digest 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.