Commit Graph
4986 Commits
Author SHA1 Message Date
Dirkjan Ochtman 7873612521 conn: keep decryption result logic together 2026-02-27 14:23:42 +01:00
Dirkjan Ochtman 4f3290f144 conn: re-order VecBuffer methods 2026-02-27 14:14:28 +01:00
Dirkjan Ochtman 3d8025cd59 Externalize input buffer 2026-02-27 14:09:51 +01:00
Dirkjan Ochtman 5967779cd6 conn: always allow 64k input buffer 2026-02-27 14:09:49 +01:00
Dirkjan Ochtman 066beed7ad conn: rename DeframerVecBuffer to VecBuffer 2026-02-27 14:09:48 +01:00
Dirkjan Ochtman 3fb666ef49 Move DeframerVecBuffer into conn 2026-02-27 14:09:46 +01:00
Dirkjan Ochtman 1ff842734c Move TlsInputBuffer into conn 2026-02-27 14:09:45 +01:00
Joe Birr-Pixton 4d0f96d32c Fix new clippy::useless_conversion lint 2026-02-27 12:53:13 +00:00
Joe Birr-Pixton 511bc5a96e Fix new clippy::collapsible_match lint 2026-02-27 12:53:13 +00:00
Joe Birr-Pixton df70dea587 Use names for ci-bench benchmarks rather than indices
This fixes `run-single` which would in fact always run the 0-th benchmark,
which was always `handshake_no_resume_ring_1.2_rsa_aes`.
2026-02-25 16:06:43 +00:00
Dirkjan Ochtman 5f02136071 deframer: re-order items in buffers module 2026-02-25 15:54:58 +00:00
Dirkjan Ochtman 321c738549 deframer: merge DeframerVecBuffer impl blocks 2026-02-25 15:54:58 +00:00
Dirkjan Ochtman 114b4a9e6b deframer: remove unused DeframerSliceBuffer 2026-02-25 15:54:58 +00:00
Dirkjan Ochtman dcbaed30e0 common_state: inline parse_and_maybe_drop() 2026-02-25 15:04:47 +00:00
Dirkjan Ochtman 6dbd135e08 bogo: move exec() helpers up 2026-02-25 14:07:49 +00:00
Dirkjan Ochtman a8a632471b bogo: move exec() before Options 2026-02-25 14:07:49 +00:00
Dirkjan Ochtman 420531edff tests: track caller for test helper functions 2026-02-25 14:07:21 +00:00
Joe Birr-Pixton 1692607f76 Add command for running single benchmark
This is useful with `git rebase` to monitor incremental performance over a patch set, eg:

$ git rebase -i --exec 'cd ci-bench && cargo run --profile=bench -- run-single handshake_no_resume_1.3_no_crypto -o out/$(git log -1 --format=%h HEAD)'

and then, eg:

$ cargo run --profile=bench -- compare out/7f90c55a9 out/63eb538a1

(or the same, for `compare-memory total-bytes` rather than just `compare`.)
2026-02-25 11:07:05 +00:00
Joe Birr-Pixton 14d176f4b9 Extract output of CSV results 2026-02-25 11:07:05 +00:00
Joe Birr-Pixton 1a2d4efb63 ci-bench: rename run-single subcommand
This is an internal subcommand.
2026-02-25 11:07:05 +00:00
Joe Birr-Pixton 8dea909af2 tlsvulns.rs: use archive.org for Kelsey paper 2026-02-25 11:02:26 +00:00
Joe Birr-Pixton d528868051 Rework test_client_mtu_reduction test 2026-02-23 15:21:28 +00:00
Joe Birr-Pixton d5991c5e43 Clarify test_server_mtu_reduction test
TCP is stream-oriented, so the actual buffer lengths passed to
`writev(2)` are secondary to what this test actually wants to observe,
which is TLS message lengths.  So measure that instead.
2026-02-23 15:21:28 +00:00
Joe Birr-Pixton df969046ec io tests: have OtherSession capture written data 2026-02-23 15:21:28 +00:00
Vale Tolpegin 411f846d9c Add ML-KEM-1024 key encapsulation mechanism 2026-02-23 14:47:49 +00:00
Joe Birr-Pixton b07b8419b7 Use AWS_LC_SYS_NO_JITTER_ENTROPY=1 in CI 2026-02-19 09:52:39 +00:00
Joe Birr-Pixton 3bf86c8a1e Improve bogo speed with AWS_LC_SYS_NO_JITTER_ENTROPY=1
Before:

