CryptoSpi::CRandomFactory Class Reference

#include <cryptospi/cryptorandomapi.h>

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

Detailed Description

the Factory to create synchronous and asynchronous hash instance

Member Function 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
aAsyncRandomA reference to a pointer that should be set to point to the new CAsyncRandom object.
aAlgorithmUidThe algorithm to use
aAlgorithmParamsParameters that are specific this particular algorithm.
Return Value
KErrNone if successful; otherwise, a system wide error code.

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

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

Creates a new instance of a Random object.

Parameters
aRandomA reference to a pointer that should be set to point to the new CRandom object.
aAlgorithmUidThe algorithm to use
aAlgorithmParamsParameters that are specific this algorithm.
Return Value
KErrNone if successful; otherwise, a system wide error code.