aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-hscrypto/src/ope.rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-hscrypto: Replace .chunks_exact with .as_chunks (fmt)Ian Jackson2026-07-271-4/+4
|
* tor-hscrypto: Replace .chunks_exact with .as_chunksIan Jackson2026-07-271-3/+2
| | | | | | Placates recent clippy. I find the API of both of these functions unsatisfactory and would prefer a chunks_exact that promises to panic, but I didn't find one in std or Itertools.
* Fix warnings and errors from edition 2024.Nick Mathewson2025-08-071-3/+2
| | | | | | | | | | The two main causes of errors were: - Since some of the lifetime rules have changed, we no longer need to do as many "bind a variable and immediately return it" patterns, and so clippy now warns about them. - We needed to adjust the explicit captures (`use<...>`) in a couple of our RPIT instances.
* tor-netdir: Add a unit test for HsDirParams::offset_within_srv_period.Gabriela Moldovan2024-01-241-1/+1
|
* tor-netdir, tor-hscrypto: Add function for computing SRV period offset.Gabriela Moldovan2024-01-241-2/+11
| | | | Part of #1166
* tor-hscrypto: Remove TimePeriodOffset, offset_within_period().Gabriela Moldovan2024-01-241-1/+2
| | | | | | These are now unused. Part of #1166
* tor-hsservice: Generate revision counter using the start of SRV period.Gabriela Moldovan2024-01-241-4/+2
| | | | Closes #1166
* Implementation for AES-based Order-preserving encryptionNick Mathewson2023-11-161-0/+191
This is the approach from appendix F.2 in rend-spec. Part of #1053.