#include <openssl_engine.h>
OpenSSL Engine
Definition at line 18 of file openssl_engine.h.
◆ find_block_cipher()
- Parameters
-
algo_spec | the algorithm name/specification |
af | an algorithm factory object |
- Returns
- newly allocated object, or NULL
Reimplemented from Botan::Engine.
Definition at line 187 of file ossl_bc.cpp.
References Botan::SCAN_Name::algo_name(), Botan::SCAN_Name::arg_as_integer(), HANDLE_EVP_CIPHER, and HANDLE_EVP_CIPHER_KEYLEN.
190 #define HANDLE_EVP_CIPHER(NAME, EVP) \ 191 if(request.algo_name() == NAME && request.arg_count() == 0) \ 192 return new EVP_BlockCipher(EVP, NAME); 194 #define HANDLE_EVP_CIPHER_KEYLEN(NAME, EVP, MIN, MAX, MOD) \ 195 if(request.algo_name() == NAME && request.arg_count() == 0) \ 196 return new EVP_BlockCipher(EVP, NAME, MIN, MAX, MOD); 198 #if !defined(OPENSSL_NO_AES) 208 #if !defined(OPENSSL_NO_DES) 213 #if !defined(OPENSSL_NO_BF) 217 #if !defined(OPENSSL_NO_CAST) 221 #if !defined(OPENSSL_NO_CAMELLIA) 227 #if !defined(OPENSSL_NO_RC2) 231 #if !defined(OPENSSL_NO_RC5) && 0 232 if(request.algo_name() ==
"RC5")
233 if(request.arg_as_integer(0, 12) == 12)
234 return new EVP_BlockCipher(EVP_rc5_32_12_16_ecb(),
235 "RC5(12)", 1, 32, 1);
238 #if !defined(OPENSSL_NO_IDEA) && 0 242 #if !defined(OPENSSL_NO_SEED) 246 #undef HANDLE_EVP_CIPHER 247 #undef HANDLE_EVP_CIPHER_KEYLEN #define HANDLE_EVP_CIPHER_KEYLEN(NAME, EVP, MIN, MAX, MOD)
#define HANDLE_EVP_CIPHER(NAME, EVP)
◆ find_hash()
- Parameters
-
algo_spec | the algorithm name/specification |
af | an algorithm factory object |
- Returns
- newly allocated object, or NULL
Reimplemented from Botan::Engine.
Definition at line 110 of file ossl_md.cpp.
References Botan::SCAN_Name::algo_name().
113 #if !defined(OPENSSL_NO_SHA) 114 if(request.algo_name() ==
"SHA-160")
115 return new EVP_HashFunction(EVP_sha1(),
"SHA-160");
118 #if !defined(OPENSSL_NO_SHA256) 119 if(request.algo_name() ==
"SHA-224")
120 return new EVP_HashFunction(EVP_sha224(),
"SHA-224");
121 if(request.algo_name() ==
"SHA-256")
122 return new EVP_HashFunction(EVP_sha256(),
"SHA-256");
125 #if !defined(OPENSSL_NO_SHA512) 126 if(request.algo_name() ==
"SHA-384")
127 return new EVP_HashFunction(EVP_sha384(),
"SHA-384");
128 if(request.algo_name() ==
"SHA-512")
129 return new EVP_HashFunction(EVP_sha512(),
"SHA-512");
132 #if !defined(OPENSSL_NO_MD2) 133 if(request.algo_name() ==
"MD2")
134 return new EVP_HashFunction(EVP_md2(),
"MD2");
137 #if !defined(OPENSSL_NO_MD4) 138 if(request.algo_name() ==
"MD4")
139 return new EVP_HashFunction(EVP_md4(),
"MD4");
142 #if !defined(OPENSSL_NO_MD5) 143 if(request.algo_name() ==
"MD5")
144 return new EVP_HashFunction(EVP_md5(),
"MD5");
147 #if !defined(OPENSSL_NO_RIPEMD) 148 if(request.algo_name() ==
"RIPEMD-160")
149 return new EVP_HashFunction(EVP_ripemd160(),
"RIPEMD-160");
◆ find_mac()
◆ find_pbkdf()
◆ find_stream_cipher()
◆ get_cipher()
Return a new cipher object
- Parameters
-
algo_spec | the algorithm name/specification |
dir | specifies if encryption or decryption is desired |
af | an algorithm factory object |
- Returns
- newly allocated object, or NULL
Reimplemented in Botan::Dynamically_Loaded_Engine, and Botan::Core_Engine.
Definition at line 54 of file engine.cpp.
◆ get_decryption_op()
Return a new operator object for this key, if possible
- Parameters
-
key | the key we want an operator for |
- Returns
- newly allocated operator object, or NULL
Reimplemented from Botan::Engine.
Definition at line 334 of file ossl_pk.cpp.
336 #if defined(BOTAN_HAS_RSA) 337 if(
const RSA_PrivateKey* s = dynamic_cast<const RSA_PrivateKey*>(&key))
338 return new OSSL_RSA_Private_Operation(*s);
◆ get_encryption_op()
Return a new operator object for this key, if possible
- Parameters
-
key | the key we want an operator for |
- Returns
- newly allocated operator object, or NULL
Reimplemented from Botan::Engine.
Definition at line 323 of file ossl_pk.cpp.
325 #if defined(BOTAN_HAS_RSA) 326 if(
const RSA_PublicKey* s = dynamic_cast<const RSA_PublicKey*>(&key))
327 return new OSSL_RSA_Public_Operation(*s);
◆ get_key_agreement_op()
Return a new operator object for this key, if possible
- Parameters
-
key | the key we want an operator for |
- Returns
- newly allocated operator object, or NULL
Reimplemented from Botan::Engine.
Definition at line 280 of file ossl_pk.cpp.
282 #if defined(BOTAN_HAS_DIFFIE_HELLMAN) 283 if(
const DH_PrivateKey* dh = dynamic_cast<const DH_PrivateKey*>(&key))
284 return new OSSL_DH_KA_Operation(*dh);
◆ get_signature_op()
Return a new operator object for this key, if possible
- Parameters
-
key | the key we want an operator for |
- Returns
- newly allocated operator object, or NULL
Reimplemented from Botan::Engine.
Definition at line 291 of file ossl_pk.cpp.
293 #if defined(BOTAN_HAS_RSA) 294 if(
const RSA_PrivateKey* s = dynamic_cast<const RSA_PrivateKey*>(&key))
295 return new OSSL_RSA_Private_Operation(*s);
298 #if defined(BOTAN_HAS_DSA) 299 if(
const DSA_PrivateKey* s = dynamic_cast<const DSA_PrivateKey*>(&key))
300 return new OSSL_DSA_Signature_Operation(*s);
◆ get_verify_op()
Return a new operator object for this key, if possible
- Parameters
-
key | the key we want an operator for |
- Returns
- newly allocated operator object, or NULL
Reimplemented from Botan::Engine.
Definition at line 307 of file ossl_pk.cpp.
309 #if defined(BOTAN_HAS_RSA) 310 if(
const RSA_PublicKey* s = dynamic_cast<const RSA_PublicKey*>(&key))
311 return new OSSL_RSA_Public_Operation(*s);
314 #if defined(BOTAN_HAS_DSA) 315 if(
const DSA_PublicKey* s = dynamic_cast<const DSA_PublicKey*>(&key))
316 return new OSSL_DSA_Verification_Operation(*s);
◆ mod_exp()
- Parameters
-
n | the modulus |
hints | any use hints |
- Returns
- newly allocated object, or NULL
Reimplemented from Botan::Engine.
Definition at line 48 of file bn_powm.cpp.
51 return new OpenSSL_Modular_Exponentiator(n);
◆ provider_name()
std::string Botan::OpenSSL_Engine::provider_name |
( |
| ) |
const |
|
inlinevirtual |
The documentation for this class was generated from the following files: