Botan 3.6.1
Crypto and TLS for C&
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
 
void reset () override
 
 Stream_Sequence_Numbers ()
 

Detailed Description

Definition at line 35 of file tls_seq_numbers.h.

Constructor & Destructor Documentation

◆ Stream_Sequence_Numbers()

Botan::TLS::Stream_Sequence_Numbers::Stream_Sequence_Numbers ( )
inline

Definition at line 37 of file tls_seq_numbers.h.

References reset().

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 64 of file tls_seq_numbers.h.

64{ 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 56 of file tls_seq_numbers.h.

56{ 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 58 of file tls_seq_numbers.h.

58{ 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 46 of file tls_seq_numbers.h.

46 {
47 m_read_seq_no = 0;
48 m_read_epoch++;
49 }

◆ new_write_cipher_state()

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

Implements Botan::TLS::Connection_Sequence_Numbers.

Definition at line 51 of file tls_seq_numbers.h.

51 {
52 m_write_seq_no = 0;
53 m_write_epoch++;
54 }

◆ next_read_sequence()

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

Implements Botan::TLS::Connection_Sequence_Numbers.

Definition at line 62 of file tls_seq_numbers.h.

62{ 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 60 of file tls_seq_numbers.h.

60{ 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 66 of file tls_seq_numbers.h.

66{ m_read_seq_no++; }

◆ reset()

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

Implements Botan::TLS::Connection_Sequence_Numbers.

Definition at line 39 of file tls_seq_numbers.h.

39 {
40 m_write_seq_no = 0;
41 m_read_seq_no = 0;
42 m_read_epoch = 0;
43 m_write_epoch = 0;
44 }

Referenced by Stream_Sequence_Numbers().


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