Skip to content

Commit

Permalink
Fix a problem with the encoded labels.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpaulo committed Nov 20, 2018
1 parent f33b308 commit 14c807f
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions draft-ietf-quic-tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -1267,53 +1267,53 @@ derived 32 byte initial secret is:
The labels generated by the HKDF-Expand-Label function are:

~~~
quic client in: 00 20 0e 71 75 69 63 20 63 6c 69 65 6e 74 20
69 6e
quic client in: 00 20 0e 71 75 69 63 20 63 6c 69 65 6e 74 20 69
6e 00

quic server in: 00 20 0e 71 75 69 63 20 73 65 72 76 65 72 20
69 6e
quic server in: 00 20 0e 71 75 69 63 20 73 65 72 76 65 72 20 69
6e 00

quic key: 00 10 08 71 75 69 63 20 6b 65 79
quic key: 00 10 08 71 75 69 63 20 6b 65 79 00

quic iv: 00 0c 07 71 75 69 63 20 69 76
quic iv: 00 0c 07 71 75 69 63 20 69 76 00

quic pn: 00 10 07 71 75 69 63 20 70 6e
quic pn: 00 10 07 71 75 69 63 20 70 6e 00
~~~

The client initial secret is 32 bytes long:

~~~
37 2c 95 89 52 fd 99 c5 76 85 b8 3c 72 ac 15 f0
80 a3 69 eb ec c6 8f 26 eb d7 61 4c b3 76 06 13
9f 53 64 57 f3 2a 1e 0a e8 64 bc b3 ca f1 23 51
10 63 0e 1d 1f b3 38 35 bd 05 41 70 f9 9b f7 dc
~~~

Using this secret, we get the following keys (16 bytes) and
initialization vector (12 bytes):

~~~
key: e4 7c 2f 2c e2 c1 45 14 16 a9 34 90 ea fb 50 9c
key: f2 92 8f 26 14 ad 6c 20 b9 bd 00 8e 9c 89 63 1c

pn key: 02 52 be 17 90 16 69 06 71 33 de 18 e6 39 4e 68
pn key: 68 c3 f6 4e 2d 66 34 41 2b 8e 32 94 62 8d 76 f1

IV: d9 9f 59 69 9e 3c 32 9a f1 95 06 52
IV: ab 95 0b 01 98 63 79 78 cf 44 aa b9
~~~

The server initial secret is 32 bytes long:

~~~
f2 41 f2 57 2e fe ee 53 ca 69 0c e5 b2 85 ab 34
e9 39 e8 fe 98 d7 14 6b b9 fc 78 e9 9a 1b 41 ab
b0 87 dc d7 47 8d da 8a 85 8f bf 3d 60 5c 88 85
86 c0 a3 a9 87 54 23 ad 4f 11 4f 0b a3 8e 5a 2e
~~~

Using this secret, we get the following keys (16 bytes) and
initialization vector (12 bytes):

~~~
key: 99 ff fd 2c 3e 4a cd ae 3d 32 02 1c 75 38 86 c0
key: f5 68 17 d0 fc 59 5c fc 0a 2b 0b cf b1 87 35 ec

pn key: 14 c2 70 2b 54 48 80 d3 9d ab d7 dd c8 eb cd 9a
pn key: a3 13 c8 6d 13 73 ec bc cb 32 94 b1 49 74 22 6c

IV: 27 92 24 e5 85 fd 84 e9 e0 70 ea 9a
IV: 32 05 03 5a 3c 93 7c 90 2e e4 f4 d6
~~~


Expand Down

0 comments on commit 14c807f

Please sign in to comment.