MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ClientToServer

Method ClientToServer

src/network/network_crypto.cpp:41–44  ·  view source on GitHub ↗

* Get the key to encrypt or decrypt a message sent from the client to the server. * @return The raw bytes of the key. */

Source from the content-addressed store, hash-verified

39 * @return The raw bytes of the key.
40 */
41std::span<const uint8_t> X25519DerivedKeys::ClientToServer() const
42{
43 return std::span(this->keys.data(), X25519_KEY_SIZE);
44}
45
46/**
47 * Get the key to encrypt or decrypt a message sent from the server to the client.

Callers 3

SendResponseMethod · 0.80
ReceiveResponseMethod · 0.80

Calls 2

spanClass · 0.85
dataMethod · 0.45

Tested by

no test coverage detected