CASN1EncBitString Class Reference

class CASN1EncBitString : public CASN1EncPrimitive

Class for encoding bit strings (keys, for example).

Inherits from

Constructor & Destructor Documentation

CASN1EncBitString()

CASN1EncBitString()[private]

~CASN1EncBitString()

IMPORT_C~CASN1EncBitString()

Member Functions Documentation

CalculateContentsLengthDER()

voidCalculateContentsLengthDER()[private, virtual]

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

ConstructL(const TDesC8 &)

voidConstructL(const TDesC8 &aBitStr)[private]

Parameters

const TDesC8 & aBitStr

ConstructL(const TDesC8 &, TUint)

voidConstructL(const TDesC8 &aBitStr,
TUintaLengthBits
)[private]

Parameters

const TDesC8 & aBitStr
TUint aLengthBits

ConstructL(const CASN1EncBase &)

voidConstructL(const CASN1EncBase &aAsnObj)[private]

Parameters

const CASN1EncBase & aAsnObj

NewL(const TDesC8 &)

IMPORT_C CASN1EncBitString *NewL(const TDesC8 &aBitStr)[static]

Constructs a new DER bit string encoder from a bit string that does not have unused bits at the end, i.e. is octet-aligned. The passed string must be in big-endian format. A new DER bit string encoder object.

Parameters

const TDesC8 & aBitStrOctet-aligned bit string.

NewL(const TDesC8 &, TUint)

IMPORT_C CASN1EncBitString *NewL(const TDesC8 &aBitStr,
TUintaLengthBits
)[static]

Constructs a new DER bit string encoder from a bit string that is not octet-aligned, which means it has unused bits in its last octet. The passed string must be in big-endian format. A new DER bit string encoder object.

Parameters

const TDesC8 & aBitStrBit string.
TUint aLengthBitsLength in bits of the passed bit string. The function will panic if aLengthBits is greater than the actual bit length of aBitString, or the difference is more that 7 bits.

NewL(const CASN1EncBase &)

IMPORT_C CASN1EncBitString *NewL(const CASN1EncBase &aAsnObj)[static]

Wraps the passed encoding object into a bit string. A new bit string containing the passed encoding object.

Parameters

const CASN1EncBase & aAsnObjEncoding object to wrap.

NewLC(const TDesC8 &)

IMPORT_C CASN1EncBitString *NewLC(const TDesC8 &aBitStr)[static]

Constructs a new DER bit string encoder from a bit string that does not have unused bits at the end, i.e. is octet-aligned. The passed string must be in big-endian format. A new DER bit string encoder object, which is left on the cleanup stack.

Parameters

const TDesC8 & aBitStrOctet-aligned bit string.

NewLC(const TDesC8 &, TUint)

IMPORT_C CASN1EncBitString *NewLC(const TDesC8 &aBitStr,
TUintaLengthBits
)[static]

Constructs a new DER bit string encoder from a bit string that is not octet-aligned, which means it has unused bits in its last octet. The passed string must be in big-endian format. A new DER bit string encoder object which is left on the cleanup stack.

Parameters

const TDesC8 & aBitStrBit string.
TUint aLengthBitsLength in bits of the passed bit string. The function will panic if aLengthBits is greater than the actual bit length of aBitString, or the difference is more that 7 bits.

NewLC(const CASN1EncBase &)

IMPORT_C CASN1EncBitString *NewLC(const CASN1EncBase &aAsnObj)[static]

Wraps the passed encoding object into a bit string. A new bit string containing the passed encoding object on the cleanup stack.

Parameters

const CASN1EncBase & aAsnObjEncoding object to wrap.

WriteContentsDERL(TDes8 &)

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

Writes DER content encoding into supplied buffer, which is already verified to be big enough. Must be implemented by derived classes.

Parameters

TDes8 & aBufBuffer to write to.

Member Data Documentation

HBufC8 * iContents

HBufC8 *iContents[private]

TUint8 iPadding

TUint8 iPadding[private]