CipherContextCommon(CipherContextCommon &&other) noexcept
virtual ~CipherContextCommon()
CipherContextCommon & operator=(CipherContextCommon &&other)
CipherContextCommon(const CipherContextCommon &other)=delete
OPENVPN_SIMPLE_EXCEPTION(mbedtls_cipher_uninitialized)
mbedtls_cipher_context_t ctx
void check_initialized() const
OPENVPN_SIMPLE_EXCEPTION(mbedtls_cipher_mode_error)
bool constexpr requires_authtag_at_end()
static void check_mode(int mode)
CipherContextCommon & operator=(const CipherContextCommon &other)=delete
CipherContextCommon()=default
void init(SSLLib::Ctx libctx, const CryptoAlgs::Type alg, const unsigned char *key, const int mode)
CipherContext(const CipherContext &)=delete
static bool is_supported(SSLLib::Ctx libctx, const CryptoAlgs::Type alg)
OPENVPN_EXCEPTION(mbedtls_cipher_error)
bool update(unsigned char *out, const size_t max_out_size, const unsigned char *in, const size_t in_size, size_t &out_acc)
static const mbedtls_cipher_info_t * cipher_type(const CryptoAlgs::Type alg)
size_t block_size() const
CipherContext & operator=(const CipherContext &)=delete
bool is_initialized() const
void reset(const unsigned char *iv)