MySQL 8.3.0
Source Code Documentation
TlsCipher Class Reference

#include <tls_cipher.h>

Public Types

using nid_type = int
 

Public Member Functions

 TlsCipher (const EVP_CIPHER *cipher)
 
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
 
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
 
size_t size (size_t source_length) const
 

Private Attributes

const EVP_CIPHER * cipher_
 

Member Typedef Documentation

◆ nid_type

using TlsCipher::nid_type = int

Constructor & Destructor Documentation

◆ TlsCipher()

TlsCipher::TlsCipher ( const EVP_CIPHER *  cipher)
inline

Member Function Documentation

◆ decrypt()

stdx::expected< size_t, std::error_code > TlsCipher::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

◆ encrypt()

stdx::expected< size_t, std::error_code > TlsCipher::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

◆ size()

size_t TlsCipher::size ( size_t  source_length) const

Member Data Documentation

◆ cipher_

const EVP_CIPHER* TlsCipher::cipher_
private

The documentation for this class was generated from the following files: