CTlsEncrypt Class Reference

class CTlsEncrypt : public CBase

Inherits from

Constructor & Destructor Documentation

~CTlsEncrypt()

~CTlsEncrypt()

Member Functions Documentation

ComputeMacL(TDes8 &, const TDesC8 &, TBool, TInt64 &, TRecordProtocol)

TUint ComputeMacL(TDes8 &aMacbuf,
const TDesC8 &aData,
TBoolaIsServerMac,
TInt64 &aSeqNumber,
TRecordProtocolaType
)

Parameters

TDes8 & aMacbuf
const TDesC8 & aData
TBool aIsServerMac
TInt64 & aSeqNumber
TRecordProtocol aType

CreateEncryptorL()

voidCreateEncryptorL()

DecryptAndVerifyL(const TDesC8 &, HBufC8 *&, TInt64 &, TRecordProtocol &)

TInt DecryptAndVerifyL(const TDesC8 &aInput,
HBufC8 *&aOutput,
TInt64 &aSeqNumber,
TRecordProtocol &aType
)

Parameters

const TDesC8 & aInput
HBufC8 *& aOutput
TInt64 & aSeqNumber
TRecordProtocol & aType

EncryptL(const TDesC8 &, HBufC8 *&, TInt64 &, TRecordProtocol &)

TInt EncryptL(const TDesC8 &aInput,
HBufC8 *&aOutput,
TInt64 &aSeqNumber,
TRecordProtocol &aType
)

Parameters

const TDesC8 & aInput
HBufC8 *& aOutput
TInt64 & aSeqNumber
TRecordProtocol & aType

GenerateExportKeysL()

voidGenerateExportKeysL()

NewL(TTLSMasterSecretInput &, TTLSCipherSuite &, HBufC8 *, CTlsCryptoAttributes *)

CTlsEncrypt *NewL(TTLSMasterSecretInput &aMasterSecretInput,
TTLSCipherSuite &aCipherSuiteId,
HBufC8 *aKeyMaterial,
CTlsCryptoAttributes *aTlsCryptoAttributes
)[static]

Parameters

TTLSMasterSecretInput & aMasterSecretInput
TTLSCipherSuite & aCipherSuiteId
HBufC8 * aKeyMaterial
CTlsCryptoAttributes * aTlsCryptoAttributes

TLSPRFComputationsL(const TDesC8 &, const TDesC8 &, const TTLSMACAlgorithm &, const TInt, TDes8 &)

IMPORT_C voidTLSPRFComputationsL(const TDesC8 &aSecret,
const TDesC8 &aSeed,
const TTLSMACAlgorithm &aMacAlg,
const TIntaLen,
TDes8 &aOut
)[static]

Parameters

const TDesC8 & aSecret
const TDesC8 & aSeed
const TTLSMACAlgorithm & aMacAlg
const TInt aLen
TDes8 & aOut

TLSPRFL(const TDesC8 &, const TDesC8 &, const TInt, TDes8 &)

IMPORT_C voidTLSPRFL(const TDesC8 &aSecret,
const TDesC8 &aLabelAndSeed,
const TIntaLen,
TDes8 &aOut
)[static]

Parameters

const TDesC8 & aSecret
const TDesC8 & aLabelAndSeed
const TInt aLen
TDes8 & aOut

Member Data Documentation

TInt iCipherIndex

TInt iCipherIndex[private]

TTLSCipherSuite iCipherSuiteId

TTLSCipherSuite iCipherSuiteId[private]

TBuf8< 32 > iClientWriteIV

TBuf8< 32 >iClientWriteIV[private]

TBuf8< 32 > iClientWriteKey

TBuf8< 32 >iClientWriteKey[private]

TCryptoHolder iCryptos

TCryptoHolder iCryptos[private]

HBufC8 * iKeyMaterial

HBufC8 *iKeyMaterial[private]

TTLSMasterSecretInput iMasterSecretInput

TTLSMasterSecretInput iMasterSecretInput[private]

TBuf8< 32 > iServerWriteIV

TBuf8< 32 >iServerWriteIV[private]

TBuf8< 32 > iServerWriteKey

TBuf8< 32 >iServerWriteKey[private]

CTlsCryptoAttributes * iTlsCryptoAttributes

CTlsCryptoAttributes *iTlsCryptoAttributes[private]