Botan
1.10.9
|
Functions | |
Library_State & | global_state () |
bool | global_state_exists () |
void | set_global_state (Library_State *new_state) |
bool | set_global_state_unless_set (Library_State *new_state) |
Library_State * | swap_global_state (Library_State *new_state) |
Namespace for management of the global state
BOTAN_DLL Library_State & Botan::Global_State_Management::global_state | ( | ) |
Access the global library state
Definition at line 32 of file global_state.cpp.
References Botan::Library_State::initialize().
Referenced by Botan::OIDS::add_oid(), Botan::AutoSeeded_RNG::AutoSeeded_RNG(), Botan::block_size_of(), Botan::DH_KA_Operation::DH_KA_Operation(), Botan::DL_Group::DL_Group(), Botan::EC_Group::EC_Group(), Botan::ElGamal_Decryption_Operation::ElGamal_Decryption_Operation(), Botan::Allocator::get(), Botan::get_block_cipher(), Botan::get_cipher(), Botan::get_eme(), Botan::get_emsa(), Botan::get_hash(), Botan::get_kdf(), Botan::get_mac(), Botan::get_pbe(), Botan::get_pbkdf(), Botan::get_stream_cipher(), Botan::Hash_Filter::Hash_Filter(), Botan::have_algorithm(), Botan::have_block_cipher(), Botan::have_hash(), Botan::have_mac(), Botan::OIDS::have_oid(), Botan::have_stream_cipher(), Botan::LibraryInitializer::initialize(), Botan::keylength_multiple_of(), Botan::OIDS::lookup(), Botan::MAC_Filter::MAC_Filter(), Botan::max_keylength_of(), Botan::min_keylength_of(), Botan::output_length_of(), Botan::PK_Decryptor_EME::PK_Decryptor_EME(), Botan::PK_Encryptor_EME::PK_Encryptor_EME(), Botan::PK_Key_Agreement::PK_Key_Agreement(), Botan::PK_Signer::PK_Signer(), Botan::PK_Verifier::PK_Verifier(), Botan::retrieve_block_cipher(), Botan::retrieve_hash(), Botan::retrieve_mac(), Botan::retrieve_stream_cipher(), Botan::RSA_Private_Operation::RSA_Private_Operation(), Botan::SCAN_Name::SCAN_Name(), Botan::Record_Writer::set_keys(), Botan::Record_Reader::set_keys(), Botan::Power_Mod::set_modulus(), and Botan::StreamCipher_Filter::StreamCipher_Filter().
BOTAN_DLL bool Botan::Global_State_Management::global_state_exists | ( | ) |
Query if the library is currently initialized
Definition at line 84 of file global_state.cpp.
BOTAN_DLL void Botan::Global_State_Management::set_global_state | ( | Library_State * | state | ) |
Set the global state object
state | the new global state to use |
Definition at line 49 of file global_state.cpp.
References swap_global_state().
Referenced by Botan::LibraryInitializer::deinitialize(), and Botan::LibraryInitializer::initialize().
BOTAN_DLL bool Botan::Global_State_Management::set_global_state_unless_set | ( | Library_State * | state | ) |
Set the global state object unless it is already set
state | the new global state to use |
Definition at line 57 of file global_state.cpp.
References swap_global_state().
BOTAN_DLL Library_State * Botan::Global_State_Management::swap_global_state | ( | Library_State * | new_state | ) |
Swap the current state for another
new_state | the new state object to use |
Definition at line 74 of file global_state.cpp.
Referenced by set_global_state(), and set_global_state_unless_set().