|
Botan 1.10.17
|
#include <core_engine.h>
Public Member Functions | |
| BlockCipher * | find_block_cipher (const SCAN_Name &, Algorithm_Factory &) const |
| HashFunction * | find_hash (const SCAN_Name &request, Algorithm_Factory &) const |
| MessageAuthenticationCode * | find_mac (const SCAN_Name &request, Algorithm_Factory &) const |
| PBKDF * | find_pbkdf (const SCAN_Name &algo_spec, Algorithm_Factory &af) const |
| StreamCipher * | find_stream_cipher (const SCAN_Name &, Algorithm_Factory &) const |
| Keyed_Filter * | get_cipher (const std::string &, Cipher_Dir, Algorithm_Factory &) |
| PK_Ops::Decryption * | get_decryption_op (const Private_Key &key) const |
| PK_Ops::Encryption * | get_encryption_op (const Public_Key &key) const |
| PK_Ops::Key_Agreement * | get_key_agreement_op (const Private_Key &key) const |
| PK_Ops::Signature * | get_signature_op (const Private_Key &key) const |
| PK_Ops::Verification * | get_verify_op (const Public_Key &key) const |
| Modular_Exponentiator * | mod_exp (const BigInt &n, Power_Mod::Usage_Hints) const |
| std::string | provider_name () const |
Core Engine
Definition at line 18 of file core_engine.h.
|
virtual |
| algo_spec | the algorithm name/specification |
| af | an algorithm factory object |
Reimplemented from Botan::Engine.
Definition at line 119 of file lookup_block.cpp.
References Botan::SCAN_Name::algo_name(), Botan::SCAN_Name::arg(), Botan::SCAN_Name::arg_as_integer(), Botan::SCAN_Name::arg_count(), Botan::SCAN_Name::arg_count_between(), Botan::Cascade_Cipher::Cascade_Cipher(), Botan::BlockCipher::clone(), Botan::HashFunction::clone(), Botan::StreamCipher::clone(), Botan::GOST_28147_89::GOST_28147_89(), Botan::Lion::Lion(), Botan::LubyRackoff::LubyRackoff(), Botan::MISTY1::MISTY1(), Botan::Algorithm_Factory::prototype_block_cipher(), Botan::Algorithm_Factory::prototype_hash_function(), Botan::Algorithm_Factory::prototype_stream_cipher(), and Botan::SAFER_SK::SAFER_SK().
|
virtual |
| algo_spec | the algorithm name/specification |
| af | an algorithm factory object |
Reimplemented from Botan::Engine.
Definition at line 98 of file lookup_hash.cpp.
References Botan::SCAN_Name::algo_name(), Botan::SCAN_Name::arg(), Botan::SCAN_Name::arg_as_integer(), Botan::SCAN_Name::arg_count(), Botan::HashFunction::clone(), Botan::Comb4P::Comb4P(), Botan::Keccak_1600::Keccak_1600(), Botan::Parallel::Parallel(), Botan::Algorithm_Factory::prototype_hash_function(), Botan::Skein_512::Skein_512(), and Botan::Tiger::Tiger().
|
virtual |
| algo_spec | the algorithm name/specification |
| af | an algorithm factory object |
Reimplemented from Botan::Engine.
Definition at line 38 of file lookup_mac.cpp.
References Botan::SCAN_Name::algo_name(), Botan::ANSI_X919_MAC::ANSI_X919_MAC(), Botan::SCAN_Name::arg(), Botan::SCAN_Name::arg_count(), Botan::CBC_MAC::CBC_MAC(), Botan::CMAC::CMAC(), Botan::HMAC::HMAC(), Botan::Algorithm_Factory::make_block_cipher(), Botan::Algorithm_Factory::make_hash_function(), and Botan::SSL3_MAC::SSL3_MAC().
|
virtual |
| algo_spec | the algorithm name/specification |
| af | an algorithm factory object |
Reimplemented from Botan::Engine.
Definition at line 26 of file lookup_pbkdf.cpp.
References Botan::SCAN_Name::algo_name(), Botan::SCAN_Name::arg(), Botan::SCAN_Name::arg_count(), Botan::Algorithm_Factory::make_hash_function(), Botan::Algorithm_Factory::make_mac(), Botan::OpenPGP_S2K::OpenPGP_S2K(), Botan::PKCS5_PBKDF1::PKCS5_PBKDF1(), Botan::PKCS5_PBKDF2::PKCS5_PBKDF2(), and Botan::Algorithm_Factory::prototype_mac().
|
virtual |
| algo_spec | the algorithm name/specification |
| af | an algorithm factory object |
Reimplemented from Botan::Engine.
Definition at line 33 of file lookup_stream.cpp.
References Botan::SCAN_Name::algo_name(), Botan::ARC4::ARC4(), and Botan::SCAN_Name::arg_as_integer().
|
virtual |
Return a new cipher object
| algo_spec | the algorithm name/specification |
| dir | specifies if encryption or decryption is desired |
| af | an algorithm factory object |
Reimplemented from Botan::Engine.
Definition at line 181 of file core_modes.cpp.
References Botan::Algorithm_Not_Found::Algorithm_Not_Found(), Botan::StreamCipher::clone(), Botan::get_cipher_mode(), Botan::Invalid_Algorithm_Name::Invalid_Algorithm_Name(), Botan::Lookup_Error::Lookup_Error(), Botan::Algorithm_Factory::prototype_block_cipher(), Botan::Algorithm_Factory::prototype_stream_cipher(), Botan::split_on(), and Botan::StreamCipher_Filter::StreamCipher_Filter().
|
virtual |
Return a new operator object for this key, if possible
| key | the key we want an operator for |
Reimplemented from Botan::Engine.
Definition at line 65 of file def_pk_ops.cpp.
References Botan::ElGamal_Decryption_Operation::ElGamal_Decryption_Operation(), and Botan::RSA_Private_Operation::RSA_Private_Operation().
|
virtual |
Return a new operator object for this key, if possible
| key | the key we want an operator for |
Reimplemented from Botan::Engine.
Definition at line 49 of file def_pk_ops.cpp.
References Botan::ElGamal_Encryption_Operation::ElGamal_Encryption_Operation(), and Botan::RSA_Public_Operation::RSA_Public_Operation().
|
virtual |
Return a new operator object for this key, if possible
| key | the key we want an operator for |
Reimplemented from Botan::Engine.
Definition at line 81 of file def_pk_ops.cpp.
References Botan::DH_KA_Operation::DH_KA_Operation(), and Botan::ECDH_KA_Operation::ECDH_KA_Operation().
|
virtual |
Return a new operator object for this key, if possible
| key | the key we want an operator for |
Reimplemented from Botan::Engine.
Definition at line 97 of file def_pk_ops.cpp.
References Botan::DSA_Signature_Operation::DSA_Signature_Operation(), Botan::ECDSA_Signature_Operation::ECDSA_Signature_Operation(), Botan::NR_Signature_Operation::NR_Signature_Operation(), Botan::RSA_Private_Operation::RSA_Private_Operation(), and Botan::RW_Signature_Operation::RW_Signature_Operation().
|
virtual |
Return a new operator object for this key, if possible
| key | the key we want an operator for |
Reimplemented from Botan::Engine.
Definition at line 134 of file def_pk_ops.cpp.
References Botan::DSA_Verification_Operation::DSA_Verification_Operation(), Botan::ECDSA_Verification_Operation::ECDSA_Verification_Operation(), Botan::NR_Verification_Operation::NR_Verification_Operation(), Botan::RSA_Public_Operation::RSA_Public_Operation(), and Botan::RW_Verification_Operation::RW_Verification_Operation().
|
virtual |
| n | the modulus |
| hints | any use hints |
Reimplemented from Botan::Engine.
Definition at line 17 of file def_powm.cpp.
References Botan::Fixed_Window_Exponentiator::Fixed_Window_Exponentiator(), Botan::BigInt::is_odd(), and Botan::Montgomery_Exponentiator::Montgomery_Exponentiator().
|
inlinevirtual |
Implements Botan::Engine.
Definition at line 21 of file core_engine.h.