#include <asn1enc.h>
class CASN1EncBitString : public CASN1EncPrimitive |
Public Member Functions | |
---|---|
~CASN1EncBitString() | |
IMPORT_C CASN1EncBitString * | NewL(const TDesC8 &) |
IMPORT_C CASN1EncBitString * | NewL(const TDesC8 &, TUint) |
IMPORT_C CASN1EncBitString * | NewL(const CASN1EncBase &) |
IMPORT_C CASN1EncBitString * | NewLC(const TDesC8 &) |
IMPORT_C CASN1EncBitString * | NewLC(const TDesC8 &, TUint) |
IMPORT_C CASN1EncBitString * | NewLC(const CASN1EncBase &) |
Inherited Attributes | |
---|---|
CASN1EncBase::iContentsLengthDER | |
CASN1EncBase::iLengthLengthDER | |
CASN1EncBase::iTagLengthDER |
Class for encoding bit strings (keys, for example).
IMPORT_C | ~CASN1EncBitString | ( | ) |
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.
Parameters | |
---|---|
aBitStr | Octet-aligned bit string. |
IMPORT_C CASN1EncBitString * | NewL | ( | const TDesC8 & | aBitStr, |
TUint | aLengthBits | |||
) | [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.
Parameters | |
---|---|
aBitStr | Bit string. |
aLengthBits | Length 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. |
IMPORT_C CASN1EncBitString * | NewL | ( | const CASN1EncBase & | aAsnObj | ) | [static] |
Wraps the passed encoding object into a bit string.
Parameters | |
---|---|
aAsnObj | Encoding object to wrap. |
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.
Parameters | |
---|---|
aBitStr | Octet-aligned bit string. |
IMPORT_C CASN1EncBitString * | NewLC | ( | const TDesC8 & | aBitStr, |
TUint | aLengthBits | |||
) | [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.
Parameters | |
---|---|
aBitStr | Bit string. |
aLengthBits | Length 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. |
IMPORT_C CASN1EncBitString * | NewLC | ( | const CASN1EncBase & | aAsnObj | ) | [static] |
Wraps the passed encoding object into a bit string.
Parameters | |
---|---|
aAsnObj | Encoding object to wrap. |