CryptoSpi::CAsyncRandom Class Reference

class CryptoSpi::CAsyncRandom : public CryptoSpi::CCryptoBase

Asynchronous Random API, which wraps an asynchronous Random plugin implementation

Inherits from

Constructor & Destructor Documentation

CAsyncRandom(MAsyncRandom *, TInt)

CAsyncRandom ( MAsyncRandom * aAsyncRandom,
TInt aHandle
) [private]

Constructor

Parameters

MAsyncRandom * aAsyncRandom
TInt aHandle

~CAsyncRandom()

IMPORT_C ~CAsyncRandom ( )

Destructor

Member Functions Documentation

GenerateRandomBytesL(TDes8 &, TRequestStatus &)

IMPORT_C void GenerateRandomBytesL ( TDes8 & aDest,
TRequestStatus & aStatus
)

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 & aDest The returned generated random bytes filling the descriptor
TRequestStatus & aStatus

NewL(MAsyncRandom *, TInt)

CAsyncRandom * NewL ( MAsyncRandom * aAsyncRandom,
TInt aHandle
) [static]

Create a CRandom instance from the given MRandom instance

Parameters

MAsyncRandom * aAsyncRandom The async random plugin instance
TInt aHandle