CryptoSpi::CAsyncRandom Class Reference

#include <cryptospi/cryptorandomapi.h>

class CryptoSpi::CAsyncRandom : public CryptoSpi::CCryptoBase

Inherits from

Detailed Description

Asynchronous Random API, which wraps an asynchronous Random plugin implementation

Constructor & Destructor Documentation

~CAsyncRandom ( )

IMPORT_C~CAsyncRandom()

Destructor

Member Function Documentation

GenerateRandomBytesL ( TDes8 &, TRequestStatus & )

IMPORT_C voidGenerateRandomBytesL(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.

ParameterDescription
aDestThe returned generated random bytes filling the descriptor

NewL ( MAsyncRandom *, TInt )

CAsyncRandom *NewL(MAsyncRandom *aAsyncRandom,
TIntaHandle
)[static]

Create a CRandom instance from the given MRandom instance

ParameterDescription
aAsyncRandomThe async random plugin instance

Returns: A pointer to a CAsyncRandom instance