CryptoSpi::CRandomFactory Class Reference

class CryptoSpi::CRandomFactory

the Factory to create synchronous and asynchronous hash instance

Public Member Functions
IMPORT_C void CreateAsyncRandomL (CAsyncRandom *&, TUid , const CCryptoParams *)
IMPORT_C void CreateRandomL (CRandom *&, TUid , const CCryptoParams *)

Member Functions Documentation

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

IMPORT_C void CreateAsyncRandomL ( CAsyncRandom *& aAsyncRandom,
TUid aAlgorithmUid,
const CCryptoParams * aAlgorithmParams
) [static]

Creates a new asynchronous instance of a Random object.

Parameters

CAsyncRandom *& aAsyncRandom A reference to a pointer that should be set to point to the new CAsyncRandom object.
TUid aAlgorithmUid The algorithm to use
const CCryptoParams * aAlgorithmParams Parameters that are specific this particular algorithm.

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

IMPORT_C void CreateRandomL ( CRandom *& aRandom,
TUid aAlgorithmUid,
const CCryptoParams * aAlgorithmParams
) [static]

Creates a new instance of a Random object.

Parameters

CRandom *& aRandom A reference to a pointer that should be set to point to the new CRandom object.
TUid aAlgorithmUid The algorithm to use
const CCryptoParams * aAlgorithmParams Parameters that are specific this algorithm.