CryptoSpi::CSymmetricCipherFactory Class Reference

class CryptoSpi::CSymmetricCipherFactory

This Factory to create synchronous and asynchronous symmetric cipher instances

Public Member Functions
IMPORT_C voidCreateAsyncSymmetricCipherL(CAsyncSymmetricCipher *&, TUid, const CKey &, TUid, TUid, TUid, const CCryptoParams *)
IMPORT_C voidCreateSymmetricCipherL(CSymmetricCipher *&, TUid, const CKey &, TUid, TUid, TUid, const CCryptoParams *)

Member Functions Documentation

CreateAsyncSymmetricCipherL(CAsyncSymmetricCipher *&, TUid, const CKey &, TUid, TUid, TUid, const CCryptoParams *)

IMPORT_C voidCreateAsyncSymmetricCipherL(CAsyncSymmetricCipher *&aAsyncCipher,
TUidaAlgorithmUid,
const CKey &aKey,
TUidaCryptoMode,
TUidaOperationMode,
TUidaPaddingMode,
const CCryptoParams *aAlgorithmParams
)[static]

Creates a new asynchronous instance of a symmetric cipher

Parameters

CAsyncSymmetricCipher *& aAsyncCipherA reference to a pointer that should be set to point to the new symmetric object.
TUid aAlgorithmUidThe algorithm to use
const CKey & aKeyThe encryption/decryption key.
TUid aCryptoModeThe Symmetric cipher mode.
TUid aOperationModeThe Symmetric cipher operation mode.
TUid aPaddingModeThe Symmetric cipher padding mode.
const CCryptoParams * aAlgorithmParamsParameters that are specific to a particular algorithm. This is for extendibility and will normally be null.

CreateSymmetricCipherL(CSymmetricCipher *&, TUid, const CKey &, TUid, TUid, TUid, const CCryptoParams *)

IMPORT_C voidCreateSymmetricCipherL(CSymmetricCipher *&aCipher,
TUidaAlgorithmUid,
const CKey &aKey,
TUidaCryptoMode,
TUidaOperationMode,
TUidaPaddingMode,
const CCryptoParams *aAlgorithmParams
)[static]

Creates a new synchronous instance of a symmetric cipher

Parameters

CSymmetricCipher *& aCipherA reference to a pointer that should be set to point to the new symmetric object.
TUid aAlgorithmUidThe algorithm to use
const CKey & aKeyThe encryption/decryption key.
TUid aCryptoModeThe Symmetric cipher mode.
TUid aOperationModeThe Symmetric cipher operation mode.
TUid aPaddingModeThe Symmetric cipher padding mode.
const CCryptoParams * aAlgorithmParamsParameters that are specific to a particular algorithm. This is for extendibility and will normally be null.