|
||
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.
CBase
-
Base class for all classes to be instantiated on the heap.
CASN1EncBase
- Base class for all ASN.1 types that we can encode.
CASN1EncEncoding
- Class for encapsulation of already encoded data.
Defined in CASN1EncEncoding
:
CASN1EncEncoding()
Protected constructor.CalculateContentsLengthDER()
Calculates number of octets in DER content encoding. Sets value of the appropria...IsConstructed()const
NewL(const TDesC8 &)
Creates a new object from raw DER encoding. NewLC(const TDesC8 &)
Creates a new object from raw DER encoding and places it on the cleanup stack. NewLC(const TDesC8 &,TTagType,TASN1Class)
WriteContentsDERL(TDes8 &)const
Writes DER content encoding into supplied buffer, which is already verified to b...~CASN1EncEncoding()
Inherited from CASN1EncBase
:
CASN1EncBase(const TTagType,const TASN1Class)
Protected constructor ConstructL()
Must call this version from derived classes in their ConstructL, but only once t...LengthDER()const
Gives total number of octets in the DER encoding of this object. SetTag(const TTagType,const TASN1Class)
Sets tag type/class of the encoding object WriteDERL(TDes8 &,TUint &)const
Writes entire DER encoding of this object into the given buffer. iContentsLengthDER
Length of DER encoded content. iLengthLengthDER
Length of DER encoded length. iTagLengthDER
Length of DER encoded tag. Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...IMPORT_C static CASN1EncEncoding* NewLC(const TDesC8 &aEncoding);
Creates a new object from raw DER encoding and places it on the cleanup stack.
|
|
IMPORT_C static CASN1EncEncoding* NewL(const TDesC8 &aEncoding);
Creates a new object from raw DER encoding.
|
|
IMPORT_C static CASN1EncEncoding* NewLC(const TDesC8 &aEncoding, TTagType aType, TASN1Class aClass);
|
|
private: virtual void WriteContentsDERL(TDes8 &aBuf) const;
Writes DER content encoding into supplied buffer, which is already verified to be big enough.
|
private: virtual void CalculateContentsLengthDER();
Calculates number of octets in DER content encoding. Sets value of the appropriate data member.