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,18 +1,18 @@
>>> Flow 1 (client to server)
00000000 16 03 01 00 f9 01 00 00 f5 03 03 c0 f1 8f 13 ed |................|
00000010 61 9a 75 ae 73 8d 36 f2 23 33 0c e0 7f 78 a5 d2 |a.u.s.6.#3...x..|
00000020 57 62 6c 5c 2b b7 1d aa fe db 57 20 78 df e5 41 |Wbl\+.....W x..A|
00000030 23 3f dc 1b 76 d9 dd cf a5 bf 00 8d 54 ca 0b c1 |#?..v.......T...|
00000040 69 f4 d5 2a 50 ce 27 fd 58 22 50 14 00 04 00 2f |i..*P.'.X"P..../|
00000000 16 03 01 00 f9 01 00 00 f5 03 03 d6 dc 77 de b6 |.............w..|
00000010 db d8 b9 19 e5 8a 59 88 8f ca f7 76 08 1e 41 1f |......Y....v..A.|
00000020 ed 8b 3e 54 9c 8c c4 1d 30 fa d6 20 5d 5a dc 87 |..>T....0.. ]Z..|
00000030 c6 ca 58 3c f2 df 11 66 38 25 03 a7 90 2f 30 ef |..X<...f8%.../0.|
00000040 cd 98 f5 48 70 10 ba 94 fb a3 25 58 00 04 00 2f |...Hp.....%X.../|
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 67 87 d5 79 1d 56 b8 ca 6d e2 b0 2e a7 2e c9 d7 |g..y.V..m.......|
00000090 b3 5a de 91 3b 6f 30 a7 14 af d1 b4 af 5b 9e a0 |.Z..;o0......[..|
000000a0 65 e6 fe cd d3 77 f3 88 c6 cf 52 74 28 4b a2 14 |e....w....Rt(K..|
000000b0 33 94 9a e0 60 f2 0b df c5 58 4b 56 46 52 6a 3a |3...`....XKVFRj:|
000000c0 83 15 89 c6 a9 31 83 83 ef 29 2a 9f c6 5f ba 8d |.....1...)*.._..|
000000d0 91 de 00 0d 00 20 00 1e 06 01 06 02 06 03 05 01 |..... ..........|
00000080 60 24 85 1b 46 9d 93 96 8f 27 6f bf 17 0e 2d 0d |`$..F....'o...-.|
00000090 f1 3c 3d ce 85 b5 9c 8f 3a 6a c8 b4 e2 a1 03 c9 |.<=.....:j......|
000000a0 9c 34 72 d5 7e 60 d3 f3 f6 20 d6 0f 1b b9 18 0c |.4r.~`... ......|
000000b0 33 94 71 92 ec 74 0e eb a0 f7 ec 81 b3 d2 63 90 |3.q..t........c.|
000000c0 b8 0f d9 9e d2 12 aa b5 78 06 7f 1b d3 33 fc d0 |........x....3..|
000000d0 9c 73 00 0d 00 20 00 1e 06 01 06 02 06 03 05 01 |.s... ..........|
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)
@ -59,31 +59,31 @@
00000280 b3 3e c0 d1 bd 42 d4 db fe 3d 13 60 84 5c 21 d3 |.>...B...=.`.\!.|
00000290 3b e9 fa e7 16 03 03 00 04 0e 00 00 00 |;............|
>>> Flow 3 (client to server)
00000000 16 03 03 00 86 10 00 00 82 00 80 62 1e 90 15 39 |...........b...9|
00000010 f4 61 dd 1a ae ce 4b 84 1c dc 0b c8 b6 16 6d bb |.a....K.......m.|
00000020 77 02 c3 69 02 b6 b1 9c de 1f 09 01 50 e6 3e 51 |w..i........P.>Q|
00000030 96 36 5a 6c 87 63 5f fe 8a da bd ee 01 6d a3 3e |.6Zl.c_......m.>|
00000040 ff b2 72 47 60 6d ca c3 a4 03 57 4e 1f ea 7d cc |..rG`m....WN..}.|
00000050 f7 0c 2a 06 8f a6 c6 fe 1a bb 75 81 92 5e 44 3d |..*.......u..^D=|
00000060 78 49 1e 88 79 19 8a df 79 09 2e 61 10 48 7a 60 |xI..y...y..a.Hz`|
00000070 e0 58 51 ec 33 4c b1 d0 6d ad 01 03 9f 38 21 bb |.XQ.3L..m....8!.|
00000080 8f 9d 23 c1 06 38 f3 90 dc 7f af 14 03 03 00 01 |..#..8..........|
00000090 01 16 03 03 00 40 3d 60 a9 d5 ae 59 72 dc ef 8e |.....@=`...Yr...|
000000a0 9a 77 ab 3c 8d 98 bb 5a 67 d1 2b 00 2d 97 8d af |.w.<...Zg.+.-...|
000000b0 ef 1b bb 8c 0b ce ab 2a e7 a8 0e 2a 28 83 34 5a |.......*...*(.4Z|
000000c0 00 d0 5d dc 6e 9c e3 a6 eb e7 fa 4c 7f 14 76 1f |..].n......L..v.|
000000d0 76 56 c0 61 78 d1 |vV.ax.|
00000000 16 03 03 00 86 10 00 00 82 00 80 4f e7 7f 83 54 |...........O...T|
00000010 80 1b 49 a5 7c b0 eb 3f 3b 24 74 9a 90 65 ed 2c |..I.|..?;$t..e.,|
00000020 30 13 3d 5d 26 91 b6 09 d2 22 f6 5d ed 96 c0 80 |0.=]&....".]....|
00000030 15 f5 07 87 c3 ee bf 83 19 a4 2f 09 1f dd 05 02 |........../.....|
00000040 9e 15 de 36 c4 0c ab ff 2e 6b f2 f3 dd 86 18 ea |...6.....k......|
00000050 15 8d 96 9f f9 93 26 1d 45 d4 12 c6 40 ab 09 b6 |......&.E...@...|
00000060 11 dc 74 86 49 58 ce 90 3f 84 ff 47 77 5d 20 22 |..t.IX..?..Gw] "|
00000070 90 1c d8 cc 18 83 e2 cb 58 20 54 4c 81 c2 0d 3b |........X TL...;|
00000080 2c 9a 4b 53 f0 87 61 c2 5e 61 d6 14 03 03 00 01 |,.KS..a.^a......|
00000090 01 16 03 03 00 40 c2 2e e7 31 9c 22 4b bf 84 69 |.....@...1."K..i|
000000a0 fb b9 c1 03 a9 29 93 94 86 2a 57 48 9b 1d 54 99 |.....)...*WH..T.|
000000b0 d8 89 f4 88 db 93 72 66 8f a2 03 a0 50 9f e0 a4 |......rf....P...|
000000c0 12 38 83 7d c3 89 20 e4 04 18 82 5a bf 96 19 2d |.8.}.. ....Z...-|
000000d0 dc 6a 81 12 e4 cf |.j....|
>>> Flow 4 (server to client)
00000000 14 03 03 00 01 01 16 03 03 00 40 00 00 00 00 00 |..........@.....|
00000010 00 00 00 00 00 00 00 00 00 00 00 89 71 57 1b 74 |............qW.t|
00000020 93 38 ff 69 12 59 5a 24 3c 47 67 96 f6 4f 2d 0f |.8.i.YZ$<Gg..O-.|
00000030 dc 00 d0 1e 43 78 19 7e b0 79 73 19 c6 67 43 94 |....Cx.~.ys..gC.|
00000040 cb 66 2c 75 d8 54 90 62 33 5a 21 17 03 03 00 40 |.f,u.T.b3Z!....@|
00000010 00 00 00 00 00 00 00 00 00 00 00 8f 66 fd 10 60 |............f..`|
00000020 f0 28 41 5b 3a 14 9c d6 ba d9 a1 9d 94 20 11 85 |.(A[:........ ..|
00000030 db 8d 87 00 bb 90 2a 42 68 3d 14 ba b2 ae 25 ca |......*Bh=....%.|
00000040 1a 68 3d e8 45 95 52 0f c1 5c cd 17 03 03 00 40 |.h=.E.R..\.....@|
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000060 8d 20 2f 9e b8 84 fc 5c 4b 3d 95 eb 4b 02 db 7f |. /....\K=..K...|
00000070 2b 66 1a 46 d0 2e 3e e8 18 58 c0 1f 37 ad db da |+f.F..>..X..7...|
00000080 78 5d ec eb 8a 39 2c 9d e9 2e 37 ba 34 53 92 d3 |x]...9,...7.4S..|
00000060 62 6a 19 3d 6e b6 c5 fc 9a a2 e9 f8 b2 23 6c ce |bj.=n........#l.|
00000070 66 4b e2 c0 b1 72 d7 16 43 19 05 a4 b4 75 01 15 |fK...r..C....u..|
00000080 93 54 20 37 8e 62 02 5a 0c 68 bc 3c c3 0b d7 37 |.T 7.b.Z.h.<...7|
00000090 15 03 03 00 30 00 00 00 00 00 00 00 00 00 00 00 |....0...........|
000000a0 00 00 00 00 00 0b fb 0f fc f1 36 24 05 99 aa bb |..........6$....|
000000b0 e6 b2 be cd e9 f1 8a 4b bb 94 67 6d 87 4e 98 0e |.......K..gm.N..|
000000c0 a2 9e 46 2e 8b |..F..|
000000a0 00 00 00 00 00 a2 33 5f d7 0a 20 20 f6 d1 59 6a |......3_.. ..Yj|
000000b0 3e 40 15 da 8f 9f b3 98 63 85 18 46 24 45 40 94 |>@......c..F$E@.|
000000c0 c8 c6 5e d5 fc |..^..|