feisty meow concerns codebase
2.140
|
provides some initialization for the RSA and blowfish crypto. More...
#include <ssl_init.h>
Public Member Functions | |
ssl_init () | |
~ssl_init () | |
DEFINE_CLASS_NAME ("ssl_init") | |
basis::byte_array | random_bytes (int length) const |
can be used to generate a random array of "length" bytes. More... | |
const mathematics::chaos & | randomizer () const |
provides a random number generator for any encryption routines. More... | |
Public Member Functions inherited from basis::nameable | |
virtual const char * | class_name () const =0 |
Returns the bare name of this class as a constant character pointer. More... | |
provides some initialization for the RSA and blowfish crypto.
This class does the SSL initialization needed before any functions can be used. It also sets up the random seed for SSL. NOTE: you should never need to use this class directly; just use the accessor function at the very bottom and it will be managed globally for the entire program.
Definition at line 39 of file ssl_init.h.
crypto::ssl_init::ssl_init | ( | ) |
Definition at line 51 of file ssl_init.cpp.
References FUNCDEF, LOG, random_bytes(), and crypto::SEED_SIZE.
crypto::ssl_init::~ssl_init | ( | ) |
Definition at line 68 of file ssl_init.cpp.
crypto::ssl_init::DEFINE_CLASS_NAME | ( | "ssl_init" | ) |
byte_array crypto::ssl_init::random_bytes | ( | int | length | ) | const |
can be used to generate a random array of "length" bytes.
Definition at line 87 of file ssl_init.cpp.
const chaos & crypto::ssl_init::randomizer | ( | ) | const |
provides a random number generator for any encryption routines.
Definition at line 85 of file ssl_init.cpp.
Referenced by crypto::blowfish_crypto::generate_key().