CryptoSpi::CRandom Class Reference

class CryptoSpi::CRandom : public CryptoSpi::CCryptoBase

Synchronous Random API, which wraps a synchronous Random plugin implementation

Inherits from

Constructor & Destructor Documentation

CRandom(MRandom *, TInt)

CRandom(MRandom *aRandom,
TIntaHandle
)[private]

Constructor

Parameters

MRandom * aRandom
TInt aHandle

~CRandom()

IMPORT_C~CRandom()

Destructor

Member Functions Documentation

GenerateRandomBytesL(TDes8 &)

IMPORT_C voidGenerateRandomBytesL(TDes8 &aDest)

Generate enough random bytes to fill the supplied descriptor If there is not enough entropy available, or another error occurs (e.g. out of memory) then this method may leave.

Parameters

TDes8 & aDestThe returned generated random bytes filling the descriptor

NewL(MRandom *, TInt)

CRandom *NewL(MRandom *aRandom,
TIntaHandle
)[static]

Create a CRandom instance from the given MRandom instance

Parameters

MRandom * aRandomThe random plugin instance
TInt aHandle