summaryrefslogtreecommitdiff
path: root/crates/tor-llcrypto/src/util.rs
Commit message (Collapse)AuthorAgeFilesLines
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-071-3/+12
| | | | | | | | | | | | | | First, run ``` git grep -l "^edition =" | xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;' ``` Second, manually verify that all Cargo.toml files have changed, and nothing else has changed. Third, run cargo fmt again.
* llcrypto: add an rng compatibility shim for dalek-cryptoNick Mathewson2025-03-181-0/+1
| | | | | | | | | dalek-cryptography is still on rand 0.8, so we need a compatibility shim for the Rng. Fortunately, since we merged interface-abstraction-of-the-daleks (!2868), we no longer need to propagate this compatibility layer throughout our codebase.
* tor-llcrypto: replace simple_asn1 dependency with der_parserMorgan2024-09-281-19/+15
|
* clippy: Replace many calls to .get(0) with .first()Ian Jackson2024-01-021-4/+4
| | | | | FTR I don't think agree with clippy on this question, but then I often don't.
* Remove RngCompatExt.Nick Mathewson2023-11-291-1/+0
| | | | | | | | | | This code was needed with the old version of dalek-cryptography, which wasn't compatible with up-to-date versions of the `rand` crate(s). But now that we've upgraded, we can drop this. (We could have left it around and deprecated it, but we are already making a breaking change to tor-llcrypto by upgrading dalek-cryptography.)
* Add a new "CtByteArray" type, and use it in Id types.Nick Mathewson2023-01-051-0/+1
| | | | | | This type provides a common implementation for types that are implemented as arrays of bytes that should only be compared with constant-time comparisons.
* Resolve roughly half of the XXXXs.Nick Mathewson2021-12-061-2/+2
| | | | | | | | We want to only use TODO in the codebase for non-blockers, and open tickets for anything that is a bigger blocker than a TODO. These XXXXs seem like definite non-blockers to me. Part of arti#231.
* fix/silence clippy lints in test modulesDaniel Eades2021-09-081-0/+1
|
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-271-0/+103
This will cause some pain for now, but now is really the best time to do this kind of thing.