CryptoSpi::CRandomFactory Class Reference

class CryptoSpi::CRandomFactory

the Factory to create synchronous and asynchronous hash instance

Public Member Functions
IMPORT_C voidCreateAsyncRandomL(CAsyncRandom *&, TUid, const CCryptoParams *)
IMPORT_C voidCreateRandomL(CRandom *&, TUid, const CCryptoParams *)

Member Functions Documentation

CreateAsyncRandomL(CAsyncRandom *&, TUid, const CCryptoParams *)

IMPORT_C voidCreateAsyncRandomL(CAsyncRandom *&aAsyncRandom,
TUidaAlgorithmUid,
const CCryptoParams *aAlgorithmParams
)[static]

Creates a new asynchronous instance of a Random object.

Parameters

CAsyncRandom *& aAsyncRandomA reference to a pointer that should be set to point to the new CAsyncRandom object.
TUid aAlgorithmUidThe algorithm to use
const CCryptoParams * aAlgorithmParamsParameters that are specific this particular algorithm.

CreateRandomL(CRandom *&, TUid, const CCryptoParams *)

IMPORT_C voidCreateRandomL(CRandom *&aRandom,
TUidaAlgorithmUid,
const CCryptoParams *aAlgorithmParams
)[static]

Creates a new instance of a Random object.

Parameters

CRandom *& aRandomA reference to a pointer that should be set to point to the new CRandom object.
TUid aAlgorithmUidThe algorithm to use
const CCryptoParams * aAlgorithmParamsParameters that are specific this algorithm.