383ffcb12c
fixed noise_state returns bytearray where we want bytes, add slow to pytest markers
2024-03-09 11:02:22 -07:00
94483714a3
run lint and fix errors, except mypy
2024-02-19 16:05:58 -07:00
1af12ddf43
interop test: support both noise and plaintext
2020-02-28 15:50:03 +08:00
cb4e1115c6
Remove wrong encoding
2020-02-28 15:50:03 +08:00
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
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
2df47a943c
Refactor
2020-02-28 15:49:59 +08:00
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
8a4ebd4cbb
Support read/write of noise msg and payload
2020-02-28 15:49:56 +08:00