busybox/networking
Denys Vlasenko b5dfc3dfd6 tls: teach it to send AES256-encrypted data
>> CLIENT_HELLO
wrote 50 bytes
insize:0 tail:0
got block len:74
got HANDSHAKE
<< SERVER_HELLO
insize:79 tail:0
got block len:2397
got HANDSHAKE
<< CERTIFICATE
key bytes:271, first:0x00
server_rsa_pub_key.size:256
insize:2402 tail:0
got block len:4
got HANDSHAKE
<< SERVER_HELLO_DONE
>> CLIENT_KEY_EXCHANGE
wrote 267 bytes
master secret:c51df5b1e3b3f57373cdd8ea28e8ce562059636cf9f585d0b89c7f4bacec97e674d7b91f93e7b500cb64637f240c3b78
client_write_MAC_key:3b0b7e2bab241b629c37eb3a3824f09b39fe71a00876b0c8026dda16ef0d2f82
client_write_key:d36e801470ed2f0a8fc886ac25df57ffbe4265d06e3192122c4ef4df1e32fab2
>> CHANGE_CIPHER_SPEC
from secret: c51df5b1e3b3f57373cdd8ea28e8ce562059636cf9f585d0b89c7f4bacec97e674d7b91f93e7b500cb64637f240c3b78
from labelSeed: 636c69656e742066696e6973686564b22e0e6008b8ee218cc02e4a93e4a42b570535f9b57662e262d43b379d125b69
=> digest: a45bfee8ed6507a2a9920d0c
>> FINISHED
before crypt: 5 hdr + 16 data + 32 hash bytes
writing 5 + 16 IV + 64 encrypted bytes, padding_length:0x0f
wrote 85 bytes
insize:9 tail:0
got block len:1
<< CHANGE_CIPHER_SPEC
insize:6 tail:0
got block len:80
< hdr_type:22 ver:3.3 len:80 type:21 len24:9541723 |1591985b...a3da|

