Network System 0.1.1
High-performance modular networking library for scalable client-server applications
Loading...
Searching...
No Matches
kcenon::network::protocols::quic::key_pair Struct Reference

A pair of read and write keys for bidirectional communication. More...

#include <keys.h>

Collaboration diagram for kcenon::network::protocols::quic::key_pair:
Collaboration graph

Public Member Functions

auto is_valid () const noexcept -> bool
 Check if both read and write keys are valid.
 
void clear () noexcept
 Clear all key material securely.
 

Public Attributes

quic_keys read
 Keys for decrypting received packets.
 
quic_keys write
 Keys for encrypting outgoing packets.
 

Detailed Description

A pair of read and write keys for bidirectional communication.

Definition at line 133 of file keys.h.

Member Function Documentation

◆ clear()

void kcenon::network::protocols::quic::key_pair::clear ( )
noexcept

Clear all key material securely.

Definition at line 70 of file keys.cpp.

71{
72 read.clear();
73 write.clear();
74}
quic_keys read
Keys for decrypting received packets.
Definition keys.h:135
quic_keys write
Keys for encrypting outgoing packets.
Definition keys.h:136
void clear() noexcept
Clear all key material securely.
Definition keys.cpp:36

References kcenon::network::protocols::quic::quic_keys::clear(), read, and write.

Here is the call graph for this function:

◆ is_valid()

auto kcenon::network::protocols::quic::key_pair::is_valid ( ) const -> bool
nodiscardnoexcept

Check if both read and write keys are valid.

Definition at line 65 of file keys.cpp.

66{
67 return read.is_valid() && write.is_valid();
68}
auto is_valid() const noexcept -> bool
Check if keys are initialized (non-zero)
Definition keys.cpp:30

References kcenon::network::protocols::quic::quic_keys::is_valid(), read, and write.

Here is the call graph for this function:

Member Data Documentation

◆ read

quic_keys kcenon::network::protocols::quic::key_pair::read

Keys for decrypting received packets.

Definition at line 135 of file keys.h.

Referenced by clear(), kcenon::network::protocols::quic::initial_keys::derive(), and is_valid().

◆ write

quic_keys kcenon::network::protocols::quic::key_pair::write

Keys for encrypting outgoing packets.

Definition at line 136 of file keys.h.

Referenced by clear(), kcenon::network::protocols::quic::initial_keys::derive(), and is_valid().


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