CASN1EncEncoding Class Reference

class CASN1EncEncoding : public CASN1EncBase

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.

Inherits from

Constructor & Destructor Documentation

CASN1EncEncoding()

IMPORT_CCASN1EncEncoding()[protected]

Protected constructor.

~CASN1EncEncoding()

IMPORT_C~CASN1EncEncoding()

Member Functions Documentation

CalculateContentsLengthDER()

voidCalculateContentsLengthDER()[private, virtual]

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

ConstructL(const TDesC8 &)

voidConstructL(const TDesC8 &aEncoding)[private]

Constructs the wrapper around the passed raw DER encoding. Calculates element sizes. Decodes it to get type and length.

Parameters

const TDesC8 & aEncodingRaw DER encoding.

ConstructL(const TDesC8 &, TTagType, TASN1Class)

voidConstructL(const TDesC8 &aEncoding,
TTagTypeaType,
TASN1ClassaClass
)[private]

Parameters

const TDesC8 & aEncoding
TTagType aType
TASN1Class aClass

IsConstructed()

TBool IsConstructed()const [private, virtual]

NewL(const TDesC8 &)

IMPORT_C CASN1EncEncoding *NewL(const TDesC8 &aEncoding)[static]

Creates a new object from raw DER encoding.

Parameters

const TDesC8 & aEncodingRaw DER encoding.

NewLC(const TDesC8 &)

IMPORT_C CASN1EncEncoding *NewLC(const TDesC8 &aEncoding)[static]

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

Parameters

const TDesC8 & aEncodingRaw DER encoding.

NewLC(const TDesC8 &, TTagType, TASN1Class)

IMPORT_C CASN1EncEncoding *NewLC(const TDesC8 &aEncoding,
TTagTypeaType,
TASN1ClassaClass
)[static]

Parameters

const TDesC8 & aEncoding
TTagType aType
TASN1Class aClass

WriteContentsDERL(TDes8 &)

voidWriteContentsDERL(TDes8 &aBuf)const [private, virtual]

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

Parameters

TDes8 & aBufBuffer to write to.

Member Data Documentation

TASN1Class iClass

TASN1Class iClass[private]

HBufC8 * iContents

HBufC8 *iContents[private]

TTagType iTag

TTagType iTag[private]