Botan  2.8.0
Crypto and TLS for C++11
Public Member Functions | List of all members
Botan::TLS::Stream_Sequence_Numbers Class Referencefinal

#include <tls_seq_numbers.h>

Inheritance diagram for Botan::TLS::Stream_Sequence_Numbers:
Botan::TLS::Connection_Sequence_Numbers

Public Member Functions

bool already_seen (uint64_t) const override
 
uint16_t current_read_epoch () const override
 
uint16_t current_write_epoch () const override
 
void new_read_cipher_state () override
 
void new_write_cipher_state () override
 
uint64_t next_read_sequence () override
 
uint64_t next_write_sequence (uint16_t) override
 
void read_accept (uint64_t) override
 

Detailed Description

Definition at line 36 of file tls_seq_numbers.h.

Member Function Documentation

◆ already_seen()

bool Botan::TLS::Stream_Sequence_Numbers::already_seen ( uint64_t  ) const
inlineoverridevirtual

Implements Botan::TLS::Connection_Sequence_Numbers.

Definition at line 48 of file tls_seq_numbers.h.

48 { return false; }

◆ current_read_epoch()

uint16_t Botan::TLS::Stream_Sequence_Numbers::current_read_epoch ( ) const
inlineoverridevirtual

Implements Botan::TLS::Connection_Sequence_Numbers.

Definition at line 42 of file tls_seq_numbers.h.

42 { return m_read_epoch; }

◆ current_write_epoch()

uint16_t Botan::TLS::Stream_Sequence_Numbers::current_write_epoch ( ) const
inlineoverridevirtual

Implements Botan::TLS::Connection_Sequence_Numbers.

Definition at line 43 of file tls_seq_numbers.h.

43 { return m_write_epoch; }

◆ new_read_cipher_state()

void Botan::TLS::Stream_Sequence_Numbers::new_read_cipher_state ( )
inlineoverridevirtual

Implements Botan::TLS::Connection_Sequence_Numbers.

Definition at line 39 of file tls_seq_numbers.h.

39 { m_read_seq_no = 0; m_read_epoch++; }

◆ new_write_cipher_state()

void Botan::TLS::Stream_Sequence_Numbers::new_write_cipher_state ( )
inlineoverridevirtual

Implements Botan::TLS::Connection_Sequence_Numbers.

Definition at line 40 of file tls_seq_numbers.h.

40 { m_write_seq_no = 0; m_write_epoch++; }

◆ next_read_sequence()

uint64_t Botan::TLS::Stream_Sequence_Numbers::next_read_sequence ( )
inlineoverridevirtual

Implements Botan::TLS::Connection_Sequence_Numbers.

Definition at line 46 of file tls_seq_numbers.h.

46 { return m_read_seq_no; }

◆ next_write_sequence()

uint64_t Botan::TLS::Stream_Sequence_Numbers::next_write_sequence ( uint16_t  )
inlineoverridevirtual

Implements Botan::TLS::Connection_Sequence_Numbers.

Definition at line 45 of file tls_seq_numbers.h.

45 { return m_write_seq_no++; }

◆ read_accept()

void Botan::TLS::Stream_Sequence_Numbers::read_accept ( uint64_t  )
inlineoverridevirtual

Implements Botan::TLS::Connection_Sequence_Numbers.

Definition at line 49 of file tls_seq_numbers.h.

49 { m_read_seq_no++; }

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