Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:

Inherited from CASN1EncBase:

Inherited from CBase:


Construction and destruction


NewLC(const TDesC8 &)

IMPORT_C static 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(const TDesC8 &)

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

Description

Creates a new object from raw DER encoding.

Parameters

const TDesC8 &aEncoding

Raw DER encoding.

Return value

CASN1EncEncoding *

New wrapper object.


NewLC(const TDesC8 &,TTagType,TASN1Class)

IMPORT_C static 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()const

private: virtual TBool IsConstructed() const;

Description

Return value

TBool


WriteContentsDERL(TDes8 &)const

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.