OpenTTD Source 20241224-master-gee860a5c8e
|
Container for a X25519 nonce that is automatically crypto-wiped when destructed. More...
#include <network_crypto_internal.h>
Public Member Functions | |
~X25519Nonce () | |
Ensure the nonce does not get leaked when we're done with it. | |
Static Public Member Functions | |
static X25519Nonce | CreateRandom () |
Create a new nonce that's filled with random bytes. | |
Container for a X25519 nonce that is automatically crypto-wiped when destructed.
Definition at line 40 of file network_crypto_internal.h.
X25519Nonce::~X25519Nonce | ( | ) |
Ensure the nonce does not get leaked when we're done with it.
Definition at line 175 of file network_crypto.cpp.
References crypto_wipe().
|
static |
Create a new nonce that's filled with random bytes.
Definition at line 167 of file network_crypto.cpp.
References RandomBytesWithFallback().