feisty meow concerns codebase  2.140
crypto::ssl_init Class Reference

provides some initialization for the RSA and blowfish crypto. More...

#include <ssl_init.h>

Inheritance diagram for crypto::ssl_init:
Collaboration diagram for crypto::ssl_init:

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::chaosrandomizer () 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ssl_init()

crypto::ssl_init::ssl_init ( )

Definition at line 51 of file ssl_init.cpp.

References FUNCDEF, LOG, random_bytes(), and crypto::SEED_SIZE.

◆ ~ssl_init()

crypto::ssl_init::~ssl_init ( )

Definition at line 68 of file ssl_init.cpp.

References FUNCDEF, and LOG.

Member Function Documentation

◆ DEFINE_CLASS_NAME()

crypto::ssl_init::DEFINE_CLASS_NAME ( "ssl_init"  )

◆ random_bytes()

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.

◆ randomizer()

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().


The documentation for this class was generated from the following files: