I suppose an Assume
in APP
may or may not be future proof, because it depends on how AADs will be used: do we know what to expect for the next message (as is the case here for garbage), do we infer it from the current message, is it some time dependent thing or even a constant?
Well, if we ever have a v3 that uses AAD for more than the garbage, we could drop the Assume
, so I guess that’s not a big deal.
On the other hand, I don’t see that much value in adding an Assume
. The sender and receiver code are sufficiently independent. So unless we have the exact same bug in the sender logic, a bug in the receiver logic that leads to m_recv_aad
being non-empty would lead to an immediate disconnect. That is, such a bug will certainly be noticed during testing, even without the Assume
. (The Assume
would just make it easier to find the cause.)
My current thinking is that I don’t want to touch the PR now that it has three ACKs. But I’ll add an Assume
if there’s another good reason to touch it (or if you have strong opinions on this, of course.)