aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-keymgr
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge branch 'keymgr' into 'main'Ian Jackson2023-06-292-5/+20
|\ \ \ | |/ / |/| | | | | | | | | | | | | | tor-keymgr: Adjust stability guarantees for release Closes #934 See merge request tpo/core/arti!1346
| * | tor-keymgr: Add missing footnoteIan Jackson2023-06-291-0/+5
| | |
| * | tor-keymgr: Replace whole-crate-is-unstable warningIan Jackson2023-06-291-3/+5
| | | | | | | | | | | | | | | arti-client is going to use this so it can't be whole-crate-unstable, but it can be rapidly-changing.
| * | tor-keymgr features: Document that "keymgr" is experimentalIan Jackson2023-06-291-0/+8
| | |
| * | tor-keymgr features: Make "keymgr" disabled by defaultIan Jackson2023-06-292-2/+2
| |/
* | keymgr: Fix dummy keymgr doc links.Gabriela Moldovan2023-06-291-3/+3
| | | | | | | | | | `Error` is private to `dummy.rs` so let's not mention it in the docs of the public items.
* | keymgr: Add missing dummy implementation for KeyType::arti_extension.Gabriela Moldovan2023-06-291-0/+9
|/ | | | | | | | This fixes a rustdoc warning when building with: ``` cargo doc --locked --offline -p arti --no-default-features --features=full,onion-service-client ```
* keymgr: Fix wrong_key_type test.Gabriela Moldovan2023-06-291-1/+5
| | | | | The string representation of `SshKeyAlgorithm` on `main` changed between the time the tests were introduced and the time they were merged.
* Merge branch 'keymgr-tests' into 'main'gabi-2502023-06-296-0/+308
|\ | | | | | | | | keymgr: Add tests for ArtiNativeKeyStore See merge request tpo/core/arti!1337
| * keymgr: Add a TODO about implementing and testing has_key_bundle.Gabriela Moldovan2023-06-291-0/+8
| |
| * keymgr: Add some basic insert and remove tests.Gabriela Moldovan2023-06-291-0/+52
| |
| * keymgr: Add assert_found! test helper.Gabriela Moldovan2023-06-291-8/+13
| |
| * keymgr: Add some key retrieval tests for ArtiNativeKeyStore.Gabriela Moldovan2023-06-291-5/+54
| |
| * keymgr: Add a gen_keys param to init_keystore.Gabriela Moldovan2023-06-291-2/+16
| | | | | | | | | | This will enable future tests to optionally initialize the test key store with some test keys.
| * keymgr: Add tests for ArtiNativeKeyStore::key_path.Gabriela Moldovan2023-06-292-0/+92
| |
| * keymgr: Derive Debug for ArtiNativeKeyStore.Gabriela Moldovan2023-06-291-0/+1
| |
| * keymgr: Add tests for ssh key handling.Gabriela Moldovan2023-06-294-0/+87
| | | | | | | | Part of #895
| * keymgr: Return the key, not Box<()>.Gabriela Moldovan2023-06-291-1/+1
| | | | | | | | | | This fixes a bug which caused the function to always return a type-erased `()` instead of the actual key!
* | Merge branch 'keymgr-x25519-keys' into 'main'gabi-2502023-06-292-29/+60
|\ \ | |/ |/| | | | | | | | | keymgr: Add support for x25519 keys. Closes #900 See merge request tpo/core/arti!1321
| * keymgr: Remove unneeded error variant.Gabriela Moldovan2023-06-271-5/+0
| | | | | | | | | | The `Unsupported` variant is no longer needed now that we support `KeyType::X25519StaticSecret`s.
| * keymgr: Add support for x25519 keys.Gabriela Moldovan2023-06-272-12/+10
| |
| * keymgr: Return a concrete type from read_ed25519_keypair.Gabriela Moldovan2023-06-271-8/+9
| | | | | | | | | | This also fixes a bug which caused the function to always return a type-erased `()` instead of the actual key!
| * keymgr: Move TODO closer to the code it refers to.Gabriela Moldovan2023-06-271-10/+9
| |
| * keymgr: Map KeyType::X25519StaticSecret to an SshKeyAlgorithm.Gabriela Moldovan2023-06-271-1/+1
| |
| * keymgr: Define an SshKeyAlgorithm enum.Gabriela Moldovan2023-06-271-2/+40
| | | | | | | | | | | | | | | | | | This previously just re-exported `ssh_key::Algorithm`. However, we will need to support x25519 keys (which aren't supported by the `ssh_key` crate), so we define our own enum for the key algorithm. In addition to the `Algorithm` variants from `ssh_key`, our enum also has an `X25519` variant.
* | keymgr: Downgrade "TODO hs" to "TODO HSS".Gabriela Moldovan2023-06-283-5/+5
| | | | | | | | | | These TODOs can be deferred for now: we're not declaring the keymgr APIs stable until we add support for hidden services.
* | keymgr: Downgrade some TODOs to "TODO HSS".Gabriela Moldovan2023-06-282-6/+6
| | | | | | | | These don't need to be blockers for the next release.
* | keymgr: Remove outdated TODOs regarding error handling.Gabriela Moldovan2023-06-282-4/+0
| | | | | | | | These were tackled in #901.
* | keymgr: Implement HasKind for ArtiNativeKeystoreError.Gabriela Moldovan2023-06-281-2/+7
| |
* | keymgr: Implement HasKind for SshKeyError.Gabriela Moldovan2023-06-281-2/+1
|/
* keymgr: Add regression test for tor_keymgr::Error recursion bug.Gabriela Moldovan2023-06-271-0/+39
|
* keymgr: Fix infinite recursion in Error impl.Gabriela Moldovan2023-06-271-2/+1
| | | | | The `source` impl `tor_keymgr::Error` was just calling itself recursively.
* keymgr: Document why we need the StdError impl for tor_keymgr::Error.Gabriela Moldovan2023-06-261-0/+5
|
* keymgr: Remove AsRef<dyn StdError> trait bound and unneeded impls.Gabriela Moldovan2023-06-264-22/+1
| | | | | | We don't really need the `AsRef<dyn StdError>` impls if we make `StdError` a supertrait of `KeystoreError` (and remove the `AsRef<dyn StdError>` trait bound).
* keymgr: Add the file path to SshKeyError context.Gabriela Moldovan2023-06-262-9/+29
|
* keymgr: Add the path to ArtiNativeKeystoreError Display impl.Gabriela Moldovan2023-06-261-3/+3
|
* keymgr: Replace Error with Box<dyn KeystoreError>.Gabriela Moldovan2023-06-266-189/+74
| | | | Part of #901
* keymgr: Add helper for boxing SshKeyError.Gabriela Moldovan2023-06-261-0/+7
|
* keymgr: Implement KeystoreError for SshKeyError.Gabriela Moldovan2023-06-261-2/+18
|
* keymgr: Add some initial variants to SshKeyError.Gabriela Moldovan2023-06-261-1/+20
|
* keymgr: Define an error type for the ssh module.Gabriela Moldovan2023-06-261-0/+8
|
* keymgr: Define an error type for ArtiNativeKeyStore.Gabriela Moldovan2023-06-262-0/+75
| | | | Part of #901
* keymgr: Implement KeystoreError for Bug.Gabriela Moldovan2023-06-261-0/+2
| | | | | | | This also implements `AsRef<StdError>` for `Bug` to satisfy the `KeystoreError: AsRef<dyn StdError>` trait bound. Part of #901
* keymgr: Create a KeyStoreError trait for keystore errors.Gabriela Moldovan2023-06-263-1/+35
| | | | | | The new `BoxedError` type will replace `tor_keymgr::Error`. Part of #901
* keymgr: Remove blank line to satisfy maint/cargo_sort.Gabriela Moldovan2023-06-221-1/+0
|
* keymgr: Make the dummy types non_exhaustive.Gabriela Moldovan2023-06-221-0/+3
|
* keymgr: Add a TODO regarding missing dummy impls.Gabriela Moldovan2023-06-221-1/+3
|
* keymgr: Update outdated docs.Gabriela Moldovan2023-06-221-23/+10
|
* keymgr: Remove outdated TODOs.Gabriela Moldovan2023-06-221-9/+0
|
* keymgr: Remove unnecessary dummy types.Gabriela Moldovan2023-06-222-19/+4
| | | | We don't need dummy impls for `Error` and `Result`.