Skip to content

Commit

Permalink
Duplicate sample calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
martinthomson committed Nov 18, 2018
1 parent 7e74188 commit c7ef43a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions draft-ietf-quic-tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,10 @@ sample_offset = 6 + len(destination_connection_id) +
if packet_type == Initial:
sample_offset += len(token_length) +
len(token)

if sample_offset + sample_length > packet_length then
sample_offset = packet_length - sample_length
sample = packet[sample_offset..sample_offset+sample_length]
~~~

To ensure that this process does not sample the packet number, header protection
Expand Down

0 comments on commit c7ef43a

Please sign in to comment.