Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: x509keys.h
Link against: x509.lib

This item is not part of the S60 3rd Edition SDK for Symbian OS, Feature Pack 2.

Class TASN1DecRSAKeyPair

class TASN1DecRSAKeyPair;

Description

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

Members

Defined in TASN1DecRSAKeyPair:
DecodeDERL()


Member functions


DecodeDERL()

IMPORT_C void DecodeDERL(const TDesC8 &aDER, TInt &aPos, CRSAPublicKey *&aPublicKey, CRSAPrivateKey *&aPrivateKey, TRSAPrivateKeyType aKeyType=EStandardCRT);

Description

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

const TDesC8 &aDER

DER-encoded private key.

TInt &aPos

Position in the buffer to start decoding (updated on exit).

CRSAPublicKey *&aPublicKey

On return, the RSA public key object

CRSAPrivateKey *&aPrivateKey

On return, the RSA private key object

TRSAPrivateKeyType aKeyType

Key type, default is EStandardCRT