MySQL 9.1.0
Source Code Documentation
aes.cc File Reference
#include <algorithm>
#include <locale>
#include <memory>
#include <include/scope_guard.h>
#include <openssl/aes.h>
#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/sha.h>
#include "aes.h"

Namespaces

namespace  keyring_common
 
namespace  keyring_common::aes_encryption
 

Functions

const EVP_CIPHER * keyring_common::aes_encryption::aes_evp_type (const Keyring_aes_opmode mode)
 
bool keyring_common::aes_encryption::aes_create_key (const unsigned char *key, unsigned int key_length, std::unique_ptr< unsigned char[]> &rkey, size_t *rkey_size, Keyring_aes_opmode opmode)
 Transforms an arbitrary long key into a fixed length AES key. More...
 
size_t keyring_common::aes_encryption::get_ciphertext_size (size_t input_size, const Keyring_aes_opmode mode)
 
aes_return_status keyring_common::aes_encryption::aes_encrypt (const unsigned char *source, unsigned int source_length, unsigned char *dest, const unsigned char *key, unsigned int key_length, Keyring_aes_opmode mode, const unsigned char *iv, bool padding, size_t *encrypted_length)
 
aes_return_status keyring_common::aes_encryption::aes_decrypt (const unsigned char *source, unsigned int source_length, unsigned char *dest, const unsigned char *key, unsigned int key_length, enum Keyring_aes_opmode mode, const unsigned char *iv, bool padding, size_t *decrypted_length)
 

Variables

size_t keyring_common::aes_encryption::aes_opmode_key_sizes []