CASN1EncBitString Class Reference
class CASN1EncBitString : public CASN1EncPrimitive
|
Class for encoding bit strings (keys, for example).
Inherited Functions
|
|
CASN1EncBase::CASN1EncBase(const TTagType,const TASN1Class)
|
|
CASN1EncBase::CalculateLengthLengthDER()
|
|
CASN1EncBase::ConstructL()
|
|
CASN1EncBase::ContentsLengthChanged()
|
|
CASN1EncBase::LengthDER()const
|
|
CASN1EncBase::SetParent(CASN1EncBase *)
|
|
CASN1EncBase::SetTag(const TTagType,const TASN1Class)
|
|
CASN1EncBase::WriteDERL(TDes8 &,TUint &)const
|
|
CASN1EncBase::~CASN1EncBase()
|
|
CASN1EncPrimitive::CASN1EncPrimitive(const TTagType)
|
|
CBase::CBase()
|
|
CBase::Delete(CBase *)
|
|
CBase::Extension_(TUint,TAny *&,TAny *)
|
|
CBase::operator new(TUint)
|
|
CBase::operator new(TUint,TAny *)
|
|
CBase::operator new(TUint,TLeave)
|
|
CBase::operator new(TUint,TLeave,TUint)
|
|
CBase::operator new(TUint,TUint)
|
|
CBase::~CBase()
|
Constructor & Destructor Documentation
CASN1EncBitString()
CASN1EncBitString
|
(
|
)
|
[private]
|
~CASN1EncBitString()
IMPORT_C
|
~CASN1EncBitString
|
(
|
)
|
|
Member Functions Documentation
CalculateContentsLengthDER()
void
|
CalculateContentsLengthDER
|
(
|
)
|
[private, virtual]
|
Calculates length of DER-encoded bit string contents. For non empty bit strings this differs from octet string in the extra leading byte containing the number of unused bits in the last octet.
ConstructL(const TDesC8 &)
void
|
ConstructL
|
(
|
const
TDesC8
&
|
aBitStr
|
)
|
[private]
|
ConstructL(const TDesC8 &, TUint)
void
|
ConstructL
|
(
|
const
TDesC8
&
|
aBitStr,
|
|
TUint
|
aLengthBits
|
|
)
|
[private]
|
ConstructL(const CASN1EncBase &)
Constructs bit string from ASN.1 encoding object.
Note:
First produces raw DER encoding from the object, then creates a bit string using other construct function.
Parameters
const
CASN1EncBase
& aAsnObj
|
ASN.1 encoding object to wrap in bit string.
|
NewL(const TDesC8 &)
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.
|
NewL(const TDesC8 &, TUint)
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 aLengthBits is greater than the actual bit length of aBitString, or the difference is more that 7 bits.
|
NewL(const CASN1EncBase &)
Wraps the passed encoding object into a bit string.
NewLC(const TDesC8 &)
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.
|
NewLC(const TDesC8 &, TUint)
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 aLengthBits is greater than the actual bit length of aBitString, or the difference is more that 7 bits.
|
NewLC(const CASN1EncBase &)
Wraps the passed encoding object into a bit string.
WriteContentsDERL(TDes8 &)
void
|
WriteContentsDERL
|
(
|
TDes8
&
|
aBuf
|
)
|
const [private, virtual]
|
Writes DER-encoded bit string contents to aBuf. Prepends the actual bit string octets with extra octet containing number of unused bits in the last octet. Before writing, converts contents of the bit string to big-endian form.
Parameters
TDes8
& aBuf
|
Buffer to write to; must be long enough; see CalculateContentsLengthDER method.
|
Member Data Documentation
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.