GrumpyOldTroll / draft-jholland-quic-multicast

Work in progress to propose a multicast extension to quic.
Other
7 stars 6 forks source link

Encrypt-then-mac is recommended #52

Closed GrumpyOldTroll closed 2 years ago

GrumpyOldTroll commented 2 years ago

From @squarooticus: § 7.1 is going to trigger some folks who have ETM (encrypt-then-mac) on the brain to avoid leaking information, so some reassurance that the packet hashes are in the encrypted stream would probably suffice to prevent this reaction.

Response from Jake:

I guess the flow here if the hash is on the encrypted packet is:

  1. hash the packet with the channel's hash algorithm
  2. decrypt the packet (or at least the header) so you have the packet number
  3. check the hash, reject if it doesn't match
  4. parse the packet and accept it (provided it doesn't trigger protocol errors, etc.)

Would that work better?