Botan  2.7.0
Crypto and TLS for C++11
Namespaces | Macros | Functions
openssl_block.cpp File Reference
#include <botan/block_cipher.h>
#include <botan/internal/openssl.h>
#include <openssl/evp.h>

Go to the source code of this file.

Namespaces

 Botan
 

Macros

#define MAKE_OPENSSL_BLOCK(evp_fn)   std::unique_ptr<BlockCipher>(new OpenSSL_BlockCipher(name, evp_fn()))
 
#define MAKE_OPENSSL_BLOCK_KEYLEN(evp_fn, kl_min, kl_max, kl_mod)   std::unique_ptr<BlockCipher>(new OpenSSL_BlockCipher(name, evp_fn(), kl_min, kl_max, kl_mod))
 

Functions

std::unique_ptr< BlockCipher > Botan::make_openssl_block_cipher (const std::string &name)
 

Macro Definition Documentation

◆ MAKE_OPENSSL_BLOCK

#define MAKE_OPENSSL_BLOCK (   evp_fn)    std::unique_ptr<BlockCipher>(new OpenSSL_BlockCipher(name, evp_fn()))

◆ MAKE_OPENSSL_BLOCK_KEYLEN

#define MAKE_OPENSSL_BLOCK_KEYLEN (   evp_fn,
  kl_min,
  kl_max,
  kl_mod 
)    std::unique_ptr<BlockCipher>(new OpenSSL_BlockCipher(name, evp_fn(), kl_min, kl_max, kl_mod))

Variable Documentation

◆ m_block_sz

size_t m_block_sz

Definition at line 55 of file openssl_block.cpp.

◆ m_cipher_key_spec

Key_Length_Specification m_cipher_key_spec

Definition at line 56 of file openssl_block.cpp.

◆ m_cipher_name

std::string m_cipher_name

Definition at line 57 of file openssl_block.cpp.

◆ m_decrypt

EVP_CIPHER_CTX* m_decrypt

Definition at line 59 of file openssl_block.cpp.

◆ m_encrypt

EVP_CIPHER_CTX* m_encrypt

Definition at line 58 of file openssl_block.cpp.

◆ m_key_set

bool m_key_set

Definition at line 60 of file openssl_block.cpp.