CryptoSpi::MAsyncRandom Class Reference

class CryptoSpi::MAsyncRandom : public CryptoSpi::MPlugin

Inherits from

Member Functions Documentation

Cancel()

void Cancel ( ) [pure virtual]

Cancel an outstanding request

GenerateRandomBytesL(TDes8 &, TRequestStatus &)

void GenerateRandomBytesL ( TDes8 & aDest,
TRequestStatus & aStatus
) [pure virtual]

Implementations of this method should fill the passed buffer with the generated pseudo-random data up to the current length, discarding any current contents. The implementations should leave with KErrNotSecure when the generated random data is not secure enough.

leave
KErrNotSecure Random data generated is not secure enough for crytographic operations otherwise, leaves with any other system wide error code.

Parameters

TDes8 & aDest The buffer to fill with random data
TRequestStatus & aStatus The argument to carry the asynchonous request completion status to notify the client when buffer is filled with random data.