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

Method Decrypt

src/network/network_crypto.cpp:124–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 }
123
124 bool Decrypt(std::span<std::uint8_t> mac, std::span<std::uint8_t> message) override
125 {
126 return crypto_aead_read(&this->context, message.data(), mac.data(), nullptr, 0, message.data(), message.size()) == 0;
127 }
128
129 void Encrypt(std::span<std::uint8_t> mac, std::span<std::uint8_t> message) override
130 {

Callers 1

PrepareToReadMethod · 0.80

Calls 3

crypto_aead_readFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected