Subject: [quicwg/base-drafts] Clarify header protection sampling (#4404)

From: Paul Mabileau <[email-masked]>
Date: Sat, 21 Nov 2020 12:52:25 -0800

Hello gentlemen!

The header protection sampling (HPS) is quite simple, as it is just selecting 16 bytes out of the encrypted payload, but we think the current description is really confusing.

Indeed, section 5.4.2 explains the process with pseudocodes computing an offset relative to the beginning of an entire packet which payload is the encrypted one. However, when applying the AEAD function, one cannot do it in-place, so additional allocation must be reserved in any case. Therefore, one most probably has access to the encrypted payload separately from the unprotected packet, headers and payload.

Thus, this PR proposes two things, split in different commits:
 * Clearly and explicitly specify the two already-existing pseudocodes sample from an entire packet.
 * Add another pseudocode explaining how the sampling can be achieved for both short-header and long-header packets.

We have not changed or removed any existing content however, as we believe this draft could use some more explanations and clarifications here and there, rather than less with confusing elements, even if it means a bit of duplication.

Please tell us if there is any form of typo, wrong wording, grammatical issue or just general mistake, especially concerning the new pseudocode.

Hope this helps.
Cheers,
Paul.
You can view, comment on, or merge this pull request online at:

  https://github.com/quicwg/base-drafts/pull/4404

-- Commit Summary --

  * Add paragraph explaining `packet` in 5.4.2 HPS
  * Add pseudocode explaining HPS relative to ciphertext

-- File Changes --

    M draft-ietf-quic-tls.md (19)

-- Patch Links --

https://github.com/quicwg/base-drafts/pull/4404.patch
https://github.com/quicwg/base-drafts/pull/4404.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/quicwg/base-drafts/pull/4404