TASN1DecRSAKeyPair Class Reference

#include <x509keys.h>

class TASN1DecRSAKeyPair
Public Member Functions
IMPORT_C voidDecodeDERL(const TDesC8 &, TInt &, CRSAPublicKey *&, CRSAPrivateKey *&, TRSAPrivateKeyType)

Detailed Description

Class for decoding RSA key pairs from ASN.1 DER encoding.

Since
v8.0

Member Function Documentation

DecodeDERL ( const TDesC8 &, TInt &, CRSAPublicKey *&, CRSAPrivateKey *&, TRSAPrivateKeyType )

IMPORT_C voidDecodeDERL(const TDesC8 &aDER,
TInt &aPos,
CRSAPublicKey *&aPublicKey,
CRSAPrivateKey *&aPrivateKey,
TRSAPrivateKeyTypeaKeyType = EStandardCRT
)

Decodes an RSA key pair from buffer containing ASN.1 DER-encoded private key. The encoding of a private key contains public key components as well.

Parameters
aDERDER-encoded private key.
aPosPosition in the buffer to start decoding (updated on exit).
aPublicKeyOn return, the RSA public key object
aPrivateKeyOn return, the RSA private key object
aKeyTypeKey type, default is EStandardCRT