| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | tor-keymgr: keystore::arti::ssh: Fix typo; simplify comments. | playbahn | 2025-03-27 | 1 | -8/+7 |
| | | | | | Closes #1455 | ||||
| * | tor-keymgr: keystore::arti: Rework tests: ssh-keygen interop | playbahn | 2025-03-26 | 1 | -7/+4 |
| | | | | | Closes #1455 [PATCH 4(v3)/4] | ||||
| * | tor-keymgr: keystore::arti::ssh: Rework tests: ssh-keygen interop | playbahn | 2025-03-26 | 1 | -37/+115 |
| | | | | | Part of #1455 [PATCH 3(v3)/4] | ||||
| * | tor-keymgr: test_utils: TestSpecifier::path_prefix: Drop method | playbahn | 2025-03-26 | 2 | -8/+7 |
| | | | | | Part of #1455 | ||||
| * | tor-keymgr: Fix clippy errors | playbahn | 2025-03-26 | 2 | -2/+3 |
| | | |||||
| * | tor-keymgr: test_utils: Fix unresolved import | playbahn | 2025-03-26 | 1 | -4/+8 |
| | | |||||
| * | tor-keymgr: keystore::arti::tests: More intuitive assert_eq! | playbahn | 2025-03-26 | 2 | -3/+2 |
| | | |||||
| * | tor-keymgr: keystore::arti: Rework ssh-keygen interop tests | playbahn | 2025-03-26 | 1 | -63/+82 |
| | | | | | Closes #1455 [PATCH 4(v2)/4] | ||||
| * | tor-keymgr: keystore::arti::ssh: Rework ssh-keygen interop tests | playbahn | 2025-03-26 | 1 | -30/+52 |
| | | | | | Part of #1455 [PATCH 3(v2)/4] | ||||
| * | tor-keymgr: Rework utils for ssh-keygen interop tests | playbahn | 2025-03-26 | 1 | -52/+50 |
| | | | | | | | | | | | | Part of #1455 [PATCH 2(v2)/4] - Rework sshkeygen::ed25519_encoded to also work as replacement for sshkeygen::exists - Drop sshkeygen::exists - Rename sshkeygen::{ed25519_encoded -> sshkeygen_ed25519_strings} - Pull out sshkeygen_ed25519_strings from mod sshkeygen - Drop mod sshkeygen | ||||
| * | tor-keymgr: Remove unused imports | playbahn | 2025-03-26 | 2 | -2/+0 |
| | | | | | _sigh_ | ||||
| * | tor-keymgr: keystore::arti: Add tests for ssh-keygen interop | playbahn | 2025-03-26 | 1 | -65/+100 |
| | | | | | Closes #1455 [PATCH 4/4] | ||||
| * | tor-keymgr: keystore::arti::ssh: Add tests for ssh-keygen interop | playbahn | 2025-03-26 | 1 | -0/+61 |
| | | | | | | | | | | | | | Part of #1455 [PATCH 3/4] Abstract of the test(s): Encoded (key) A -> Decoded (key) A Decoded A -> Encoded B Encoded B -> Decoded B Assert that Decoded A == Decoded B | ||||
| * | tor-keymgr: test_utils: Add ssh-keygen interop test utils | playbahn | 2025-03-26 | 1 | -0/+53 |
| | | | | | | | | | | | Part of #1455 [PATCH 2/4] Utils include: - mod sshkeygen - sshkeygen::exists - check if ssh-keygen is available - sshkeygen::ed25519_encoded - generate encoded Ed25519 keys | ||||
| * | tor-keymgr: test_utils: Fix typo: TestSpecifier::new param | playbahn | 2025-03-26 | 1 | -2/+2 |
| | | | | | | | | TestSpecifier::new(prefix: ...) -> new(suffix: ...) Prefix is given by TestSpecifier::path_prefix() which returns const TEST_SPECIFIER_PATH = "..." | ||||
| * | tor-keymgr: Introduce ItemMetadata type for testing. | vijayabhaskar_78 | 2025-03-26 | 1 | -86/+149 |
| | | |||||
| * | Use an EntropicRng trait to enforce key generation rules. | Nick Mathewson | 2025-03-24 | 1 | -8/+12 |
| | | | | | | | | | | | | We want to require that whenever we generate a key that's persistent (stored in KeyMgr), it's going to be made from a stronger-than-usual Rng. This trait helps us enforce that. We also add a FakeEntropicRng struct to use for testing. Note that this turned up a case that we'd missed, which required an internal change in tor-hsservice. | ||||
| * | squash! Upgrade rand dependency to 0.9. | Nick Mathewson | 2025-03-18 | 2 | -2/+2 |
| | | | | | - `rand::thread_rng()` has been deprecated and renamed to `rand::rng()` | ||||
| * | Merge branch '1889-resolve-some-todos' into 'main' | gabi-250 | 2025-03-14 | 2 | -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::tests | hjrgrn | 2025-03-14 | 2 | -185/+174 |
| | | | |||||
| * | | tor-hscrypto: Implement Display for TimePeriod | hjrgrn | 2025-03-13 | 1 | -10/+1 |
| |/ | |||||
| * | Upgrade to derive_more 2 | Nick Mathewson | 2025-02-26 | 1 | -1/+1 |
| | | | | | | This took a little refactoring, since derive_more::Foo no longer re-exports std::ops::Foo. | ||||
| * | tor-keymgr: Use @ to annotate internal macro branches. | Gabriela Moldovan | 2025-02-06 | 1 | -3/+3 |
| | | |||||
| * | tor-keymgr: Define the test key constants using a macro. | Gabriela Moldovan | 2025-02-06 | 1 | -42/+83 |
| | | | | | Closes #1396 | ||||
| * | tor-keymgr: Rename test constants to match file names. | Gabriela Moldovan | 2025-02-06 | 3 | -30/+30 |
| | | | | | Part of #1396 | ||||
| * | tor-keymgr: Use ParsedEd25519Cert when decoding certs. | Gabriela Moldovan | 2025-01-13 | 3 | -12/+13 |
| | | | | | | | | This helps us get rid of our uses of `KeyUnknownCert`. Needed because `KeyUnknownCert` can't readily be converted back to `EncodedEd25519Cert` (while `ParsedEd25519Cert` *can* -- see the `certs` module from `tor-relay-crypto`). | ||||
| * | tor-keymgr: Fix cert handling tests. | Gabriela Moldovan | 2025-01-13 | 2 | -25/+62 |
| | | | | | | | This updates and reenables the cert management tests. Part of #1768 | ||||
| * | tor-keymgr: Use Ed25519Cert::decode to parse the certs. | Gabriela Moldovan | 2025-01-13 | 3 | -4/+17 |
| | | |||||
| * | tor-keymgr: Add cert parse error variant. | Gabriela Moldovan | 2025-01-13 | 1 | -2/+14 |
| | | | | | | | | This will soon be used, when we modify the `ArtiNativeKeystore` cert lookup code to actually parse certificates before returning them. Part of #1768 | ||||
| * | tor-key-forge: Split out ItemType as a separate trait. | Gabriela Moldovan | 2025-01-13 | 3 | -10/+16 |
| | | | | | | | | | This is necessary because `ParsedCert`s will not be `EncodableItem`s. This is because we cannot (and don't want to) write certificates that have not yet been validated to the keystore. They do need to be retrievable from the keystore though, so we also change `ErasedKey` to be `Box<dyn ItemType>` instead. | ||||
| * | tor-key-forge: Distinguish between parsed certs and encodable certs. | Gabriela Moldovan | 2025-01-13 | 1 | -8/+9 |
| | | | | | | | | | | | | | | | | We need two different types to represent * certs that have been parsed, but not yet validated (`KeyUnknownCert`) * newly generated encodable certs (`EncodedEd25519Cert`) Currently, we don't use `KeyUnknownCert` anywhere, and instead use `EncodedEd25519Cert` to represent "parsed" but not-yet-validated certs. This approach is wrong and relies on a broken (no-op) `EncodedEd25519Cert::from_bytes` implementation. A future commit will address this problem by replacing `EncodedEd25519Cert::from_bytes` with `Ed25519Cert::decode` to actually parse the cert upon retrieving it from the keystore. | ||||
| * | tor-keymgr: Replace from_encodable_cert with validation function. | Gabriela Moldovan | 2025-01-13 | 1 | -15/+5 |
| | | | | | | | | | In practice, we won't be able to obtain an `ToEncodableCert` type from an `EncodableItem` cert without validating it first, so we need to collapse `validate` into `from_encodable_cert`. Part of #1768 | ||||
| * | Merge branch 'mod-module-files' into 'main' | Nick Mathewson | 2025-01-07 | 1 | -0/+1 |
| |\ | | | | | | | | | clippy: deny `mod_module_files` See merge request tpo/core/arti!2689 | ||||
| | * | clippy: deny `mod_module_files` | Steven Engler | 2025-01-06 | 1 | -0/+1 |
| | | | | | | | | | | | | | Denies 'mod.rs' files for consistency. https://rust-lang.github.io/rust-clippy/master/index.html#mod_module_files | ||||
| * | | fix: fix typos | Dimitris Apostolou | 2025-01-06 | 4 | -4/+4 |
| |/ | |||||
| * | tor-keymgr: Replace internal error with keystore corruption error. | Gabriela Moldovan | 2024-12-04 | 2 | -1/+5 |
| | | | | | | This replaces a placeholder error with a concrete `KeystoreCorruptionError` variant. | ||||
| * | tor-keymgr: Add tests for ArtiNativeKeystore's handling of certs. | Gabriela Moldovan | 2024-12-04 | 1 | -1/+29 |
| | | |||||
| * | tor-keymgr: Add support for certs in ArtiNativeKeystore::insert(). | Gabriela Moldovan | 2024-12-04 | 1 | -5/+8 |
| | | |||||
| * | tor-keymgr: Add support for certs in ArtiNativeKeystore::get(). | Gabriela Moldovan | 2024-12-04 | 1 | -8/+36 |
| | | | | | | This makes `ArtiNativeKeystore::get` deserialize the keystore item as a cert, if its `KeystoreItemType` is `Cert`. | ||||
| * | tor-keymgr: Add arti native keystore helper for parsing tor certs. | Gabriela Moldovan | 2024-12-04 | 2 | -0/+42 |
| | | | | | | We'll soon use this in `ArtiNativeKeystore`'s `Keystore` implementation for parsing certs read from disk. | ||||
| * | tor-keymgr: Add tests for the new cert mgmt functions. | Gabriela Moldovan | 2024-12-04 | 1 | -1/+172 |
| | | |||||
| * | tor-keymgr: s/TestKey/TestItem in tests. | Gabriela Moldovan | 2024-12-04 | 1 | -55/+55 |
| | | | | | | We're about to reuse TestKey as our test key "certificate", so let's preemptively rename it to something more fitting. | ||||
| * | tor-keymgr: Add a test certificate specifier to test_utils. | Gabriela Moldovan | 2024-12-04 | 1 | -1/+34 |
| | | | | | This is about to be used in a couple of places. | ||||
| * | tor-keymgr: s/key/item in error message test. | Gabriela Moldovan | 2024-12-04 | 2 | -2/+2 |
| | | |||||
| * | tor-keymgr: Rename error variant. | Gabriela Moldovan | 2024-12-04 | 3 | -14/+13 |
| | | |||||
| * | tor-keymgr: Remove unused KeyType import. | Gabriela Moldovan | 2024-12-04 | 1 | -1/+1 |
| | | |||||
| * | tor-keymgr: Add KeyMgr::get_or_generate_key_and_cert. | Gabriela Moldovan | 2024-12-04 | 1 | -0/+119 |
| | | |||||
| * | tor-keymgr: Add KeyMgr::get_key_and_cert() (fmt). | Gabriela Moldovan | 2024-12-04 | 1 | -5/+7 |
| | | |||||
| * | tor-keymgr: Add KeyMgr::get_key_and_cert(). | Gabriela Moldovan | 2024-12-04 | 2 | -2/+96 |
| | | |||||
| * | tor-keymgr: Remove no-longer-needed explicit link targets. | Gabriela Moldovan | 2024-12-04 | 1 | -2/+2 |
| | | | | | | These aren't needed anymore now that `KeySpecifierComponent` is in scope. | ||||
