Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: asn1enc.h
Link against: asn1.lib

Class CASN1EncEncoding

class CASN1EncEncoding : public CASN1EncBase;

Description

Class for encapsulation of already encoded data.

Wraps it so that the data could be used in the ASN.1 hierarchy. It reverse-engineers and stores the encoded data, providing whatever information is needed to override pure virtual methods of the base class and write out the DER encoding in its initial form.

Derivation

Members

Defined in CASN1EncEncoding:
CASN1EncEncoding(), CalculateContentsLengthDER(), IsConstructed(), NewL(), NewLC(), NewLC(), WriteContentsDERL(), ~CASN1EncEncoding()

Inherited from CASN1EncBase:
ConstructL(), LengthDER(), SetTag(), WriteDERL(), WriteLengthDER(), iContentsLengthDER, iLengthLengthDER, iTagLengthDER

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


NewLC()

static IMPORT_C CASN1EncEncoding *NewLC(const TDesC8 &aEncoding);

Description

Creates a new object from raw DER encoding and places it on the cleanup stack.

Parameters

const TDesC8 &aEncoding

Raw DER encoding.

Return value

CASN1EncEncoding *

New wrapper object placed on the cleanup stack.


NewL()

static IMPORT_C CASN1EncEncoding *NewL(const TDesC8 &aEncoding);

Description

Creates a new object from reaw DER encoding.

Parameters

const TDesC8 &aEncoding

Raw DER encoding.

Return value

CASN1EncEncoding *

New wrapper object.


NewLC()

static IMPORT_C CASN1EncEncoding *NewLC(const TDesC8 &aEncoding, TTagType aType, TASN1Class aClass);

Description

Parameters

const TDesC8 &aEncoding

TTagType aType

TASN1Class aClass

Return value

CASN1EncEncoding *


~CASN1EncEncoding()

IMPORT_C ~CASN1EncEncoding();

Description


CASN1EncEncoding()

protected: IMPORT_C CASN1EncEncoding();

Description

Protected constructor.

[Top]


Member functions


IsConstructed()

private: virtual TBool IsConstructed() const;

Description

Return value

TBool


WriteContentsDERL()

private: virtual void WriteContentsDERL(TDes8 &aBuf) const;

Description

Writes DER content encoding into supplied buffer, which is already verified to be big enough.

Parameters

TDes8 &aBuf

Buffer to write to.


CalculateContentsLengthDER()

private: virtual void CalculateContentsLengthDER();

Description

Calculates number of octets in DER content encoding. Sets value of the appropriate data member.