Interface class used by Security Service Providers to implement a source of secure random bytes.
More...
#include <src/main/decaf/security/SecureRandomSpi.h>
Interface class used by Security Service Providers to implement a source of secure random bytes.
- Since
- 1.0
decaf::security::SecureRandomSpi::SecureRandomSpi |
( |
| ) |
|
virtual decaf::security::SecureRandomSpi::~SecureRandomSpi |
( |
| ) |
|
|
virtual |
virtual unsigned char* decaf::security::SecureRandomSpi::providerGenerateSeed |
( |
int |
numBytes | ) |
|
|
pure virtual |
virtual void decaf::security::SecureRandomSpi::providerNextBytes |
( |
unsigned char * |
bytes, |
|
|
int |
numBytes |
|
) |
| |
|
pure virtual |
Generates the number of random bytes specified by the size parameter and write them to the passed bytes array.
The array must have already been allocated and be of the correct size to prevent segmentation faults.
- Parameters
-
bytes | The array that will be filled with random bytes equal to size. |
numBytes | The number of bytes to generate and write into the bytes array. |
Implemented in decaf::internal::security::SecureRandomImpl, and decaf::internal::security::SecureRandomImpl.
virtual void decaf::security::SecureRandomSpi::providerSetSeed |
( |
const unsigned char * |
seed, |
|
|
int |
size |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file: