OpenTTD Source  20240919-master-gdf0233f4c2
network_crypto.cpp File Reference
#include "../stdafx.h"
#include "network_crypto_internal.h"
#include "core/packet.h"
#include "../3rdparty/monocypher/monocypher.h"
#include "../core/random_func.hpp"
#include "../debug.h"
#include "../string_func.h"
#include "../safeguards.h"

Go to the source code of this file.

Data Structures

class  X25519EncryptionHandler
 Encryption handler implementation for monocypther encryption after a X25519 key exchange. More...
 

Functions

static void crypto_wipe (std::span< uint8_t > span)
 Call crypto_wipe for all the data in the given span. More...
 

Detailed Description

Implementation of the network specific cryptography helpers.

Definition in file network_crypto.cpp.

Function Documentation

◆ crypto_wipe()

static void crypto_wipe ( std::span< uint8_t >  span)
static

Call crypto_wipe for all the data in the given span.

Parameters
spanThe span to cryptographically wipe.

Definition at line 26 of file network_crypto.cpp.

Referenced by X25519DerivedKeys::~X25519DerivedKeys(), X25519EncryptionHandler::~X25519EncryptionHandler(), X25519Key::~X25519Key(), and X25519Nonce::~X25519Nonce().