Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: asn1enc.h
Link against: asn1.lib

Class CASN1EncBitString

class CASN1EncBitString : public CASN1EncPrimitive;

Description

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

Derivation

Members

Defined in CASN1EncBitString:
NewL(), NewL(), NewL(), NewLC(), NewLC(), NewLC(), ~CASN1EncBitString()

Inherited from CASN1EncBase:
CalculateContentsLengthDER(), ConstructL(), LengthDER(), SetTag(), WriteContentsDERL(), WriteDERL(), WriteLengthDER(), iContentsLengthDER, iLengthLengthDER, iTagLengthDER

Inherited from CASN1EncPrimitive:
IsConstructed()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


NewLC()

static IMPORT_C CASN1EncBitString *NewLC(const TDesC8 &aBitStr);

Description

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.

Parameters

const TDesC8 &aBitStr

Octet-aligned bit string.

Return value

CASN1EncBitString *

A new DER bit string encoder object, which is left on the cleanup stack.


NewL()

static IMPORT_C CASN1EncBitString *NewL(const TDesC8 &aBitStr);

Description

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.

Parameters

const TDesC8 &aBitStr

Octet-aligned bit string.

Return value

CASN1EncBitString *

A new DER bit string encoder object.


NewLC()

static IMPORT_C CASN1EncBitString *NewLC(const TDesC8 &aBitStr, TUint aLengthBits);

Description

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.

Parameters

const TDesC8 &aBitStr

Bit string.

TUint aLengthBits

Length in bits of the passed bit string. The function will panic if is greater than the actual bit length of , or the difference is more that 7 bits.

Return value

CASN1EncBitString *

A new DER bit string encoder object which is left on the cleanup stack.


NewL()

static IMPORT_C CASN1EncBitString *NewL(const TDesC8 &aBitStr, TUint aLengthBits);

Description

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.

Parameters

const TDesC8 &aBitStr

Bit string.

TUint aLengthBits

Length in bits of the passed bit string. The function will panic if is greater than the actual bit length of , or the difference is more that 7 bits.

Return value

CASN1EncBitString *

A new DER bit string encoder object.


NewL()

static IMPORT_C CASN1EncBitString *NewL(const CASN1EncBase &aAsnObj);

Description

Wraps the passed encoding object into a bit string.

Parameters

const CASN1EncBase &aAsnObj

Encoding object to wrap.

Return value

CASN1EncBitString *

A new bit string containing the passed encoding object.


NewLC()

static IMPORT_C CASN1EncBitString *NewLC(const CASN1EncBase &aAsnObj);

Description

Wraps the passed encoding object into a bit string.

Parameters

const CASN1EncBase &aAsnObj

Encoding object to wrap.

Return value

CASN1EncBitString *

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


~CASN1EncBitString()

IMPORT_C ~CASN1EncBitString();

Description