CCMSKeyAgreeRecipientInfo Class Reference

class CCMSKeyAgreeRecipientInfo : public CCMSRecipientInfo

KeyAgreeRecipientInfo type module

ASN.1 definition: KeyAgreeRecipientInfo ::= SEQUENCE { version CMSVersion, -- always set to 3 originator [0] EXPLICIT OriginatorIdentifierOrKey, ukm [1] EXPLICIT UserKeyingMaterial OPTIONAL, keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier, recipientEncryptedKeys RecipientEncryptedKeys }

RecipientEncryptedKeys ::= SEQUENCE OF RecipientEncryptedKey

UserKeyingMaterial ::= OCTET STRING

cms.lib
Since
3.0

Inherits from

Public Member Functions
~CCMSKeyAgreeRecipientInfo()
voidDecodeL(const TDesC8 &)
CASN1EncBase *EncoderLC()
IMPORT_C CCMSKeyAgreeRecipientInfo *NewL()
IMPORT_C CCMSKeyAgreeRecipientInfo *NewL(const CCMSOriginatorIdentifierOrKey &, const CCMSX509AlgorithmIdentifier &, const CArrayPtr< CCMSRecipientEncryptedKey > &)
IMPORT_C CCMSKeyAgreeRecipientInfo *NewL(const CCMSOriginatorIdentifierOrKey &, const TDesC8 &, const CCMSX509AlgorithmIdentifier &, const CArrayPtr< CCMSRecipientEncryptedKey > &)
IMPORT_C CCMSKeyAgreeRecipientInfo *NewLC()
IMPORT_C const CCMSOriginatorIdentifierOrKey &Originator()
IMPORT_C const CArrayPtr< CCMSRecipientEncryptedKey > &RecipientEncryptedKeys()
IMPORT_C voidSetOriginatorL(const CCMSOriginatorIdentifierOrKey &)
IMPORT_C voidSetRecipientEncryptedKeysL(const CArrayPtr< CCMSRecipientEncryptedKey > &)
IMPORT_C voidSetUserKeyingMaterialL(const TDesC8 &)
CASN1EncBase *TaggedEncoderLC()
IMPORT_C const TDesC8 *UserKeyingMaterial()
Protected Member Functions
CCMSKeyAgreeRecipientInfo()
IMPORT_C voidConstructL()
IMPORT_C voidConstructL(const CCMSOriginatorIdentifierOrKey &, const CCMSX509AlgorithmIdentifier &, const CArrayPtr< CCMSRecipientEncryptedKey > &)
IMPORT_C voidConstructL(const CCMSOriginatorIdentifierOrKey &, const TDesC8 &, const CCMSX509AlgorithmIdentifier &, const CArrayPtr< CCMSRecipientEncryptedKey > &)
Inherited Functions
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()
CCMSRecipientInfo::AddKeyEncryptionAlgorithmL(CASN1EncSequence *)const
CCMSRecipientInfo::AddVersionL(CASN1EncSequence *)const
CCMSRecipientInfo::BaseConstructL(const CCMSX509AlgorithmIdentifier &)
CCMSRecipientInfo::CCMSRecipientInfo(TInt)
CCMSRecipientInfo::KeyEncryptionAlgorithm()const
CCMSRecipientInfo::SetKeyEncryptionAlgorithmL(const CCMSX509AlgorithmIdentifier &)
CCMSRecipientInfo::Version()const
CCMSRecipientInfo::~CCMSRecipientInfo()
CCMSSequence::CCMSSequence()
CCMSSequence::CreateDerEncodingL(CASN1EncBase *)
CCMSSequence::DecodeSequenceLC(const TDesC8 &)
CCMSSequence::DecodeSequenceLC(const TDesC8 &,TInt,TInt)
CCMSSequence::EncodeL(HBufC8 *&)const
Private Attributes
CCMSX509AlgorithmIdentifier *iKeyEncryptionAlgorithm
CCMSOriginatorIdentifierOrKey *iOriginator
CArrayPtr< CCMSRecipientEncryptedKey > *iRecipientEncryptedKeys
MCMSKeyAgreeRecipientInfo *iReserved
TDesC8 *iUserKeyingMaterial
Inherited Attributes
CCMSRecipientInfo::iVersion

