26#ifndef MYSQL_HARNESS_TLS_CIPHER_H_INCLUDED
27#define MYSQL_HARNESS_TLS_CIPHER_H_INCLUDED
29#include <system_error>
31#include <openssl/evp.h>
42 const uint8_t *src,
size_t src_size, uint8_t *dst,
const uint8_t *
key,
43 size_t key_size,
const uint8_t *iv,
bool padding =
true)
const;
46 const uint8_t *src,
size_t src_size, uint8_t *dst,
const uint8_t *
key,
47 size_t key_size,
const uint8_t *iv,
bool padding =
true)
const;
49 size_t size(
size_t source_length)
const;
Definition: tls_cipher.h:35
TlsCipher(const EVP_CIPHER *cipher)
Definition: tls_cipher.h:39
stdx::expected< size_t, std::error_code > decrypt(const uint8_t *src, size_t src_size, uint8_t *dst, const uint8_t *key, size_t key_size, const uint8_t *iv, bool padding=true) const
Definition: tls_cipher.cc:115
const EVP_CIPHER * cipher_
Definition: tls_cipher.h:52
size_t size(size_t source_length) const
Definition: tls_cipher.cc:150
int nid_type
Definition: tls_cipher.h:37
stdx::expected< size_t, std::error_code > encrypt(const uint8_t *src, size_t src_size, uint8_t *dst, const uint8_t *key, size_t key_size, const uint8_t *iv, bool padding=true) const
Definition: tls_cipher.cc:79
required string key
Definition: replication_asynchronous_connection_failover.proto:60