real	0m6.239s
user	1m13.240s
sys	0m5.276s

After:

real	0m1.634s
user	0m6.194s
sys	0m4.274s
2026-02-19 09:52:39 +00:00
Joe Birr-Pixton 77f7b16732 Take semver-compatible updates 2026-02-19 09:52:39 +00:00
Joe Birr-Pixton 96fd2b07f0 Minimize visibility of internals 2026-02-16 16:27:40 +00:00
Joe Birr-Pixton cb8f170ae8 Attach send-side key lifecycle to SendPath
In a previous commit, the TLS1.3 traffic-time key schedule was split
into send- and receive-side objects in order to allow this change.

This new object is now extracted from the Traffic states, and the
object is installed into `SendPath`.

This means no traffic-time send-specific operations now
touch any state machine.
2026-02-16 16:27:40 +00:00
Joe Birr-Pixton bf443480b6 Attach receive_message() to ReceivePath 2026-02-16 16:27:40 +00:00
Joe Birr-Pixton 8d44305d0f Rename process_main_protocol and hoist state machine
This is now a direct conversion step.
2026-02-16 16:27:40 +00:00
Joe Birr-Pixton 1c814ed6f9 Take EncodedMessage by value
This is enabled by having a `Message::try_from` by value.  It avoids
an unnecessary borrow on the `EncodedMessage` itself.
2026-02-16 16:27:40 +00:00
Joe Birr-Pixton 1916a4d49c Move parse_and_maybe_drop into ReceivePath 2026-02-16 16:27:40 +00:00
Joe Birr-Pixton ccca938267 Representing sending an alert as an Event
This allows later further separation of `SendPath` and `ReceivePath`.
2026-02-16 16:27:40 +00:00
Joe Birr-Pixton 88b16ef249 Degeneralise low-level state machine
Since the generic type `Context` is no longer operated on by
states, there is no use of this generic type.
2026-02-16 16:27:40 +00:00
Mend Renovate e3a579077b chore(deps): update dependency go to v1.26.0 2026-02-14 19:27:57 +00:00
Joe Birr-Pixton cb81251606 Take semver-compatible updates 2026-02-13 15:31:11 +00:00
Joe Birr-Pixton 35d83b9926 Take hpke-rs* 0.6
For GHSA-435g-fcv3-8j26.
2026-02-13 15:31:11 +00:00
Joe Birr-Pixton b63acea170 CONTRIBUTING: updates about testing strategy 2026-02-12 16:36:01 +00:00
Joe Birr-Pixton 4185c277b6 daily-tests: eliminate unbuffered tests 2026-02-12 16:36:01 +00:00
Joe Birr-Pixton 12defc9c1d Move message input flow into ReceivePath 2026-02-12 15:56:01 +00:00
Joe Birr-Pixton b74a118851 Move dependency on send path up out of process_more_input 2026-02-12 15:56:01 +00:00
Joe Birr-Pixton e4b9d6677a Move HandshakeDeframer down to ReceivePath 2026-02-12 15:56:01 +00:00
Joe Birr-Pixton 8358e17109 Move received_plaintext up to correct layer 2026-02-12 15:56:01 +00:00
Joe Birr-Pixton 7d0860dd6e Move IoState, wants_read etc up from common_state 2026-02-12 15:56:01 +00:00
Joe Birr-Pixton 9f8a349160 Drop plaintext receipt into caller of process_new_packets() 2026-02-12 15:56:01 +00:00
Joe Birr-Pixton e4ddd0b35e Rename ReceivedData trait 2026-02-12 15:56:01 +00:00
Joe Birr-Pixton ebf262028a Abstract core process_new_packets() over buffer type 2026-02-12 15:56:01 +00:00
Joe Birr-Pixton 714d12078b Avoid API misfeature in test_close_notify_sent_prior_to_handshake_complete 2026-02-11 17:09:20 +00:00