summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | Deprecate convert_ed25519_to_curve25519_private as unusedNick Mathewson2023-11-292-0/+6
| | | | |
| * | | | Remove RngCompatExt.Nick Mathewson2023-11-2921-324/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.)
| * | | | Convert to the latest versions of dalek-cryptographyNick Mathewson2023-11-2935-443/+407
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Merge branch 'debug' into 'main'Alexander Færøy2023-11-294-9/+9
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Downgrade some messages to trace See merge request tpo/core/arti!1778
| * | | | | debug log: Downgrade circuit lifecycle messages to traceIan Jackson2023-11-291-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it possible to see the wood for the trees. This may be controversial, but I think it's an improvement.
| * | | | | Downgrade some messages to traceIan Jackson2023-11-294-5/+5
|/ / / / / | | | | | | | | | | | | | | | | | | | | These messages are very verbose and I doubt anyone will want them, usually, even when debugging.
* | | | | Merge branch 'persist-tempdir' into 'main'Ian Jackson2023-11-295-25/+355
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | tor-hsservice tests: Introduce new test_temp_dir helper module See merge request tpo/core/arti!1762
| * | | | tor-hsservice: test_temp_dir: Fix comment syntaxNick Mathewson2023-11-291-1/+1
| | | | |
| * | | | tor-hsservice: test_temp_dir: Rename to used_byIan Jackson2023-11-292-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from obtain_in. As per irc discussion.
| * | | | tor-hsservice: test_temp_dir: Rename to TestTempDirGuardIan Jackson2023-11-292-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from UsingTempDir. As per irc discussion.
| * | | | tor-hsservice: test_temp_dir: Expand on the TODO (fmt)Ian Jackson2023-11-291-1/+0
| | | | | | | | | | | | | | | | | | | | Mandatory whitespace degradation.
| * | | | tor-hsservice: test_temp_dir: Expand on the TODOIan Jackson2023-11-291-1/+3
| | | | |
| * | | | tor-hsservice test_temp_dir: Add commentary about why do thisIan Jackson2023-11-291-0/+25
| | | | |
| * | | | tor-hsservice test_temp_dir: Add more docs about in_obtainIan Jackson2023-11-291-0/+5
| | | | |
| * | | | tor-hsservice test_temp_dir: Add docs about early deletion hazardIan Jackson2023-11-291-0/+19
| | | | |
| * | | | tor-hsservice test_temp_dir: Make a lifetime explicit (fmt)Ian Jackson2023-11-291-1/+5
| | | | |
| * | | | tor-hsservice test_temp_dir: Make a lifetime explicitIan Jackson2023-11-291-1/+1
| | | | |
| * | | | tor-hsservice tests: create_keymgr: add a doc commentIan Jackson2023-11-291-0/+1
| | | | |
| * | | | tor-hsservice: test_temp_dir: Improve docs (fmt)Ian Jackson2023-11-291-1/+1
| | | | |
| * | | | tor-hsservice: test_temp_dir: Improve docsNick Mathewson2023-11-291-1/+2
| | | | |
| * | | | tor-hsservice tests: Make create_keymgr pub(crate)Ian Jackson2023-11-281-2/+2
| | | | | | | | | | | | | | | | | | | | We're going to want this for other tests in this crate.
| * | | | tor-hsservice tests: Change create_keymgr to use TestTempDirIan Jackson2023-11-281-24/+26
| | | | |
| * | | | tor-hsservice tests: Introduce new test_temp_dir helper moduleIan Jackson2023-11-284-0/+272
| | |/ / | |/| | | | | | | | | | | | | | | | | | 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().
* | | | Merge branch 'arti-extra-features' into 'main'Nick Mathewson2023-11-292-2/+6
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | Fix extra features getting enabled in the arti-extra test binary See merge request tpo/core/arti!1776
| * | | make feature arti/experimental-api enable arti-client/experimental-apiJim Newsome2023-11-281-1/+1
| | | |
| * | | Fix extra features getting enabled in the arti-extra test binaryJim Newsome2023-11-281-1/+5
| |/ / | | | | | | | | | | | | | | | | | | 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.
* | | Merge branch 'time-store-2' into 'main'Ian Jackson2023-11-292-36/+276
|\ \ \ | |_|/ |/| | | | | | | | tor-hsservice: time_store: Improve serialisation to be more human readable See merge request tpo/core/arti!1774
| * | tor-hsservice: time_store: Change rel time Display to humantime (fmt)Ian Jackson2023-11-291-4/+1
| | |
| * | tor-hsservice: time_store: Change rel time Display to humantimeIan Jackson2023-11-291-31/+23
| | | | | | | | | | | | | | | Suggestion 3 from https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1774#note_2970374
| * | tor-hsservice: time_store: Change rel time prefix to T+Ian Jackson2023-11-291-13/+13
| | | | | | | | | | | | | | | Suggestion 2 from https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1774#note_2970374
| * | tor-hsservice: time_store: rustfmtIan Jackson2023-11-281-5/+6
| | | | | | | | | | | | Apply deferred churn.
| * | tor-hsservice: time_store: tests: Split up a stringIan Jackson2023-11-281-1/+4
| | |
| * | tor-hsservice: time_store: deser strings: don't allocateIan Jackson2023-11-281-5/+19
| | | | | | | | | | | | | | | | | | 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.
| * | tor-hsservice: time_store: Reference: change serdeIan Jackson2023-11-281-11/+6
| | |
| * | tor-hsservice: time_store: Reference: impl FromStrIan Jackson2023-11-281-1/+22
| | |
| * | tor-hsservice: time_store: Reference: change DisplayIan Jackson2023-11-282-5/+9
| | |
| * | tor-hsservice: time_store: provide time_t_to_system_timeIan Jackson2023-11-281-0/+74
| | | | | | | | | | | | Being careful about overflow and avoiding panics is quite a palaver!
| * | tor-hsservice: time_store: break out system_time_to_time_tIan Jackson2023-11-281-7/+12
| | |
| * | tor-hsservice: time_store: SerdeStringOrTransparent macroIan Jackson2023-11-281-26/+41
| | | | | | | | | | | | We're going to want to do this for Reference too.
| * | tor-hsservice: time_store: FutureTimestamp: change serdeIan Jackson2023-11-281-8/+31
| | | | | | | | | | | | Use the string representation in binary formats.
| * | tor-hsservice: time_store: FutureTimestamp: impl FromStrIan Jackson2023-11-281-0/+45
| | | | | | | | | | | | | | | Parse the string representation too. We'll be using this for serde.
| * | tor-hsservice: time_store: FutureTimestamp: change DisplayIan Jackson2023-11-281-2/+27
| | |
| * | tor-hsservice: time_store: tests: Add an mpack testIan Jackson2023-11-281-0/+25
| | | | | | | | | | | | We're going to serialise different in binary formats.
| * | tor-hsservice: time_store: tests: use a fixed SystemTimeIan Jackson2023-11-281-5/+6
| |/ | | | | | | This will make them easier to adjust when we serialise differently.
* | Merge branch 'keymgr-fs-mistrust' into 'main'gabi-2502023-11-281-23/+36
|\ \ | | | | | | | | | | | | tor-keymgr: Use the new fs-mistrust APIs See merge request tpo/core/arti!1769
| * | tor-keymgr: Use CheckedDir::read_dir to validate dir permissions in list().Gabriela Moldovan2023-11-281-3/+13
| | | | | | | | | | | | | | | | | | | | | `ArtiNativeKeystore::list` now returns an error if the parent directory of any of its keys doesn't pass the `CheckedDir::read_dir` validation. Part of #1117
| * | tor-keymgr: Use the new CheckedDir::remove_file API.Gabriela Moldovan2023-11-281-20/+23
| |/ | | | | | | | | | | | | This updates `ArtiNativeKeystore` to use the new `remove_file` API from arti!1759. Part of #1117
* | Merge branch 'misc-upgrades' into 'main'Nick Mathewson2023-11-287-68/+187
|\ \ | |/ |/| | | | | Upgrade several crates in preparation for this month's release. See merge request tpo/core/arti!1763
| * Remove event-listener dependency from tor-log-ratelim.Nick Mathewson2023-11-282-2/+0
| | | | | | | | Gabi spotted that we weren't using this.
| * downgrade-dependencies: un-downgrade futures-lite.Nick Mathewson2023-11-281-1/+2
| | | | | | | | | | | | This is necessary for async-global-executor, which uses `futures_lite::future::or`, which futures-lite does not have before 1.4.0 or thereabouts.