| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
With this change, we no longer expose the ExpandedSecretKey
unescorted, which makes it harder to misuse the API.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | | |
(These types were all already re-exported from pk::ed25519.)
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This type was part of `hazmat`, and was no longer necessary anywhere
in our codebase. (It had one remaining user, which was easy enough
to remove.) By removing it, we remove the opportunity for using an
unescorted ed25519 private key.
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.)
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Downgrade some messages to trace
See merge request tpo/core/arti!1778
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This makes it possible to see the wood for the trees.
This may be controversial, but I think it's an improvement.
|
| |/ / / / /
| | | | |
| | | | |
| | | | |
| | | | | |
These messages are very verbose and I doubt anyone will want them,
usually, even when debugging.
|
| |\ \ \ \ \
| |_|_|/ /
|/| | | |
| | | | |
| | | | | |
tor-hsservice tests: Introduce new test_temp_dir helper module
See merge request tpo/core/arti!1762
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
from obtain_in.
As per irc discussion.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
from UsingTempDir.
As per irc discussion.
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Mandatory whitespace degradation.
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | | |
We're going to want this for other tests in this crate.
|
| | | | | | |
|
| | | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | | |
While debugging IPT persistence I wanted to see what the code was
leaving in the storage and keystore directories. This is hard when
it's all done with a vanilla tempdir().
|
| |\ \ \ \
| |_|/ /
|/| | |
| | | |
| | | | |
Fix extra features getting enabled in the arti-extra test binary
See merge request tpo/core/arti!1776
|
| | | | | |
|
| | |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
We were missing `-p arti` in the build command. As a result we were
getting the union of all features requested by anything in the
workspace, including an example enabling the `experimental` feature
which enables a bunch of other things.
|
| |\ \ \
| |_|/
|/| |
| | |
| | | |
tor-hsservice: time_store: Improve serialisation to be more human readable
See merge request tpo/core/arti!1774
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | | |
Suggestion 3 from
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1774#note_2970374
|
| | | |
| | |
| | |
| | |
| | | |
Suggestion 2 from
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1774#note_2970374
|
| | | |
| | |
| | |
| | | |
Apply deferred churn.
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | | |
When is_human_readable, use a Visitor to offer the data format
visit_str, which will often allow the data format to avoid consing an
actual String.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | | |
Being careful about overflow and avoiding panics is quite a palaver!
|
| | | | |
|
| | | |
| | |
| | |
| | | |
We're going to want to do this for Reference too.
|
| | | |
| | |
| | |
| | | |
Use the string representation in binary formats.
|
| | | |
| | |
| | |
| | |
| | | |
Parse the string representation too.
We'll be using this for serde.
|