CryptoSpi::CRandom Class Reference
#include
<cryptospi/cryptorandomapi.h>
class CryptoSpi::CRandom : public CryptoSpi::CCryptoBase |
Detailed Description
Synchronous Random API, which wraps a synchronous Random plugin implementation
Constructor & Destructor Documentation
Member Function Documentation
GenerateRandomBytesL ( TDes8 & )
IMPORT_C void | GenerateRandomBytesL | ( | 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.
Parameter | Description | aDest | The returned generated random bytes filling the descriptor |
NewL ( MRandom *, TInt )
Create a CRandom instance from the given MRandom instance
Parameter | Description | aRandom | The random plugin instance |
Returns: A pointer to a CRandom instance