aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-llcrypto/tests/testvec.rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-llcrypto: Rename rsa::PrivateKey to rsa::KeyPair.Wesley Aptekar-Cassels2025-09-081-1/+1
| | | | As discussed with gabi on IRC today.
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-071-5/+11
| | | | | | | | | | | | | | 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 testvec: remove redundant "kp" variable.Nick Mathewson2023-11-291-11/+6
|
* llcrypto: Hide the members of ExpandedKeypair.Nick Mathewson2023-11-291-5/+8
| | | | | With this change, we no longer expose the ExpandedSecretKey unescorted, which makes it harder to misuse the API.
* Convert to the latest versions of dalek-cryptographyNick Mathewson2023-11-291-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The main changes that we have to adjust for are as follows: * In x25519-dalek: * `StaticSecret` is now behind a feature. * `StaticSecret::new` is deprecated in favor of `StaticSecret::random_from_rng`. * StaticSecret no longer does its own clamping. * In ed25519-dalek: * `SecretKey` has (in effect) been renamed to `SigningKey`. The name `SecretKey` is now an alias for `[u8; 32]`. * `SigningKey` is effectively a keypair, since it contains a public key as well. * `PublicKey` has been renamed to `VerifyingKey`. * The functions to extract a signing key and verifying key have been renamed as you might expect. * `ExpandedSecretKey` has been moved to `hasmat` and no longer implements `sign`. * `ExpanededSecretKey` now has as its elements a scalar and a hash prefix. * Various functions that took `&[u8]` now take `&[u8; N]`. * We no longer need a wrapper for older versions of rand. There is a single test in tor-keymgr that does not pass. I've marked it as ignore for now, in hopes that @gabi-250 can help me figure it out. This closes #808. There are several changes I want to make before we merge, however. They are marked with TODO DALEK.
* llcrypto: Don't take or return "unescorted" ed25519 keys.Nick Mathewson2023-05-181-1/+4
| | | | | | | | | | | | Per #798, we want to make sure that we never pass around an `ed25519::SecretKey`; only an `ed25519::Keypair` (or `ExpandedKeypair`). This is because, when you're computing an ed25519 signature, you have to use the public key as one of your inputs, and if you ever use a mismatched public key you are vulnerable to a nonce reuse attack. (For more info see https://moderncrypto.org/mail-archive/curves/2020/001012.html )
* Disable clippy::unlinlined-format-argsNick Mathewson2023-01-271-0/+2
| | | | | | | | This warning kind of snuck up on us! (See #748) For now, let's disable it. (I've cleaned it up in a couple of examples, since those are meant to be more idiomatic and user-facing.) Closes #748.
* Complete our migration to base64ct.Nick Mathewson2023-01-201-3/+4
| | | | | | | | | This is in lieu of upgrading to the latest base64 crate, which has a different API from the old one. Since we have to migrate either way, we might as well use base64ct everywhere. I don't think that most of these cases _require_ constant-time base64, but it won't hurt.
* fix clippy::needless_borrowtrinity-1686a2022-09-101-3/+3
|
* Upgrade to AES 0.8Nick Mathewson2022-04-261-1/+1
| | | | | | | | Now that we require Rust 1.56, we can upgrade to AES 0.8. This forces us to have some slight API changes. We require cipher 0.4.1, not cipher 0.4.0, since 0.4.0 has compatibility issues with Rust 1.56.
* squash! Bump every crate's edition to 2021.Nick Mathewson2022-04-251-2/+0
| | | | | Remove all `use` statements for `TryFrom` and `TryInto`. These are now redundant in Rust 2021.
* Remove clippy::needless_borrow exception in CI.Nick Mathewson2022-02-201-2/+0
| | | | | This exception is no longer necessary now that the underlying CI bug is fixed.
* Temporarily disable some clippy lints on nightlyIan Jackson2022-02-021-0/+2
|
* address lint warningsDaniel Eades2021-12-091-1/+1
|
* tor-llcrypto: Put currently unused functions behind features.Nick Mathewson2021-11-121-0/+1
| | | | | | | | We don't currently need a couple of the key manipulation features that we have, since we aren't yet doing relays or onion service clients. Part of #125
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-271-0/+574
This will cause some pain for now, but now is really the best time to do this kind of thing.