activemq-cpp-3.6.0
|
Secure Random Number Generator for Unix based platforms that attempts to obtain secure bytes with high entropy from known sources. More...
#include <src/main/decaf/internal/security/unix/SecureRandomImpl.h>
Public Member Functions | |
SecureRandomImpl () | |
virtual | ~SecureRandomImpl () |
virtual void | providerSetSeed (const unsigned char *seed, int size) |
Reseed the Random Number Generator, the value given supplements the previous seed value if any instead of replacing it. | |
virtual void | providerNextBytes (unsigned char *bytes, int numBytes) |
Generates the number of random bytes specified by the size parameter and write them to the passed bytes array. | |
virtual unsigned char * | providerGenerateSeed (int numBytes) |
Generates a new set of seed bytes, the returned value may be used to seed another Random Number Generator. | |
SecureRandomImpl () | |
virtual | ~SecureRandomImpl () |
virtual void | providerSetSeed (const unsigned char *seed, int size) |
Reseed the Random Number Generator, the value given supplements the previous seed value if any instead of replacing it. | |
virtual void | providerNextBytes (unsigned char *bytes, int numBytes) |
Generates the number of random bytes specified by the size parameter and write them to the passed bytes array. | |
virtual unsigned char * | providerGenerateSeed (int numBytes) |
Generates a new set of seed bytes, the returned value may be used to seed another Random Number Generator. | |
Public Member Functions inherited from decaf::security::SecureRandomSpi | |
SecureRandomSpi () | |
virtual | ~SecureRandomSpi () |
Secure Random Number Generator for Unix based platforms that attempts to obtain secure bytes with high entropy from known sources.
Secure Random Number Generator for Windows based platforms that attempts to obtain secure bytes with high entropy from known sources.
If the platform does not have a source of secure bytes then the platform random number generator is used if one exists otherwise the Decaf RNG is used as a last resort.
decaf::internal::security::SecureRandomImpl::SecureRandomImpl | ( | ) |
|
virtual |
decaf::internal::security::SecureRandomImpl::SecureRandomImpl | ( | ) |
|
virtual |
|
virtual |
Generates a new set of seed bytes, the returned value may be used to seed another Random Number Generator.
The caller owns the returned array and must delete it.
numBytes | The number of bytes that should be generated for the new seed array. |
Implements decaf::security::SecureRandomSpi.
|
virtual |
Generates a new set of seed bytes, the returned value may be used to seed another Random Number Generator.
The caller owns the returned array and must delete it.
numBytes | The number of bytes that should be generated for the new seed array. |
Implements decaf::security::SecureRandomSpi.
|
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.
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. |
Implements decaf::security::SecureRandomSpi.
|
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.
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. |
Implements decaf::security::SecureRandomSpi.
|
virtual |
Reseed the Random Number Generator, the value given supplements the previous seed value if any instead of replacing it.
seed | The array of bytes used to update the generators seed. |
size | The size of the passed byte array. |
Implements decaf::security::SecureRandomSpi.
|
virtual |
Reseed the Random Number Generator, the value given supplements the previous seed value if any instead of replacing it.
seed | The array of bytes used to update the generators seed. |
size | The size of the passed byte array. |
Implements decaf::security::SecureRandomSpi.