Constructor & Destructor Documentation

CCMSKeyAgreeRecipientInfo()

IMPORT_CCCMSKeyAgreeRecipientInfo()[protected]

C++ constructor.

~CCMSKeyAgreeRecipientInfo()

~CCMSKeyAgreeRecipientInfo()[virtual]

Destructor.

Member Functions Documentation

ConstructL()

IMPORT_C voidConstructL()[protected]

Protected constructor to allow derivation

ConstructL(const CCMSOriginatorIdentifierOrKey &, const CCMSX509AlgorithmIdentifier &, const CArrayPtr< CCMSRecipientEncryptedKey > &)

IMPORT_C voidConstructL(const CCMSOriginatorIdentifierOrKey &aOriginator,
const CCMSX509AlgorithmIdentifier &aKeyEncryptionAlgorithm,
const CArrayPtr< CCMSRecipientEncryptedKey > &aRecipientEncryptedKeys
)[protected]

Protected construction to allow derivation

Parameters

const CCMSOriginatorIdentifierOrKey & aOriginator
const CCMSX509AlgorithmIdentifier & aKeyEncryptionAlgorithm
const CArrayPtr< CCMSRecipientEncryptedKey > & aRecipientEncryptedKeys

ConstructL(const CCMSOriginatorIdentifierOrKey &, const TDesC8 &, const CCMSX509AlgorithmIdentifier &, const CArrayPtr< CCMSRecipientEncryptedKey > &)

IMPORT_C voidConstructL(const CCMSOriginatorIdentifierOrKey &aOriginator,
const TDesC8 &aUkm,
const CCMSX509AlgorithmIdentifier &aKeyEncryptionAlgorithm,
const CArrayPtr< CCMSRecipientEncryptedKey > &aRecipientEncryptedKeys
)[protected]

Protected construction to allow derivation

Parameters

const CCMSOriginatorIdentifierOrKey & aOriginator
const TDesC8 & aUkm
const CCMSX509AlgorithmIdentifier & aKeyEncryptionAlgorithm
const CArrayPtr< CCMSRecipientEncryptedKey > & aRecipientEncryptedKeys

DecodeL(const TDesC8 &)

voidDecodeL(const TDesC8 &aRawData)
From MCMSModule
Since
3.0

Parameters

const TDesC8 & aRawDataraw-data to be parsed in this instance

EncoderLC()

CASN1EncBase *EncoderLC()const
From MCMSModule
Since
3.0

NewL()

IMPORT_C CCMSKeyAgreeRecipientInfo *NewL()[static]

Two-phased constructor.

NewL(const CCMSOriginatorIdentifierOrKey &, const CCMSX509AlgorithmIdentifier &, const CArrayPtr< CCMSRecipientEncryptedKey > &)

IMPORT_C CCMSKeyAgreeRecipientInfo *NewL(const CCMSOriginatorIdentifierOrKey &aOriginator,
const CCMSX509AlgorithmIdentifier &aKeyEncryptionAlgorithm,
const CArrayPtr< CCMSRecipientEncryptedKey > &aRecipientEncryptedKeys
)[static]

Two-phased constructor. Copies of the parameters are made.

Parameters

const CCMSOriginatorIdentifierOrKey & aOriginatorOriginatorIdentifierOrKey value
const CCMSX509AlgorithmIdentifier & aKeyEncryptionAlgorithmKeyEncryptionAlgorithmIdentifier value
const CArrayPtr< CCMSRecipientEncryptedKey > & aRecipientEncryptedKeysRecipientEncryptedKeys value

