summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | Run cargo fmtNick Mathewson2025-03-181-11/+3
| | | | | |
| * | | | | squash! Upgrade rand dependency to 0.9.Nick Mathewson2025-03-1823-45/+45
| | | | | | | | | | | | | | | | | | | | | | | | - The Rng::gen() functions have been renamed to Rng::random().
| * | | | | Use rng compatibility layer in keygen-openssh-testNick Mathewson2025-03-182-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (This only needs to be used for DSA keys from ssh_key, which we should never touch in production.)
| * | | | | squash! Upgrade rand dependency to 0.9.Nick Mathewson2025-03-184-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | - Several methods have been moved out of SliceRandom.
| * | | | | squash! Upgrade rand dependency to 0.9.Nick Mathewson2025-03-181-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - `rand::thread_rng()` has been deprecated and renamed to `rand::rng()` (I missed these cases because they were from prelude::*)
| * | | | | squash! Upgrade rand dependency to 0.9.Nick Mathewson2025-03-181-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | - `Uniform::new_inclusive` is now fallible.
| * | | | | squash! Upgrade rand dependency to 0.9.Nick Mathewson2025-03-183-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | - The Standard distribution has been renamed to StandardUniform.
| * | | | | squash! Upgrade rand dependency to 0.9.Nick Mathewson2025-03-184-21/+1
| | | | | | | | | | | | | | | | | | | | | | | | - `try_fill_bytes()` is no longer a member of RngCore.
| * | | | | llcrypto: add an rng compatibility shim for dalek-cryptoNick Mathewson2025-03-186-5/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | squash! Upgrade rand dependency to 0.9.Nick Mathewson2025-03-182-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | - `Rng::gen_range()` has been renamed to `Rng::random_range()`
| * | | | | squash! Upgrade rand dependency to 0.9.Nick Mathewson2025-03-187-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | - The rand::distributions module has been renamed to rand::distr
| * | | | | squash! Upgrade rand dependency to 0.9.Nick Mathewson2025-03-1856-79/+76
| | | | | | | | | | | | | | | | | | | | | | | | - `rand::thread_rng()` has been deprecated and renamed to `rand::rng()`
| * | | | | squash! Upgrade rand dependency to 0.9.Nick Mathewson2025-03-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | - The rand crate's "getrandom" feature has been renamed to "os_rng"
| * | | | | Upgrade rand dependency to 0.9.Nick Mathewson2025-03-1832-97/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Per discussion at #1774, we think the changes are acceptable.) This commit won't compile on its own; subsequent commits will fix it.
| * | | | | key-forge: Use CryptoRng from rand.Nick Mathewson2025-03-181-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we used the version signature::rand_core for some reason, but that's now incompatible.
| * | | | | Always use full path to rand::thread_rng().Nick Mathewson2025-03-184-10/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is partly for consistency, and partly to facilitate a global search-and-replace.
* | | | | | Merge branch '1630-scrub-address-from-output' into 'main'gabi-2502025-03-193-33/+38
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | hsc: remove onion-address flag in favour of stdin Closes #1630 See merge request tpo/core/arti!2861
| * | | | | test: Fix get-key-error testcase for hschjrgrn2025-03-192-3/+3
| | | | | |
| * | | | | test: Fix get-key-error testcase for hschjrgrn2025-03-182-2/+3
| | | | | |
| * | | | | hsc: Improve get_onion_address functionhjrgrn2025-03-181-2/+3
| | | | | |
| * | | | | hsc: Add --quite CLI flaghjrgrn2025-03-171-10/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add `quite` to the common arguments * Substitute dialoguer in favor of `read_line` in `get_onion_address`
| * | | | | hsc: Improve get_onion_address functionhjrgrn2025-03-171-4/+3
| | | | | |
| * | | | | doc: Improve hsc documentationhjrgrn2025-03-171-4/+4
| | | | | |
| * | | | | examples: Fix use of deprecated onion_namehjrgrn2025-03-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * Use `onion_address` instead
| * | | | | test: Update testcase get-key-error for hschjrgrn2025-03-141-2/+2
| | | | | |
| * | | | | doc: Update hsc documentationhjrgrn2025-03-141-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * In hsc.rs has been removed `onion-address` flag in favour of getting the value required from stdin
| * | | | | hsc: remove onion-address flag in favour of stdinhjrgrn2025-03-141-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * The user will be prompted interactively for the onion-address to prevent onion-address leaking in shell history
* | | | | | Merge branch 'interface-abstraction-of-the-daleks' into 'main'Nick Mathewson2025-03-1810-64/+278
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wrap x25519-dalek and ed25519-dalek types. See merge request tpo/core/arti!2868
| * | | | | | llcrypto: add a semver file for new x25519-wrappersNick Mathewson2025-03-181-0/+1
| | | | | | |
| * | | | | | Wrap ed25519-dalek types.Nick Mathewson2025-03-188-54/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this change, we'll no longer need to expose the types from dalek-cryptography as part of our API, and we'll have more freedom to switch ed25519 implementations, or to upgrade to a newer `rand` ahead of their schedule. Unlike with x25519-dalek, I had to tweak the API a bit: There's no way to get a &PublicKey out of a Keypair now, and implementing the old ed25519-dalek traits seemed unnecessary.
| * | | | | | Wrap x25519-dalek types.Nick Mathewson2025-03-171-10/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this change, we'll no longer need to expose the types from dalek-cryptography as part of our API, and we'll have more freedom to switch curve25519 implementations, or to upgrade to a newer `rand` ahead of their schedule.
* | | | | | | Merge branch 'tests-rpc-client-msgs' into 'main'Nick Mathewson2025-03-182-1/+35
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rpc-client: Increase test coverage for the msgs module See merge request tpo/core/arti!2865
| * | | | | | | rpc-client: Increase test coverage for the msgs modulevcrn2025-03-182-1/+35
| |/ / / / / /
* | | | | | | Merge branch 'hsc-lf' into 'main'gabi-2502025-03-182-1/+2
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | arti: hsc-key-get: Print LF after discovery key See merge request tpo/core/arti!2856
| * | | | | | | arti: hsc-key-get: Print LF after discovery keyplaybahn2025-03-132-1/+2
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Did not print a newline after service discovery key. Looked bad. Prints newline now. Looks better.
* | | | | | | Merge branch 'conflux-cells' into 'main'David Goulet2025-03-182-3/+62
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tor-cell: Add constructors for the conflux cell types. See merge request tpo/core/arti!2858
| * | | | | | | tor-cell: Implement RelayMsg for all conflux message types.Gabriela Moldovan2025-03-171-1/+1
| | | | | | | |
| * | | | | | | tor-cell: Add setters for the V1LinkPayload seqnos.Gabriela Moldovan2025-03-131-0/+10
| | | | | | | |
| * | | | | | | tor-cell: Make V1_LINK_NONCE_LEN pub.Gabriela Moldovan2025-03-131-1/+1
| | | | | | | |
| * | | | | | | tor-cell: Add constructors for the conflux cell types.Gabriela Moldovan2025-03-131-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We will soon need these in the circuit reactor.
| * | | | | | | tor-cell: Add type alias for the V1LinkPayload nonce.Gabriela Moldovan2025-03-131-1/+4
| | | | | | | |
* | | | | | | | Merge branch 'tighten-utf-8' into 'main'David Goulet2025-03-1814-41/+104
|\ \ \ \ \ \ \ \ | |_|_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | netdoc: Reject BOMs and NULs. Closes #1739 See merge request tpo/core/arti!2866
| * | | | | | | netdoc: Reject BOMs and NULs.Nick Mathewson2025-03-174-2/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per <https://spec.torproject.org/dir-spec/netdoc.html>, our netdocs never have a BOM, and never have internal NULs. This makes Arti reject such documents. For arguments on why it's okay to increase parser strictness, see the (forthcoming) proposal 356 at torspec!342, and see older discussion at torspec#296. Closes #1739.
| * | | | | | | netdoc: Make some parsing init functions fallible.Nick Mathewson2025-03-1711-40/+48
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm about to make our parsers reject some strings at construction time, so it makes sense to have these functions become fallible. This is a breaking change.
* | | | | | | Merge branch 'deprecated-method-examples-hyper' into 'main'gabi-2502025-03-141-1/+1
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | examples: Use onion_address() instead of depricated onion_name() See merge request tpo/core/arti!2859
| * | | | | | examples: Use onion_address() instead of depricated onion_name()vcrn2025-03-141-1/+1
|/ / / / / /
* | | | | | Merge branch '1889-resolve-some-todos' into 'main'gabi-2502025-03-142-185/+174
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tor-keymgr: Resolve TODOs from key_specifier::tests Closes #1889 See merge request tpo/core/arti!2849
| * | | | | | tor-keymgr: Resolve TODOs from key_specifier::testshjrgrn2025-03-142-185/+174
| | | | | | |
* | | | | | | Merge branch 'handle-relevant-errorkind-variants' into 'main'gabi-2502025-03-141-1/+0
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hsc: remove TODO, improve display_service_discovery_key error handling. See merge request tpo/core/arti!2846
| * | | | | | | hsc: remove TODO about display_service_discovery_key error handling.hjrgrn2025-03-141-1/+0
| |/ / / / / /