| class CASN1EncBitString : public CASN1EncPrimitive |
Class for encoding bit strings (keys, for example).
| 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 &) |
| Private Member Functions | |
|---|---|
| CASN1EncBitString() | |
| void | CalculateContentsLengthDER() |
| void | ConstructL(const TDesC8 &) |
| void | ConstructL(const TDesC8 &, TUint) |
| void | ConstructL(const CASN1EncBase &) |
| void | WriteContentsDERL(TDes8 &) |
| Private Attributes | |
|---|---|
| HBufC8 * | iContents |
| TUint8 | iPadding |
| Inherited Attributes | |
|---|---|
| CASN1EncBase::iContentsLengthDER | |
| CASN1EncBase::iLengthLengthDER | |
| CASN1EncBase::iTagLengthDER | |
| void | CalculateContentsLengthDER | ( | ) | [private, virtual] |
Calculates number of octets in DER content encoding. Must set value of the appropriate data member.
| void | ConstructL | ( | const TDesC8 & | aBitStr | ) | [private] |
| const TDesC8 & aBitStr |
| void | ConstructL | ( | const CASN1EncBase & | aAsnObj | ) | [private] |
| const CASN1EncBase & aAsnObj |
| 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.
| const TDesC8 & 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. A new DER bit string encoder object.
| 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.
| const CASN1EncBase & 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. A new DER bit string encoder object, which is left on the cleanup stack.
| const TDesC8 & 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. A new DER bit string encoder object which is left on the cleanup stack.
| 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.
| const CASN1EncBase & aAsnObj | Encoding object to wrap. |
| void | WriteContentsDERL | ( | 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.
| TDes8 & aBuf | Buffer to write to. |