diff options
author | Tim Ruffing <crypto@timruffing.de> | 2023-09-26 13:26:27 +0200 |
---|---|---|
committer | Tim Ruffing <crypto@timruffing.de> | 2023-09-27 12:19:54 +0200 |
commit | e3720bca398820038b3e97f467adb2c45ef9ef5f (patch) | |
tree | 682817ecf08ced05701347f27f67eab91fdf7653 /src/net.h | |
parent | b0f5175c044df956c0f07f540706d457c4912856 (diff) |
net: Simplify v2 recv logic by decoupling AAD from state machine
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -578,8 +578,8 @@ private: uint32_t m_recv_len GUARDED_BY(m_recv_mutex) {0}; /** Receive buffer; meaning is determined by m_recv_state. */ std::vector<uint8_t> m_recv_buffer GUARDED_BY(m_recv_mutex); - /** During VERSION, the garbage received during GARB_GARBTERM. */ - std::vector<uint8_t> m_recv_garbage GUARDED_BY(m_recv_mutex); + /** AAD expected in next received packet (currently used only for garbage). */ + std::vector<uint8_t> m_recv_aad GUARDED_BY(m_recv_mutex); /** Buffer to put decrypted contents in, for converting to CNetMessage. */ std::vector<uint8_t> m_recv_decode_buffer GUARDED_BY(m_recv_mutex); /** Deserialization type. */ |