mhchia
1af12ddf43
interop test: support both noise and plaintext
2020-02-28 15:50:03 +08:00
mhchia
cb4e1115c6
Remove wrong encoding
2020-02-28 15:50:03 +08:00
mhchia
728d9e5c9c
Noise: update pb
2020-02-28 15:50:02 +08:00
mhchia
6016ea731b
BaseMsgReadWriter
...
- Change `BaseMsgReadWriter` to encode/decode messages with abstract
method, which can be implemented by the subclasses. This allows us to
create subclasses `FixedSizeLenMsgReadWriter` and
`VarIntLenMsgReadWriter`.
2020-02-28 15:50:01 +08:00
mhchia
a9f4f285ee
Noise: clean up dup code
2020-02-28 15:50:01 +08:00
mhchia
1d2a976597
Remove TODOs
2020-02-28 15:50:00 +08:00
mhchia
48a7c1a969
Security: ensure remote pubkeys are stored
2020-02-28 15:50:00 +08:00
mhchia
3c2e835725
Security: SecureSession
...
Make security sessions(secio, noise) share the same implementation
`BaseSession` to avoid duplicate implementation of buffered read.
2020-02-28 15:49:59 +08:00
mhchia
2df47a943c
Refactor
2020-02-28 15:49:59 +08:00
mhchia
ea645f0bd6
Copied read/write from secio
2020-02-28 15:49:58 +08:00
mhchia
f8739268e2
Noise: encrypt and decrypt in NoiseConnection
...
TODO: Add a buffer to read only `n` bytes in `read(n)`
2020-02-28 15:49:58 +08:00
mhchia
6ea96e9313
Add comments in pattern xx
2020-02-28 15:49:57 +08:00
mhchia
d0290d2b5a
Noise: complete handshake process
...
TODO
- Figure out why `state.rs` is erased at some moment(even handshake
is not done).
- Refactor
- Add tests
2020-02-28 15:49:56 +08:00
mhchia
8a4ebd4cbb
Support read/write of noise msg and payload
2020-02-28 15:49:56 +08:00
mhchia
95959725db
Noise pattern: Fix flake8
2020-02-15 12:18:19 +08:00
mhchia
d7fabab3e1
Noise: add compiled pb2.py
2020-02-09 13:23:12 +08:00
mhchia
0324a69841
Noise: add PatternXX
2020-02-09 00:33:26 +08:00
mhchia
f27db83a14
Noise: add TODO comments
2020-02-08 10:48:29 +08:00
mhchia
fb53edbc04
Change async def write
...
To return `None` instead of `int. `Writer.write` *does* write all data
in all use case.
2020-02-08 10:24:37 +08:00
Kevin Mai-Husan Chia
1152f9b703
Update libp2p/security/noise/transport.py
...
Co-Authored-By: Alex Stokes <r.alex.stokes@gmail.com>
2020-02-08 10:14:35 +08:00
mhchia
897e66b7e1
Add the skeletons of noise transport and conn
2020-02-07 17:47:50 +08:00