#include <cryptospi/cryptorandomapi.h>
class CryptoSpi::CRandomFactory |
Public Member Functions | |
---|---|
IMPORT_C void | CreateAsyncRandomL(CAsyncRandom *&, TUid, const CCryptoParams *) |
IMPORT_C void | CreateRandomL(CRandom *&, TUid, const CCryptoParams *) |
the Factory to create synchronous and asynchronous hash instance
IMPORT_C void | CreateAsyncRandomL | ( | CAsyncRandom *& | aAsyncRandom, |
TUid | aAlgorithmUid, | |||
const CCryptoParams * | aAlgorithmParams | |||
) | [static] |
Creates a new asynchronous instance of a Random object.
Parameter | Description |
---|---|
aAsyncRandom | A reference to a pointer that should be set to point to the new CAsyncRandom object. |
aAlgorithmUid | The algorithm to use |
aAlgorithmParams | Parameters that are specific this particular algorithm. |
Returns: KErrNone if successful; otherwise, a system wide error code.
IMPORT_C void | CreateRandomL | ( | CRandom *& | aRandom, |
TUid | aAlgorithmUid, | |||
const CCryptoParams * | aAlgorithmParams | |||
) | [static] |
Creates a new instance of a Random object.
Parameter | Description |
---|---|
aRandom | A reference to a pointer that should be set to point to the new CRandom object. |
aAlgorithmUid | The algorithm to use |
aAlgorithmParams | Parameters that are specific this algorithm. |
Returns: KErrNone if successful; otherwise, a system wide error code.