OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::EpochDataChannelCryptoContext Struct Reference

#include <data_epoch.hpp>

Inheritance diagram for openvpn::EpochDataChannelCryptoContext:
[legend]

Public Member Functions

void calculate_iv (uint8_t *packet_id, std::array< uint8_t, IV_SIZE > &iv_dest)
 

Public Attributes

std::uint16_t epoch = 0
 
openvpn::SSLLib::CryptoAPI::CipherContextAEAD cipher
 
std::array< uint8_t, IV_SIZEimplicit_iv {}
 

Static Public Attributes

static constexpr int IV_SIZE = 12
 

Detailed Description

Definition at line 77 of file data_epoch.hpp.

Member Function Documentation

◆ calculate_iv()

void openvpn::EpochDataChannelCryptoContext::calculate_iv ( uint8_t *  packet_id,
std::array< uint8_t, IV_SIZE > &  iv_dest 
)

Definition at line 320 of file data_epoch.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ cipher

openvpn::SSLLib::CryptoAPI::CipherContextAEAD openvpn::EpochDataChannelCryptoContext::cipher

Definition at line 83 of file data_epoch.hpp.

◆ epoch

std::uint16_t openvpn::EpochDataChannelCryptoContext::epoch = 0

Definition at line 82 of file data_epoch.hpp.

◆ implicit_iv

std::array<uint8_t, IV_SIZE> openvpn::EpochDataChannelCryptoContext::implicit_iv {}

Definition at line 84 of file data_epoch.hpp.

◆ IV_SIZE

constexpr int openvpn::EpochDataChannelCryptoContext::IV_SIZE = 12
staticconstexpr

The IV size in bytes. Since all currently supported AEAD ciphers uses 96 bits, we hardcode it for now

Definition at line 80 of file data_epoch.hpp.


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