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,
TBool aIsServerMac,
TInt64 & aSeqNumber,
TRecordProtocol aType
)

Parameters

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

CreateEncryptorL()

void CreateEncryptorL ( )

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()

void GenerateExportKeysL ( )

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 void TLSPRFComputationsL ( const TDesC8 & aSecret,
const TDesC8 & aSeed,
const TTLSMACAlgorithm & aMacAlg,
const TInt aLen,
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 void TLSPRFL ( const TDesC8 & aSecret,
const TDesC8 & aLabelAndSeed,
const TInt aLen,
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]