Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <x509keys.h>
Link against: x509.lib
This item is not part of the S60 5th Edition SDK

Class CX509RSAPublicKey

class CX509RSAPublicKey : public CRSAPublicKey;

Description

Adds the capability to decode DER-encoded RSA public keys.

Adds a commitment to a specific encoding scheme allowing X.509 RSA public key superclasses to remain encoding-independent.

Derivation

Members

Defined in CX509RSAPublicKey:


Construction and destruction


NewL(const TDesC8 &)

IMPORT_C static CX509RSAPublicKey* NewL(const TDesC8 &aBinaryData);

Description

Creates a new RSA Public key object from the specified buffer containing the encoded binary representation.

Initialises the object from its encoded binary form into an internal representation.

Parameters

const TDesC8 &aBinaryData

The encoded binary representation.

Return value

CX509RSAPublicKey *

A pointer to the new CX509RSAPublicKey object.


NewLC(const TDesC8 &)

IMPORT_C static CX509RSAPublicKey* NewLC(const TDesC8 &aBinaryData);

Description

Creates a new RSA Public Key object from the specified buffer containing the encoded binary representation, and puts a pointer to it onto the cleanup stack.

Parameters

const TDesC8 &aBinaryData

The encoded binary representation.

Return value

CX509RSAPublicKey *

A pointer to the new CX509RSAPublicKey object.


NewL(const TDesC8 &,TInt &)

IMPORT_C static CX509RSAPublicKey* NewL(const TDesC8 &aBinaryData, TInt &aPos);

Description

Creates a new RSA Public key object from the specified buffer containing the encoded binary representation, starting at the specified offset.

Parameters

const TDesC8 &aBinaryData

The encoded binary representation.

TInt &aPos

The offset position from which to start decoding.

Return value

CX509RSAPublicKey *

A pointer to the new CX509RSAPublicKey object.


NewLC(const TDesC8 &,TInt &)

IMPORT_C static CX509RSAPublicKey* NewLC(const TDesC8 &aBinaryData, TInt &aPos);

Description

Creates a new RSA Public key object from the specified buffer containing the encoded binary representation, starting at the specified offset, and puts a pointer to it onto the cleanup stack.

Parameters

const TDesC8 &aBinaryData

The encoded binary representation.

TInt &aPos

The offset position from which to start decoding.

Return value

CX509RSAPublicKey *

A pointer to the new CX509RSAPublicKey object.