tls: format and send CLIENT_KEY_EXCHANGE
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 14 Jan 2017 23:12:42 +0000 (00:12 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 14 Jan 2017 23:12:42 +0000 (00:12 +0100)
commit11d0096516c0d5395729caba5dfd940a10a6e20c
tree035f3f0461a42b42421df48c9479bdc1549c1c09
parent2a17d1fc9bdcbc97d48dd08a9fa4941da25187fd
tls: format and send CLIENT_KEY_EXCHANGE

$ ./busybox tls kernel.org
insize:0 tail:0
got block len:74
got HANDSHAKE
got SERVER_HELLO
insize:79 tail:4265
got block len:4392
got HANDSHAKE
got CERTIFICATE
entered der @0x8b217a7:0x30 len:1452 inner_byte @0x8b217ab:0x30
entered der @0x8b217ab:0x30 len:1172 inner_byte @0x8b217af:0xa0
skipped der 0xa0, next byte 0x02
skipped der 0x02, next byte 0x30
skipped der 0x30, next byte 0x30
skipped der 0x30, next byte 0x30
skipped der 0x30, next byte 0x30
skipped der 0x30, next byte 0x30
entered der @0x8b218b4:0x30 len:418 inner_byte @0x8b218b8:0x30
skipped der 0x30, next byte 0x03
entered der @0x8b218c7:0x03 len:399 inner_byte @0x8b218cb:0x00
key bytes:399, first:0x00
entered der @0x8b218cc:0x30 len:394 inner_byte @0x8b218d0:0x02
binary bytes:385, first:0x00
skipped der 0x02, next byte 0x02
binary bytes:3, first:0x01
server_rsa_pub_key.size:384
insize:4397 tail:9
got block len:4
got SERVER_HELLO_DONE
insize:9 tail:0
^C

Next step: send CHANGE_CIPHER_SPEC... and actually implement it.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/tls.c
networking/tls.h [new file with mode: 0644]
networking/tls_pstm.c [new file with mode: 0644]
networking/tls_pstm.h [new file with mode: 0644]
networking/tls_pstm_montgomery_reduce.c [new file with mode: 0644]
networking/tls_pstm_mul_comba.c [new file with mode: 0644]
networking/tls_pstm_sqr_comba.c [new file with mode: 0644]
networking/tls_rsa.c [new file with mode: 0644]
networking/tls_rsa.h [new file with mode: 0644]