OpenTTD Source
20241108-master-g80f628063a
|
Container for a X25519 secret key. More...
#include <network_crypto_internal.h>
Public Member Functions | |
X25519PublicKey | CreatePublicKey () const |
Create the public key associated with this secret key. More... | |
Public Member Functions inherited from X25519Key | |
~X25519Key () | |
Ensure the key does not get leaked when we're done with it. | |
Static Public Member Functions | |
static X25519SecretKey | CreateRandom () |
Create a new secret key that's filled with random bytes. More... | |
Container for a X25519 secret key.
Definition at line 34 of file network_crypto_internal.h.
X25519PublicKey X25519SecretKey::CreatePublicKey | ( | ) | const |
Create the public key associated with this secret key.
Definition at line 156 of file network_crypto.cpp.
|
static |
Create a new secret key that's filled with random bytes.
Definition at line 145 of file network_crypto.cpp.
References RandomBytesWithFallback().
Referenced by NetworkAuthenticationServerHandler::Create(), and X25519AuthorizedKeyClientHandler::GetValidSecretKeyAndUpdatePublicKey().