aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-keymgr
Commit message (Collapse)AuthorAgeFilesLines
...
| * | tor-keymgr: Inline SshKeyError variants into ArtiNativeKeystoreError.Gabriela Moldovan2023-11-202-43/+34
| |/ | | | | | | An `SshKeyError` *is* an Arti keystore error, so let's unify the two.
* / tor-keymgr: impl ToEncodableKey for IPT keysIan Jackson2023-11-231-1/+25
|/
* Merge branch 'more-denotators' into 'main'gabi-2502023-11-201-14/+83
|\ | | | | | | | | | | | | tor-keymgr: Support encoding more than one denotator in an ArtiPath. Closes #1093 and #1112 See merge request tpo/core/arti!1747
| * tor-keymgr: Update ArtiPath docs.Gabriela Moldovan2023-11-201-5/+9
| |
| * tor-keymgr: Remove now-outdated TODO HSSs.Gabriela Moldovan2023-11-201-6/+0
| |
| * tor-keymgr: Support encoding more than one denotator in an ArtiPath.Gabriela Moldovan2023-11-201-3/+74
| | | | | | | | Closes arti#1112
* | Merge branch 'deprecate-hs-client-intro-auth' into 'main'gabi-2502023-11-201-14/+2
|\ \ | |/ |/| | | | | | | | | tor-hscrypto: Deprecate HsClientIntroAuth{Key, Keypair}. Closes #1037 See merge request tpo/core/arti!1749
| * tor-keymgr: Remove the ToEncodableKey impl of HsClientIntroAuthKeypair.Gabriela Moldovan2023-11-201-15/+0
| | | | | | | | | | `HsClientIntroAuthKeypair` is deprecated and no longer used as an "encodable key".
| * tor-keymgr: Allow the use of the newly deprecated HsClientIntroAuthKeypair ↵Gabriela Moldovan2023-11-201-4/+4
| | | | | | | | (fmt).
| * tor-keymgr: Allow the use of the newly deprecated HsClientIntroAuthKeypair.Gabriela Moldovan2023-11-201-1/+4
| |
* | tor-keymgr: Add TODO about possibly abolishing arti_pattern.Gabriela Moldovan2023-11-201-0/+3
| |
* | tor-keymgr: Make the arti_path_prefix() helper private.Gabriela Moldovan2023-11-201-1/+1
| |
* | tor-keymgr: Abolish the `role()` public key specifier function.Gabriela Moldovan2023-11-201-9/+0
| | | | | | | | We don't use this anymore.
* | tor-keymgr: Use ${for fields} to count the number of denotators (fmt).Gabriela Moldovan2023-11-201-5/+4
| |
* | tor-keymgr: Use ${for fields} to count the number of denotators.Gabriela Moldovan2023-11-201-8/+3
| |
* | tor-keymgr: Refactor a commonly used condition into a defcond.Gabriela Moldovan2023-11-201-5/+8
| |
* | tor-keymgr: Apply review suggestions to various doc comments.Gabriela Moldovan2023-11-202-6/+13
| |
* | tor-keymgr: Do not require owned types in arti_pattern().Gabriela Moldovan2023-11-201-3/+3
| | | | | | | | This also fixes a clippy warning about a needless borrow.
* | tor-keymgr: Suppress a confused clippy warning.Gabriela Moldovan2023-11-201-0/+2
| | | | | | | | | | | | | | Clippy is wrong here: it's complaining about us not using `$crate`, when we _are_ using `$crate`. See https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1733#note_2965924
* | tor-keymgr: Remove unused macro.Gabriela Moldovan2023-11-201-241/+0
| |
* | tor-keymgr: Rewrite define_key_specifier using derive-adhoc (fmt).Gabriela Moldovan2023-11-201-37/+36
| |
* | tor-keymgr: Rewrite define_key_specifier using derive-adhoc.Gabriela Moldovan2023-11-203-18/+151
| | | | | | | | | | | | | | | | For the most part, this is just code movement. The implementation was copied over to `define_derive_adhoc` from `define_key_specifier`, with some minor adjustments that were needed to make it compile. Closes #1093
* | tor-keymgr: Add tests for arti_prefix().Gabriela Moldovan2023-11-201-0/+11
| |
* | tor-keymgr: Add tests for arti_pattern().Gabriela Moldovan2023-11-201-0/+15
|/ | | | | | | | | `T::arti_pattern()` returns an `ArtiPath` pattern that can can match any key of type `T`, regardless of the values of its denotators (the denotators are replaced by wildcards in the pattern). These tests will allow us to check we're not breaking pattern matching when we transition to derive-adhoc.
* Upgrade to itertools 0.12.0Nick Mathewson2023-11-151-1/+1
|
* tor-keymgr: Add missing backticks (fmt).Gabriela Moldovan2023-11-132-3/+2
|
* tor-keymgr: Add missing backticks.Gabriela Moldovan2023-11-131-2/+2
|
* tor-keymgr: Move module-level docs to KeyMgr.Gabriela Moldovan2023-11-131-13/+13
| | | | The module is private so it won't show up in the public docs.
* tor-keymgr: Expand the ArtiNativeKeystore docs.Gabriela Moldovan2023-11-131-1/+19
|
* tor-keymgr: Clarify how the default/secondary stores are used.Gabriela Moldovan2023-11-131-2/+25
|
* tor-keymgr: Mention the custom SSH algorithm name for expanded ed keys.Gabriela Moldovan2023-11-131-1/+2
|
* tor-keymgr: Clarify what ArtiPath are used for.Gabriela Moldovan2023-11-132-2/+7
|
* tor-keymgr: Add some doctests.Gabriela Moldovan2023-11-131-0/+35
|
* tor-keymgr: Abolish KeyPathPatternSet.Gabriela Moldovan2023-11-133-56/+36
| | | | | | We don't really need it. Closes #1066
* tor-keymgr: Downgrade a TODO HSS to TODO.Gabriela Moldovan2023-11-131-1/+1
|
* tor-keymgr: Add TODO about adding helper for implementing KeyDenotator.Gabriela Moldovan2023-11-021-0/+2
|
* tor-keymgr: Map all errors to KeystoreCorruptionError (fmt).Gabriela Moldovan2023-11-021-4/+2
|
* tor-keymgr: Map all errors to KeystoreCorruptionError.Gabriela Moldovan2023-11-021-2/+2
|
* tor-keymgr: Use KeystoreCorruptionError instead of internal!.Gabriela Moldovan2023-11-021-3/+3
|
* tor-keymgr: Add an error type for keystore corruption (fmt).Gabriela Moldovan2023-11-022-4/+4
|
* tor-keymgr: Add an error type for keystore corruption.Gabriela Moldovan2023-11-022-1/+30
|
* tor-keymgr: Use ArrayVec to avoid an unnecessary allocation.Gabriela Moldovan2023-11-022-2/+4
|
* tor-keymgr: Use parse() instead of from_str().Gabriela Moldovan2023-11-021-5/+3
|
* tor-keymgr: Add TODO about supporting multiple key denotators.Gabriela Moldovan2023-11-021-0/+5
|
* tor-keymgr: Add test for the KeyDenotator impl for TimePeriod.Gabriela Moldovan2023-11-021-0/+11
|
* tor-keymgr: Remove unused KeyDenotator::glob() function.Gabriela Moldovan2023-11-021-11/+0
| | | | | We no longer need this function now that we always match the entire denotator rather than its individual components,
* tor-keymgr: Add test for ArtiPath denotator validation.Gabriela Moldovan2023-11-021-0/+22
|
* tor-keymgr: Update the test for paths with `+` as a disallowed char.Gabriela Moldovan2023-11-021-1/+9
| | | | | | `'+'` is now allowed to occur once within an `ArtiPath` (but **not** within an `ArtiPathComponent`), so we need to special case the `"c++"` test.
* tor-keymgr: Use the new denotator separator instead of underscore.Gabriela Moldovan2023-11-021-8/+21
| | | | | | | | Underscores are used within `ArtiPath`s as visual separators. To reduce ambiguity, we now use a different character for separating the key denotators (e.g. time periods) from the rest of the `ArtiPath`. Closes #1063
* tor-keymgr: Add a constant for the denotator separator.Gabriela Moldovan2023-11-022-1/+9
|