CCMSX509Signed Class Reference

class CCMSX509Signed : public CCMSSequence

Base class for X.509 SIGNED -type modules

ASN.1 notation:

SIGNATURE{ToBeSigned} ::= SEQUENCE { algorithmIdentifier AlgorithmIdentifier, encrypted ENCRYPTED-HASH{ToBeSigned} }

SIGNED{ToBeSigned} ::= SEQUENCE { toBeSigned ToBeSigned, COMPONENTS OF SIGNATURE{ToBeSigned} }

cms.lib
Since
2.8

Inherits from

Constructor & Destructor Documentation

CCMSX509Signed()

CCMSX509Signed ( ) [protected]

C++ default constructor.

~CCMSX509Signed()

~CCMSX509Signed ( ) [virtual]

Destructor.

Member Functions Documentation

AlgorithmIdentifier()

IMPORT_C const CCMSX509AlgorithmIdentifier & AlgorithmIdentifier ( ) const
Getter for algorithmIdentifier
Since
2.8

BaseConstructL(const CCMSX509AlgorithmIdentifier &, const TDesC8 &)

void BaseConstructL ( const CCMSX509AlgorithmIdentifier & aAlgorithmIdentifier,
const TDesC8 & aEncrypted
) [protected]

Constructs the member variables. Makes a copy of the parameters

Parameters

const CCMSX509AlgorithmIdentifier & aAlgorithmIdentifier
const TDesC8 & aEncrypted

DecodeSignatureArrayL(CArrayPtr< TASN1DecGeneric > &, CCMSX509AlgorithmIdentifier *&, HBufC8 *&)

TASN1DecGeneric DecodeSignatureArrayL ( CArrayPtr < TASN1DecGeneric > & aItemArray,
CCMSX509AlgorithmIdentifier *& aAlgorithmIdentifier,
HBufC8 *& aEncrypted
) const [protected]

Decodes algorithmIdentifier and encrypted parts from an array of items. The first item is returned, and the second and third items are used in decoding process.

Parameters

CArrayPtr < TASN1DecGeneric > & aItemArray array of items
CCMSX509AlgorithmIdentifier *& aAlgorithmIdentifier decoded algorithmIdentifier is stored here
HBufC8 *& aEncrypted decoded encrypted is stored here

DecodeSignatureL(const TDesC8 &, CCMSX509AlgorithmIdentifier *&, HBufC8 *&)

TASN1DecGeneric DecodeSignatureL ( const TDesC8 & aRawData,
CCMSX509AlgorithmIdentifier *& aAlgorithmIdentifier,
HBufC8 *& aEncrypted
) const [protected]

Decodes algorithmIdentifier and encrypted parts from the raw data.

Parameters

const TDesC8 & aRawData data to be decoded
CCMSX509AlgorithmIdentifier *& aAlgorithmIdentifier decoded algorithmIdentifier is stored here
HBufC8 *& aEncrypted decoded encrypted is stored here

Encrypted()

IMPORT_C const TDesC8 & Encrypted ( ) const
Getter for encrypted
Since
2.8

SetAlgorithmIdentifierL(const CCMSX509AlgorithmIdentifier &)

IMPORT_C void SetAlgorithmIdentifierL ( const CCMSX509AlgorithmIdentifier & aAlgorithmIdentifier )
Setter for algorithmIdentifier. Makes a copy.
Since
2.8

Parameters

const CCMSX509AlgorithmIdentifier & aAlgorithmIdentifier Algorithm identifier

SetEncryptedL(const TDesC8 &)

IMPORT_C void SetEncryptedL ( const TDesC8 & aEncrypted )
Setter for encrypted. Makes a copy.
Since
2.8

Parameters

const TDesC8 & aEncrypted bit string

SignAndPopLC(CASN1EncBase *)

CASN1EncSequence * SignAndPopLC ( CASN1EncBase * aToBeSigned ) const [protected]

Creates a signed encoder.

Parameters

CASN1EncBase * aToBeSigned ToBeSigned (see the ASN.1 notation). The object is popped from the cleanup stack.

Member Data Documentation

CCMSX509AlgorithmIdentifier * iAlgorithmIdentifier

CCMSX509AlgorithmIdentifier * iAlgorithmIdentifier [protected]

HBufC8 * iEncrypted

HBufC8 * iEncrypted [protected]