Russ Magee
3f5db06f16
De-packetizing-rebuffering of Read() w/HMAC working, yay
2018-03-25 19:58:04 -07:00
Russ Magee
c0fa2bcdf9
hmac usage commented out, 2nd attempt to re-add usage w/paylaod len
2018-03-25 10:40:23 -07:00
Russ Magee
e14ccbe366
Length calc but not xmit -- grouped Read() likely the issue to handle
2018-02-16 22:12:27 -08:00
Russ Magee
744730ae23
HMAC calc w/no xmit or verification, working..?
2018-02-16 19:25:11 -08:00
Russ Magee
d465c1ee5b
Initial experiments: HMAC on stream
2018-02-16 18:46:29 -08:00
Russ Magee
6ea206fbc2
Merge of public work on github.com/Russtopia/hkexsh repo
2018-02-16 18:43:37 -08:00
Russ Magee
2b44c87815
Partial fixes to client login env; Added missing Conn.Listener interface methods to hkex.Conn.Listener
2018-01-26 16:15:39 -08:00
Russ Magee
e3842e4219
Removed channel-based server loop goroutine, solving eaten initial byte issue.
...
Made receivers on hkex.Conn mutators *Conn again (whoops)
TODO: Consider: padding (? probably not, XORKeyStream OFB/CBC/etc. modes prevent
constant header/crib exposure, and would add lots of complexity to Read/Write)
TODO: Add CTR, other modes
2018-01-20 21:20:49 -08:00
Russ Magee
49c589ee8d
Added pty lib to give true terminal capability. raw mode/restore for client working
2018-01-18 18:57:37 -08:00
Russ Magee
e8fe31f6d7
Set lots of KEx Printfs to log.Printf (and off by default). Hacky non=tty shell works!
2018-01-17 21:27:00 -08:00
Russ Magee
9fb9d073ab
Completed net.Conn interface implementation for hkex.Conn; some tests of Op protocol in server
2018-01-17 16:39:01 -08:00
Russ Magee
e09f052f45
Just some commented-out SetReadDeadline() experiments
2018-01-16 18:30:57 -08:00
Russ Magee
942b8865cf
Start of proto kexsh tool client/server
2018-01-13 10:01:27 -08:00
Russ Magee
1817627234
-Cleaned up lib code with gometalinter.v1
...
-Added -h opt to demo client (hmac)
2018-01-12 22:13:01 -08:00
Russ Magee
5493921e9f
-Added client -c option to pass cipher alg
...
-Note about blowfish iv len (lack of) bounds check in .NewOFB();
-TODO added to enforce keymat from HKex >= 2*chosen cipher blocksize
(assuming keylen == blocksize -- might not be true for all future algs)
2018-01-11 23:01:39 -08:00
Russ Magee
9054bcb89f
Dial() extensions to specify cipher/hmac alg and protocol options
2018-01-11 19:42:42 -08:00
Russ Magee
02d4d0cd50
Package documentation
2018-01-11 13:44:11 -08:00
Russ Magee
d4c9a1e456
Bit of cleanup in hkex.Read(),Write() and server.go read bufsize to 512
2018-01-11 09:13:18 -08:00
Russ Magee
c43b13989b
Hoorah, got basic crypto working over hkex Conn
2018-01-10 22:50:13 -08:00
Russ Magee
b28ca552bd
Got cipher StreamReader/Writer in w/o yet using them.
2018-01-08 23:26:24 -08:00
Russ Magee
9885067a48
Added hkexchan.go w/o testing for StreamReader/StreamWriter
2018-01-08 23:08:58 -08:00
Russ Magee
3571da5703
Added concept for cipher setup -- nonworking (hkexchan.gox)
2018-01-08 20:23:19 -08:00
Russ Magee
9aecee7ba3
Split core KEx and net support code
2018-01-08 19:28:04 -08:00
Russ Magee
f7a3be637b
Split core KEx and net support code
2018-01-08 19:16:55 -08:00