crypto/tls: enable X25519 by default.

Since this changes the offered curves in the ClientHello, all the test
data needs to be updated too.

Change-Id: I227934711104349c0f0eab11d854e5a2adcbc363
Reviewed-on: https://go-review.googlesource.com/30825
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Adam Langley 2016-10-11 15:08:35 -07:00
parent 6bcda018f7
commit 46e9439117
63 changed files with 2757 additions and 2875 deletions

View file

@ -1,44 +1,44 @@
>>> Flow 1 (client to server)
00000000 16 03 01 00 f9 01 00 00 f5 03 03 87 90 a5 92 ea |................|
00000010 48 25 c2 91 01 8a e4 bb 16 2d d3 8c b7 e9 a3 9a |H%.......-......|
00000020 6d e1 6f b4 11 f3 9b 61 c9 03 cf 20 d9 a8 04 8f |m.o....a... ....|
00000030 3b f8 1c 73 d8 4b 55 40 43 95 26 1f ed 67 cc 18 |;..s.KU@C.&..g..|
00000040 0d 8f e8 d4 ab 1a 2e 53 d0 e6 89 d8 00 04 00 2f |.......S......./|
00000000 16 03 01 00 f9 01 00 00 f5 03 03 a5 54 3e b4 52 |............T>.R|
00000010 e5 0f 00 26 8b b6 97 99 3d 32 64 42 6c 97 f8 0c |...&....=2dBl...|
00000020 46 10 42 83 bb d1 d3 a0 70 58 4e 20 0b ef 27 4e |F.B.....pXN ..'N|
00000030 90 45 03 73 c9 18 0f 5b 25 77 c9 5d ca 77 2c fb |.E.s...[%w.].w,.|
00000040 4f 0e d1 a3 dc 76 4d d6 97 70 ab a6 00 04 00 2f |O....vM..p...../|
00000050 00 ff 01 00 00 a8 00 23 00 78 50 46 ad c1 db a8 |.......#.xPF....|
00000060 38 86 7b 2b bb fd d0 c3 42 3e 00 00 00 00 00 00 |8.{+....B>......|
00000070 00 00 00 00 00 00 00 00 00 00 94 6f 2c 9f 83 61 |...........o,..a|
00000080 ba 85 c2 4f 82 f7 76 6c 2f 9d 4c 16 0e 46 88 f4 |...O..vl/.L..F..|
00000090 1b 1b 35 62 9c c7 e6 0e 44 a4 62 8c 1e 2d 53 f3 |..5b....D.b..-S.|
000000a0 8b cd a6 ca dc 12 52 b4 43 a9 d0 16 4c 9a f7 a6 |......R.C...L...|
000000b0 33 94 f7 58 26 2b 75 74 62 e3 11 dc f6 40 b0 ab |3..X&+utb....@..|
000000c0 32 8b 79 63 d1 7e d8 9f db cf cf 25 29 ea e9 89 |2.yc.~.....%)...|
000000d0 43 39 00 0d 00 20 00 1e 06 01 06 02 06 03 05 01 |C9... ..........|
00000080 f0 a9 9a d5 65 c7 25 32 9d 86 4e fb 8e 2a dd 84 |....e.%2..N..*..|
00000090 8d 32 6d 6b f0 a9 de 59 fa 15 20 7a 85 cd 2e 42 |.2mk...Y.. z...B|
000000a0 e1 f3 44 62 6c 24 24 e7 1f b6 fa 4d 8a cd 30 83 |..Dbl$$....M..0.|
000000b0 33 94 65 b6 e2 01 d8 fb a0 37 ca 87 59 a4 29 cf |3.e......7..Y.).|
000000c0 d9 85 7c 54 2f 2d 5d 73 69 9a ae 6f 85 29 8b c3 |..|T/-]si..o.)..|
000000d0 eb 97 00 0d 00 20 00 1e 06 01 06 02 06 03 05 01 |..... ..........|
000000e0 05 02 05 03 04 01 04 02 04 03 03 01 03 02 03 03 |................|
000000f0 02 01 02 02 02 03 00 16 00 00 00 17 00 00 |..............|
>>> Flow 2 (server to client)
00000000 16 03 03 00 51 02 00 00 4d 03 03 00 00 00 00 00 |....Q...M.......|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020 00 00 00 00 00 00 00 00 00 00 00 20 d9 a8 04 8f |........... ....|
00000030 3b f8 1c 73 d8 4b 55 40 43 95 26 1f ed 67 cc 18 |;..s.KU@C.&..g..|
00000040 0d 8f e8 d4 ab 1a 2e 53 d0 e6 89 d8 00 2f 00 00 |.......S...../..|
00000020 00 00 00 00 00 00 00 00 00 00 00 20 0b ef 27 4e |........... ..'N|
00000030 90 45 03 73 c9 18 0f 5b 25 77 c9 5d ca 77 2c fb |.E.s...[%w.].w,.|
00000040 4f 0e d1 a3 dc 76 4d d6 97 70 ab a6 00 2f 00 00 |O....vM..p.../..|
00000050 05 ff 01 00 01 00 14 03 03 00 01 01 16 03 03 00 |................|
00000060 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |@...............|
00000070 00 31 1c ed f9 93 71 b9 b1 52 b7 8c d2 cc 1c ea |.1....q..R......|
00000080 2b bb c3 56 88 d4 40 ff 71 d4 33 4b 1a 17 6e ab |+..V..@.q.3K..n.|
00000090 70 78 3f 87 bf cd 8c 67 91 a0 17 d7 ee 16 37 68 |px?....g......7h|
000000a0 5b |[|
00000070 00 a1 cc 3b 14 4e 15 da e3 6f 67 2a 4b 28 1e 4f |...;.N...og*K(.O|
00000080 a6 e3 bc fd ae 38 e3 31 6f 65 78 2b 3d c5 c7 bf |.....8.1oex+=...|
00000090 1a ff 10 a1 b1 cd 1e 0e 54 a8 9c 89 86 ab 76 46 |........T.....vF|
000000a0 3e |>|
>>> Flow 3 (client to server)
00000000 14 03 03 00 01 01 16 03 03 00 40 a5 40 0c 73 e9 |..........@.@.s.|
00000010 c5 b5 65 d6 1c a7 17 c4 9b 3f 1a 6d e1 02 c4 b0 |..e......?.m....|
00000020 27 9b ab 24 d5 68 d3 98 3e 06 13 c3 d9 a7 b9 07 |'..$.h..>.......|
00000030 fb fa fa 1b ba 41 b4 26 94 ba e7 5c a3 bf ae b7 |.....A.&...\....|
00000040 69 f9 55 71 bd 04 97 04 0c fc 96 |i.Uq.......|
00000000 14 03 03 00 01 01 16 03 03 00 40 9b 58 5e e3 6d |..........@.X^.m|
00000010 aa 65 b6 82 e4 60 bd 74 92 11 99 88 03 14 bf b4 |.e...`.t........|
00000020 24 e8 2f 89 ff 9b e4 b5 ca 2e b5 cf a0 56 b0 23 |$./..........V.#|
00000030 96 d7 92 40 83 f8 fa fd 7a 11 6d 8d 1a 29 59 75 |...@....z.m..)Yu|
00000040 88 b8 54 23 d0 01 ef 67 40 c0 41 |..T#...g@.A|
>>> Flow 4 (server to client)
00000000 17 03 03 00 40 00 00 00 00 00 00 00 00 00 00 00 |....@...........|
00000010 00 00 00 00 00 fc f8 67 97 50 34 a5 05 b2 f0 ea |.......g.P4.....|
00000020 77 5c bb 63 78 79 a4 a0 58 37 3b ae 96 9a c5 16 |w\.cxy..X7;.....|
00000030 82 9c b0 4b 02 27 01 0d c9 ac e0 f5 3d d6 32 f7 |...K.'......=.2.|
00000040 df 41 68 b0 38 15 03 03 00 30 00 00 00 00 00 00 |.Ah.8....0......|
00000050 00 00 00 00 00 00 00 00 00 00 ea 57 3b c1 9f f4 |...........W;...|
00000060 79 d7 76 f0 d6 1c 9d cd 0e 5a 2a 98 29 36 96 47 |y.v......Z*.)6.G|
00000070 4e 9c 76 ef 4c 69 c1 e3 4b b3 |N.v.Li..K.|
00000010 00 00 00 00 00 a2 64 88 a2 a3 a9 ca 7a ba 88 8d |......d.....z...|
00000020 19 b2 8a 34 5b 72 9e 4e 69 81 e6 65 00 04 49 ac |...4[r.Ni..e..I.|
00000030 9f 64 8b 97 32 1c c2 cb b6 29 be b9 4b e0 b6 0b |.d..2....)..K...|
00000040 4e 54 ad 2a c5 15 03 03 00 30 00 00 00 00 00 00 |NT.*.....0......|
00000050 00 00 00 00 00 00 00 00 00 00 1d 78 fa 81 56 36 |...........x..V6|
00000060 98 ec b2 f8 3c b8 60 8b 1a c7 92 86 02 c3 bd b6 |....<.`.........|
00000070 0b 01 78 c9 41 2a 16 a2 fe 0d |..x.A*....|