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.
Public Member Functions | |
---|---|
~CASN1EncEncoding() | |
IMPORT_C CASN1EncEncoding * | NewL(const TDesC8 &) |
IMPORT_C CASN1EncEncoding * | NewLC(const TDesC8 &) |
IMPORT_C CASN1EncEncoding * | NewLC(const TDesC8 &, TTagType, TASN1Class) |
Protected Member Functions | |
---|---|
CASN1EncEncoding() |
Private Member Functions | |
---|---|
void | CalculateContentsLengthDER() |
void | ConstructL(const TDesC8 &) |
void | ConstructL(const TDesC8 &, TTagType, TASN1Class) |
TBool | IsConstructed() |
void | WriteContentsDERL(TDes8 &) |
Private Attributes | |
---|---|
TASN1Class | iClass |
HBufC8 * | iContents |
TTagType | iTag |
Inherited Attributes | |
---|---|
CASN1EncBase::iContentsLengthDER | |
CASN1EncBase::iLengthLengthDER | |
CASN1EncBase::iTagLengthDER |
void | CalculateContentsLengthDER | ( | ) | [private, virtual] |
Calculates number of octets in DER content encoding. Sets value of the appropriate data member.
void | ConstructL | ( | const TDesC8 & | aEncoding | ) | [private] |
Constructs the wrapper around the passed raw DER encoding. Calculates element sizes. Decodes it to get type and length.
const TDesC8 & aEncoding | Raw DER encoding. |
void | ConstructL | ( | const TDesC8 & | aEncoding, |
TTagType | aType, | |||
TASN1Class | aClass | |||
) | [private] |
const TDesC8 & aEncoding | |
TTagType aType | |
TASN1Class aClass |
IMPORT_C CASN1EncEncoding * | NewL | ( | const TDesC8 & | aEncoding | ) | [static] |
Creates a new object from raw DER encoding. New wrapper object.
const TDesC8 & aEncoding | Raw DER encoding. |
IMPORT_C CASN1EncEncoding * | NewLC | ( | const TDesC8 & | aEncoding | ) | [static] |
Creates a new object from raw DER encoding and places it on the cleanup stack. New wrapper object placed on the cleanup stack.
const TDesC8 & aEncoding | Raw DER encoding. |
IMPORT_C CASN1EncEncoding * | NewLC | ( | const TDesC8 & | aEncoding, |
TTagType | aType, | |||
TASN1Class | aClass | |||
) | [static] |
const TDesC8 & aEncoding | |
TTagType aType | |
TASN1Class aClass |
void | WriteContentsDERL | ( | TDes8 & | aBuf | ) | const [private, virtual] |
Writes DER content encoding into supplied buffer, which is already verified to be big enough.
TDes8 & aBuf | Buffer to write to. |