Commit Graph

23 Commits

Author SHA1 Message Date
J. Nick Koston 1b51530642
Reduce duplicate code between connection and frame helper (#763) 2023-11-27 23:51:38 -06:00
J. Nick Koston cea62efbba
Small cython cleanps to the frame helpers (#733) 2023-11-26 13:25:55 -06:00
J. Nick Koston 908545768b
Update pre-commit with newer tools (#724) 2023-11-26 08:09:52 -06:00
J. Nick Koston c0a153c9f3
Speed up frame helpers (#696) 2023-11-24 12:40:33 -06:00
J. Nick Koston 9c63f3205a
Remove unused slot in the noise frame helper (#695) 2023-11-24 12:18:26 -06:00
J. Nick Koston 7a57f1fa89
Optimize the frame helpers by improving cython typing (#691) 2023-11-24 12:12:32 -06:00
J. Nick Koston 095ef822f1
Fix error in noise frame helper were we could write when the writer was unset (#685) 2023-11-24 09:42:56 -06:00
J. Nick Koston b31472c569
Refactor noise _error_on_incorrect_preamble to improve coverage (#683) 2023-11-24 08:36:31 -06:00
J. Nick Koston 39aba56958
Remove unreachable code in noise frame helper (#682) 2023-11-24 08:29:42 -06:00
J. Nick Koston c21e32fda7
Fix handshake getting the wrong exception when the ESP drops the connection because its not using noise (#681) 2023-11-24 08:26:12 -06:00
J. Nick Koston 83b4f43610
Refactor frame helper to get debug state from connection (#679) 2023-11-23 12:20:52 -06:00
J. Nick Koston c76d741cb8
Refactor to reduce duplicate connection code (#644) 2023-11-18 15:10:40 -06:00
J. Nick Koston f94ddf8e6a
Fix handling incoming data from protractor event loop (#642) 2023-11-16 17:50:54 -06:00
J. Nick Koston 3ccb36b6fc
Refactor frame helper to avoid py conversions when processing packets (#641) 2023-11-16 12:24:50 -06:00
J. Nick Koston d6293d9177
Refactor frame helper to allow sending multiple packets at once (#640) 2023-11-16 10:31:02 -06:00
J. Nick Koston 8678fa9ebc
Small cleanups to noise write_packet (#627) 2023-11-09 11:28:18 -06:00
J. Nick Koston 94157a8ac1
Small speed up to the plaintext frame helper (#625) 2023-11-09 10:20:42 -06:00
J. Nick Koston 20ddb972e7
Reduce memory copy when buffering is not required (#572) 2023-10-12 15:17:46 -10:00
dependabot[bot] a9d93dcdf3
Bump mypy from 1.5.1 to 1.6.0 (#563)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-10-12 09:14:14 -10:00
J. Nick Koston 2c6f3d40ed
Add optional basic cython implementation for frame_helper (#564) 2023-10-12 08:12:39 -10:00
J. Nick Koston 49d86f940e
Refactor frame helpers to share more code (#500) 2023-07-21 03:11:04 -05:00
J. Nick Koston d63b9bbf5d
Upgrade python code to 3.9 (#496) 2023-07-19 15:33:28 -05:00
J. Nick Koston 65e659e4a5
Split _frame_helper into plain_text and noise (#491) 2023-07-18 14:28:56 -05:00