NewL(const CCMSOriginatorIdentifierOrKey &, const TDesC8 &, const CCMSX509AlgorithmIdentifier &, const CArrayPtr< CCMSRecipientEncryptedKey > &)

IMPORT_C CCMSKeyAgreeRecipientInfo *NewL(const CCMSOriginatorIdentifierOrKey &aOriginator,
const TDesC8 &aUkm,
const CCMSX509AlgorithmIdentifier &aKeyEncryptionAlgorithm,
const CArrayPtr< CCMSRecipientEncryptedKey > &aRecipientEncryptedKeys
)[static]

Two-phased constructor. Copies of the parameters are made.

Parameters

const CCMSOriginatorIdentifierOrKey & aOriginatorOriginatorIdentifierOrKey value
const TDesC8 & aUkmUserKeyingMaterial value
const CCMSX509AlgorithmIdentifier & aKeyEncryptionAlgorithmKeyEncryptionAlgorithmIdentifier value
const CArrayPtr< CCMSRecipientEncryptedKey > & aRecipientEncryptedKeysRecipientEncryptedKeys value

NewLC()

IMPORT_C CCMSKeyAgreeRecipientInfo *NewLC()[static]

Two-phased constructor. Leaves the object in cleanup stack.

Originator()

IMPORT_C const CCMSOriginatorIdentifierOrKey &Originator()const
Getter for Originator
Since
3.0

RecipientEncryptedKeys()

IMPORT_C const CArrayPtr< CCMSRecipientEncryptedKey > &RecipientEncryptedKeys()const
Getter for RecipientEncryptedKeys
Since
3.0

SetOriginatorL(const CCMSOriginatorIdentifierOrKey &)

IMPORT_C voidSetOriginatorL(const CCMSOriginatorIdentifierOrKey &aOriginator)
Setter for Originator. Creates a copy of the parameters.
Since
3.0

Parameters

const CCMSOriginatorIdentifierOrKey & aOriginatorOriginatorIdentifierOrKey

SetRecipientEncryptedKeysL(const CArrayPtr< CCMSRecipientEncryptedKey > &)

IMPORT_C voidSetRecipientEncryptedKeysL(const CArrayPtr< CCMSRecipientEncryptedKey > &aRecipientEncryptedKeys)
Setter for RecipientEncryptedKeys. Creates a copy of the parameters.
Since
3.0

Parameters

const CArrayPtr< CCMSRecipientEncryptedKey > & aRecipientEncryptedKeysArray of RecipientEncryptedKeys

SetUserKeyingMaterialL(const TDesC8 &)

IMPORT_C voidSetUserKeyingMaterialL(const TDesC8 &aUkm)
Setter for UserKeyingMaterial. Creates a copy of the parameters.
Since
3.0

Parameters

const TDesC8 & aUkmUserKeyingMaterial

TaggedEncoderLC()

CASN1EncBase *TaggedEncoderLC()const [virtual]
From CCMSRecipientInfo
Since
3.0

UserKeyingMaterial()

IMPORT_C const TDesC8 *UserKeyingMaterial()const
Getter for UserKeyingMaterial. Ownership is not transferred.
Since
2,8

Member Data Documentation

CCMSX509AlgorithmIdentifier * iKeyEncryptionAlgorithm

CCMSX509AlgorithmIdentifier *iKeyEncryptionAlgorithm[private]

CCMSOriginatorIdentifierOrKey * iOriginator

CCMSOriginatorIdentifierOrKey *iOriginator[private]

CArrayPtr< CCMSRecipientEncryptedKey > * iRecipientEncryptedKeys

CArrayPtr< CCMSRecipientEncryptedKey > *iRecipientEncryptedKeys[private]

MCMSKeyAgreeRecipientInfo * iReserved

MCMSKeyAgreeRecipientInfo *iReserved[private]

TDesC8 * iUserKeyingMaterial

TDesC8 *iUserKeyingMaterial[private]