The last line is the server's FINISHED response, encrypted.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2017-01-18 20:37:24 +01:00
..
libiproute fix breakage found by mass one-applet builds 2016-12-23 02:42:26 +01:00
ssl_helper networking/ssl_helper: experimental matrixssl-based ssl helper 2014-02-23 23:31:13 +01:00
ssl_helper-wolfssl Update information on building httpd and wget helpers 2016-12-22 15:13:37 +01:00
udhcp Big cleanup in config help and description 2017-01-10 14:58:54 +01:00
arp.c Convert all networking/* applets to "new style" applet definitions 2016-11-23 09:05:14 +01:00
arping.c Convert all networking/* applets to "new style" applet definitions 2016-11-23 09:05:14 +01:00
brctl.c Convert all networking/* applets to "new style" applet definitions 2016-11-23 09:05:14 +01:00
Config.src Fix dependency for IFUPDOWN_UDHCPC_CMD_OPTIONS 2017-01-03 12:29:52 +01:00
dnsd.c Convert all networking/* applets to "new style" applet definitions 2016-11-23 09:05:14 +01:00
ether-wake.c Convert all networking/* applets to "new style" applet definitions 2016-11-23 09:05:14 +01:00
ftpd.c Big cleanup in config help and description 2017-01-10 14:58:54 +01:00
ftpgetput.c Big cleanup in config help and description 2017-01-10 14:58:54 +01:00
hostname.c dnsdomainname: split it from "hostname", make it independently selectable 2016-11-13 22:35:10 +01:00
httpd_helpers.sh Update information on building httpd and wget helpers 2016-12-22 15:13:37 +01:00
httpd_indexcgi.c httpd_indexcgi.c: fix compile failure 2012-09-03 12:20:10 +02:00
httpd_post_upload.cgi Make POST upload example script easier to use 2016-12-22 15:33:11 +01:00
httpd_ssi.c whitespace fixes. no code changes 2013-01-14 01:34:48 +01:00
httpd.c Big cleanup in config help and description 2017-01-10 14:58:54 +01:00
ifconfig.c Convert all networking/* applets to "new style" applet definitions 2016-11-23 09:05:14 +01:00
ifenslave.c Convert all networking/* applets to "new style" applet definitions 2016-11-23 09:05:14 +01:00
ifplugd.c Convert all networking/* applets to "new style" applet definitions 2016-11-23 09:05:14 +01:00
ifupdown.c Big cleanup in config help and description 2017-01-10 14:58:54 +01:00
inetd.c Convert all networking/* applets to "new style" applet definitions 2016-11-23 09:05:14 +01:00
interface.c Code style fixes, no code changes 2016-11-28 01:22:57 +01:00
ip.c ip: make ip aliases individually selectable 2016-12-22 22:30:13 +01:00
ipcalc.c Big cleanup in config help and description 2017-01-10 14:58:54 +01:00
isrv_identd.c Convert all networking/* applets to "new style" applet definitions 2016-11-23 09:05:14 +01:00
isrv.c libbb: introduce kernel-style BUILD_BUG_ON() 2015-10-13 14:50:20 +02:00
isrv.h fixlet for the previous commit #2 2014-01-09 20:09:43 +01:00
Kbuild.src Convert all networking/* applets to "new style" applet definitions 2016-11-23 09:05:14 +01:00
nameif.c Convert all networking/* applets to "new style" applet definitions 2016-11-23 09:05:14 +01:00
nbd-client.c *: more BUILD_BUG_ON conversions 2015-10-13 17:17:34 +02:00
nc_bloaty.c getopt32: add new syntax of 'o:+' and 'o:*' for -o NUM and -o LIST 2016-07-06 21:58:02 +02:00
nc.c Convert all networking/* applets to "new style" applet definitions 2016-11-23 09:05:14 +01:00
netstat.c Big cleanup in config help and description 2017-01-10 14:58:54 +01:00
nslookup.c Convert all networking/* applets to "new style" applet definitions 2016-11-23 09:05:14 +01:00
ntpd.c ntpd: improve postponed hostname resolution 2017-01-06 16:21:09 +01:00
ntpd.diff ntpd: add experimental patch 2016-03-04 07:36:04 +01:00
ping.c Make ping6 and traceroute6 selectable independently from ping/traceroute 2016-11-23 09:25:57 +01:00
pscan.c Convert all networking/* applets to "new style" applet definitions 2016-11-23 09:05:14 +01:00
route.c Convert all networking/* applets to "new style" applet definitions 2016-11-23 09:05:14 +01:00
slattach.c Convert all networking/* applets to "new style" applet definitions 2016-11-23 09:05:14 +01:00
tc.c Code style fixes, no code changes 2016-11-28 01:22:57 +01:00
tcpudp_perhost.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
tcpudp_perhost.h *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
tcpudp.c tcpudp: define SO_ORIGINAL_DST directly, not via include 2017-01-02 10:46:08 +01:00
telnet.c Move FEATURE_AUTOWIDTH config option to two applets which use it 2017-01-11 16:35:52 +01:00
telnetd.c Convert all networking/* applets to "new style" applet definitions 2016-11-23 09:05:14 +01:00
telnetd.ctrlSQ.patch *: slap on a few ALIGN1/2s where appropriate 2016-04-22 18:09:21 +02:00
telnetd.IAC_test.sh telnetd: fix corner case of input processing of 0xff bytes 2016-10-12 19:13:46 +02:00
tftp.c Big cleanup in config help and description 2017-01-10 14:58:54 +01:00
tls_aes.c tls: added AES code and made it compile. not used yet 2017-01-18 17:20:27 +01:00
tls_aes.h tls: added AES code and made it compile. not used yet 2017-01-18 17:20:27 +01:00
tls_pstm_montgomery_reduce.c tls: rearrange code, add/improve comments, fix whitespace, no real changes here 2017-01-15 14:16:51 +01:00
tls_pstm_mul_comba.c tls: rearrange code, add/improve comments, fix whitespace, no real changes here 2017-01-15 14:16:51 +01:00
tls_pstm_sqr_comba.c tls: rearrange code, add/improve comments, fix whitespace, no real changes here 2017-01-15 14:16:51 +01:00
tls_pstm.c tls: rearrange code, add/improve comments, fix whitespace, no real changes here 2017-01-15 14:16:51 +01:00
tls_pstm.h tls: rearrange code, add/improve comments, fix whitespace, no real changes here 2017-01-15 14:16:51 +01:00
tls_rsa.c tls: add sha256 hmac and prf code 2017-01-16 04:25:01 +01:00
tls_rsa.h tls: rearrange code, add/improve comments, fix whitespace, no real changes here 2017-01-15 14:16:51 +01:00
tls_symmetric.h tls: added AES code and made it compile. not used yet 2017-01-18 17:20:27 +01:00
tls.c tls: teach it to send AES256-encrypted data 2017-01-18 20:37:24 +01:00
tls.h tls: added AES code and made it compile. not used yet 2017-01-18 17:20:27 +01:00
traceroute.c Big cleanup in config help and description 2017-01-10 14:58:54 +01:00
tunctl.c Convert all networking/* applets to "new style" applet definitions 2016-11-23 09:05:14 +01:00
vconfig.c Convert all networking/* applets to "new style" applet definitions 2016-11-23 09:05:14 +01:00
wget.c Assorted warning fixes and added a comment, no code changes 2017-01-16 17:31:05 +01:00
whois.c getopt32: add new syntax of 'o:+' and 'o:*' for -o NUM and -o LIST 2016-07-06 21:58:02 +02:00
zcip.c Convert all networking/* applets to "new style" applet definitions 2016-11-23 09:05:14 +01:00