CryptoSpi::CAsymmetricCipherFactory Class Reference

class CryptoSpi::CAsymmetricCipherFactory

the Factory to create synchronous and asynchronous asymmetric cipher instance

Public Member Functions
IMPORT_C voidCreateAsymmetricCipherL(CAsymmetricCipher *&, TUid, const CKey &, TUid, TUid, const CCryptoParams *)
IMPORT_C voidCreateAsyncAsymmetricCipherL(CAsyncAsymmetricCipher *&, TUid, const CKey &, TUid, TUid, const CCryptoParams *)

Member Functions Documentation

CreateAsymmetricCipherL(CAsymmetricCipher *&, TUid, const CKey &, TUid, TUid, const CCryptoParams *)

IMPORT_C voidCreateAsymmetricCipherL(CAsymmetricCipher *&aCipher,
TUidaAlgorithmUid,
const CKey &aKey,
TUidaCryptoMode,
TUidaPaddingMode,
const CCryptoParams *aAlgorithmParams
)[static]

Creates a new instance of an asymmetric cipher

Parameters

CAsymmetricCipher *& aCipherA reference to a pointer that should be set to point to the new asymmetric cipher object.
TUid aAlgorithmUidThe asymmetric cipher algorithm to use (e.g. KRsaCipherUid)
const CKey & aKeyThe encryption/decryption key.
TUid aCryptoModewhether to encrypt or decrypt
TUid aPaddingModeThe padding mode to use
const CCryptoParams * aAlgorithmParamsParameters that are specific to a particular algorithm. This is for extendibility and will normally be null.

CreateAsyncAsymmetricCipherL(CAsyncAsymmetricCipher *&, TUid, const CKey &, TUid, TUid, const CCryptoParams *)

IMPORT_C voidCreateAsyncAsymmetricCipherL(CAsyncAsymmetricCipher *&aCipher,
TUidaAlgorithmUid,
const CKey &aKey,
TUidaCryptoMode,
TUidaPaddingMode,
const CCryptoParams *aAlgorithmParams
)[static]

Creates a new instance of an asymmetric cipher.

Parameters

CAsyncAsymmetricCipher *& aCipherA reference to a pointer that should be set to point to the new asymmetric cipher object.
TUid aAlgorithmUidThe asymmetric cipher algorithm to use (e.g. KRsaCipherUid)
const CKey & aKeyThe encryption/decryption key.
TUid aCryptoModewhether to encrypt or decrypt
TUid aPaddingModeThe padding mode to use
const CCryptoParams * aAlgorithmParamsParameters that are specific to a particular algorithm. This is for extendibility and will normally be null.