CCMSRecipientEncryptedKey Class Reference

class CCMSRecipientEncryptedKey : public CCMSSequence

RecipientEncryptedKey type module

ASN.1 definition: RecipientEncryptedKey ::= SEQUENCE { rid KeyAgreeRecipientIdentifier, encryptedKey EncryptedKey }

KeyAgreeRecipientIdentifier ::= CHOICE { issuerAndSerialNumber IssuerAndSerialNumber, rKeyId [0] IMPLICIT RecipientKeyIdentifier }

EncryptedKey ::= OCTET STRING

cms.lib
Since
2.8

Inherits from

Constructor & Destructor Documentation

CCMSRecipientEncryptedKey()

IMPORT_CCCMSRecipientEncryptedKey()[protected]

C++ default constructor.

~CCMSRecipientEncryptedKey()

~CCMSRecipientEncryptedKey()[virtual]

Destructor.

Member Functions Documentation

ConstructL(const CCMSIssuerAndSerialNumber &, const TDesC8 &)

IMPORT_C voidConstructL(const CCMSIssuerAndSerialNumber &aIssuerAndSerialNumber,
const TDesC8 &aEncryptedKey
)[protected]

Protected construction to allow derivation

Parameters

const CCMSIssuerAndSerialNumber & aIssuerAndSerialNumber
const TDesC8 & aEncryptedKey

ConstructL(const CCMSKeyIdentifier &, const TDesC8 &)

IMPORT_C voidConstructL(const CCMSKeyIdentifier &aRKeyId,
const TDesC8 &aEncryptedKey
)[protected]

Protected construction to allow derivation

Parameters

const CCMSKeyIdentifier & aRKeyId
const TDesC8 & aEncryptedKey

DecodeL(const TDesC8 &)

voidDecodeL(const TDesC8 &aRawData)
From MCMSModule
Since
2.8

Parameters

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

EncoderLC()

CASN1EncBase *EncoderLC()const
From MCMSModule
Since
2.8

EncryptedKey()

IMPORT_C const TDesC8 &EncryptedKey()const
Getter for EncryptedKey
Since
2.8

IssuerAndSerialNumber()

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

NewL()

IMPORT_C CCMSRecipientEncryptedKey *NewL()[static]

Two-phased constructor.

NewL(const CCMSIssuerAndSerialNumber &, const TDesC8 &)

IMPORT_C CCMSRecipientEncryptedKey *NewL(const CCMSIssuerAndSerialNumber &aIssuerAndSerialNumber,
const TDesC8 &aEncryptedKey
)[static]

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

Parameters

const CCMSIssuerAndSerialNumber & aIssuerAndSerialNumberrid (KeyAgreeRecipientIdentifier) value
const TDesC8 & aEncryptedKeyEncryptedKey value

NewL(const CCMSKeyIdentifier &, const TDesC8 &)

IMPORT_C CCMSRecipientEncryptedKey *NewL(const CCMSKeyIdentifier &aRKeyId,
const TDesC8 &aEncryptedKey
)[static]

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

Parameters

const CCMSKeyIdentifier & aRKeyIdrid (KeyAgreeRecipientIdentifier) value
const TDesC8 & aEncryptedKeyEncryptedKey value

RKeyId()

IMPORT_C const CCMSKeyIdentifier *RKeyId()const
Getter for rKeyId. Ownership is not transferred.
Since
2,8

SetEncryptedKeyL(const TDesC8 &)

IMPORT_C voidSetEncryptedKeyL(const TDesC8 &aEncryptedKey)
Setter for EncryptedKey. Creates a copy of the parameters.
Since
2.8

Parameters

const TDesC8 & aEncryptedKeyEncryptedKey value.

SetIssuerAndSerialNumberL(const CCMSIssuerAndSerialNumber &)

IMPORT_C voidSetIssuerAndSerialNumberL(const CCMSIssuerAndSerialNumber &aIssuerAndSerialNumber)
Setter for IssuerAndSerialNumber. Creates a copy of the parameters. Note that any existing rKeyId value is deleted.
Since
2.8

Parameters

const CCMSIssuerAndSerialNumber & aIssuerAndSerialNumberIssuerAndSerialNumber value.

SetRKeyIdL(const CCMSKeyIdentifier &)

IMPORT_C voidSetRKeyIdL(const CCMSKeyIdentifier &aRKeyId)
Setter for rKeyId. Creates a copy of the parameters. Note that any existing IssuerAndSerialNumber value is deleted.
Since
2.8

Parameters

const CCMSKeyIdentifier & aRKeyIdRecipientEncryptedKey value.

Member Data Documentation

TDesC8 * iEncryptedKey

TDesC8 *iEncryptedKey[private]

CCMSIssuerAndSerialNumber * iIssuerAndSerialNumber

CCMSIssuerAndSerialNumber *iIssuerAndSerialNumber[private]

CCMSKeyIdentifier * iRKeyId

CCMSKeyIdentifier *iRKeyId[private]