|
feisty meow concerns codebase 2.140
|
provides some initialization for the cryptography engines. 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. | |
| const mathematics::chaos & | randomizer () const |
| provides a random number generator for any encryption routines. | |
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. | |
provides some initialization for the cryptography engines.
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 44 of file ssl_init.h.
| crypto::ssl_init::ssl_init | ( | ) |
Definition at line 54 of file ssl_init.cpp.
References ALWAYS_LOG, FUNCDEF, LOG, NULL_POINTER, random_bytes(), and crypto::SEED_SIZE.
| crypto::ssl_init::~ssl_init | ( | ) |
Definition at line 81 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 96 of file ssl_init.cpp.
References mathematics::chaos::inclusive().
| const chaos & crypto::ssl_init::randomizer | ( | ) | const |
provides a random number generator for any encryption routines.
Definition at line 94 of file ssl_init.cpp.
Referenced by crypto::cryptical_envelopment::generate_key().