aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/sha256.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2023-09-08 13:55:47 -0400
committerPieter Wuille <pieter@wuille.net>2023-09-10 16:12:27 -0400
commit9bde93df2c84b6d5f333aa56cbd0b28b6ad337b0 (patch)
tree45de45e54ee709645a0752419188ce5fa970c16a /src/crypto/sha256.cpp
parentb6934fd03f080d437acb1fd2b665503c3d6de785 (diff)
net: do not use send buffer to store/cache garbage
Before this commit the V2Transport::m_send_buffer is used to store the garbage: * During MAYBE_V1 state, it's there despite not being sent. * During AWAITING_KEY state, while it is being sent. * At the end of the AWAITING_KEY state it cannot be wiped as it's still needed to compute the garbage authentication packet. Change this by introducing a separate m_send_garbage field, taking over the first and last role listed above. This means the garbage is only in the send buffer when it's actually being sent, removing a few special cases related to this.
Diffstat (limited to 'src/crypto/sha256.cpp')
0 files changed, 0 insertions, 0 deletions