summaryrefslogtreecommitdiff
path: root/crates/tor-keymgr
Commit message (Collapse)AuthorAgeFilesLines
* Minor-version bumps, for crates with breaking changes.Nick Mathewson2023-10-021-1/+1
|
* Patchlevel bumps, with dependents affected.Nick Mathewson2023-10-021-3/+3
|
* Merge branch 'keymgr-blinded-keys' into 'main'gabi-2502023-09-266-27/+179
|\ | | | | | | | | tor-keymgr: Support storing `ed25519::ExpandedKeypair`s in the keystore See merge request tpo/core/arti!1619
| * tor-keymgr: Fix clippy warning (fmt).Gabriela Moldovan2023-09-261-4/+1
| |
| * tor-keymgr: Fix clippy warning.Gabriela Moldovan2023-09-261-1/+1
| |
| * tor-keymgr: Add a TODO regarding parsing errors.Gabriela Moldovan2023-09-261-0/+3
| |
| * tor-keymgr: Test expanded expanded-ed25519 SSH key parsing.Gabriela Moldovan2023-09-264-0/+47
| |
| * tor-keymgr: Extend parse_openssh! to support expanded ed25519 keypairs.Gabriela Moldovan2023-09-261-5/+46
| |
| * tor-keymgr: Implement EncodableKey for ExpandedKeypair.Gabriela Moldovan2023-09-263-6/+44
| |
| * tor-keymgr: Assign a custom algorithm name for expanded ed25519 keys.Gabriela Moldovan2023-09-261-16/+42
| | | | | | | | | | | | | | We need to be able to store `HsBlindIdKeypair`s in the keystore, and since blinded keys are expanded e25519 keypairs which don't have a "standard" OpenSSH key encoding, we define a custom `[email protected]` SSH key type for this purpose.
* | tor-keymgr: Add TODO about key file extensions.Gabriela Moldovan2023-09-261-0/+9
| |
* | tor-keymgr: Make SshKeyData accessors more idiomatic.Gabriela Moldovan2023-09-262-9/+11
| |
* | tor-keymgr: Fix broken doc link.Gabriela Moldovan2023-09-261-1/+1
| |
* | tor-keymgr: Make SshKeyData non-exhaustive.Gabriela Moldovan2023-09-261-1/+1
| | | | | | | | | | We will need to add another variant to this when we add support for certificates.
* | tor-keymgr: Derive Clone, Debug for SshKeyData.Gabriela Moldovan2023-09-261-1/+1
|/
* tor-keymgr: Rename as_ssh_keypair_data to as_ssh_key_data.Gabriela Moldovan2023-09-263-8/+8
| | | | | This function no longer returns `KeypairData` (it now returns `SshKeyData`).
* tor-keymgr: Add tests for OpenSSH public key parsing.Gabriela Moldovan2023-09-265-0/+30
|
* tor-keymgr: Use a macro to make the tests less repetitive.Gabriela Moldovan2023-09-261-33/+45
|
* tor-keymgr: Add TODO about rethinking KeyType.Gabriela Moldovan2023-09-261-0/+8
|
* tor-keymgr: Make parse_ssh_format_erased handle public keys too (fmt).Gabriela Moldovan2023-09-261-8/+15
|
* tor-keymgr: Make parse_ssh_format_erased handle public keys too.Gabriela Moldovan2023-09-261-57/+5
| | | | | This rewrites `KeyType::parse_ssh_format_erased` to use the new `parse_openssh!` macro.
* tor-keymgr: Add helpers for parsing OpenSSH public and private keys.Gabriela Moldovan2023-09-261-0/+103
| | | | | | | | | `KeyType::parse_ssh_format_erased` currently only handles private keys. The code for parsing public keys is very similar, so we introduce a macro to avoid code duplication. Note: the macro is currently unused (it will be used in a future commit).
* tor-keymgr: Implement ToEncodableKey for HsIdKey.Gabriela Moldovan2023-09-251-3/+3
|
* tor-keymgr: Implement EncodableKey for ed25519 public keys.Gabriela Moldovan2023-09-251-3/+5
|
* tor-keymgr: Implement EncodableKey for x25519 public keys.Gabriela Moldovan2023-09-251-0/+26
|
* tor-keymgr: Add KeyType variants for public keys.Gabriela Moldovan2023-09-252-4/+15
|
* tor-keymgr: Make EncodableKey support public keys too.Gabriela Moldovan2023-09-254-22/+61
| | | | | | | | | Previously, `EncodableKey::to_keypair_data` could only be used for encoding private keys (its return type was `KeypairData`). Now `EncodableKey::to_keypair_data` can return public key data (`KeyData`) too. Note: `to_keypair_data()` will be renamed in a future commit.
* tor-keymgr: Represent unparsed ssh key as strings.Gabriela Moldovan2023-09-252-10/+10
| | | | | | | | The underlying representation of an `UnparsedOpenSshKey` is now a `String`. This will make it easier to support storing public keys in the keystores: in the future, we will use `PublicKey::from_openssh` to parse public keys, and `PublicKey::from_openssh` expects a string slice (unlike `PrivateKey::from_openssh`, which takes a `&[u8]`).
* tor-keymgr: Add (experimental) notices to semver.mdGabriela Moldovan2023-09-251-6/+6
|
* tor-hsclient, arti-client, tor-keymgr, tor-netdoc: Use a keypair instead of ↵Gabriela Moldovan2023-09-252-4/+8
| | | | StaticSecret (fmt).
* tor-hsclient, arti-client, tor-keymgr, tor-netdoc: Use a keypair instead of ↵Gabriela Moldovan2023-09-255-20/+35
| | | | | | | | | | | | | StaticSecret. Previously, when retrieving `KS_hsc_desc_enc` keys (or any other x25519 keys) from the keystore, the keymgr would discard the public part of the key (SSH private keys contain the public part of the key too). Instead of discarding the public key and returning just the `StaticSecret`, the keymgr now returns a `StaticKeypair`. This makes the x25519 `EncodableKey`/`ToEncodableKey` implementation consistent with the ed25519 one (which retrieves key pairs rather than "unescorted" secrets).
* tor-hsservice: Support storing desc signing keys in the keystore.Gabriela Moldovan2023-09-221-1/+14
|
* tor-hsservice: Support storing HsIdKeys in the keystore.Gabriela Moldovan2023-09-221-1/+35
|
* tor-hsservice: Add key specifier for blinded_id keypairs.Gabriela Moldovan2023-09-221-1/+13
|
* tor-keymgr: Remove redundant _private suffix from key extension.Gabriela Moldovan2023-09-122-4/+4
| | | | The privateness of the keys is encoded in their name.
* Remove semver.md now that 1.1.8 is out.Nick Mathewson2023-09-051-9/+0
|
* Update patchlevel for crates with nontrivial changes.Nick Mathewson2023-09-051-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are: ``` hashx equix tor-async-utils tor-error tor-config tor-rtmock tor-llcrypto tor-bytes tor-hscrypto tor-hspow tor-cert tor-linkspec tor-cell tor-proto tor-netdoc tor-netdir tor-chanmgr tor-guardmgr tor-dirmgr tor-keymgr tor-hsclient tor-hsservice arti-client arti ```
* tor-keymgr: Bump ssh-key to 0.6.1 and remove unnecessary dependency.Gabriela Moldovan2023-08-241-11/+1
| | | | | | | Now that [ssh-key 0.6.1] is out, we no longer need the explicit sec1 dependency in tor-keymgr. [ssh-key 0.6.1]: https://github.com/RustCrypto/SSH/pull/155
* tor-keymgr, tor-hsservice: Run rustfmt to make derives uglierIan Jackson2023-08-231-3/+13
|
* tor-keymgr, tor-hsservice: deser for ArtiPathComponent and HsNicknameIan Jackson2023-08-233-0/+27
|
* tor-keymgr: Improve ArtiPathComponent a bitIan Jackson2023-08-232-0/+18
| | | | And add a TODO about the error type.
* Run maint/add_warning to add lint block everywhereIan Jackson2023-08-235-0/+5
|
* Resolve warnings about ambiguous/redundant doc linksNick Mathewson2023-08-221-1/+1
| | | | | Nightly rustdoc now warns if you have a link that isn't necessary, and if you have a link that might refer to two different things.
* keymgr: Write a registry sketch.Gabriela Moldovan2023-08-161-2/+49
| | | | This comment will form the basis for the protocol name registry.
* tor-keymgr: Add sec1 0.7.3 dependency.Gabriela Moldovan2023-08-161-0/+10
|
* tor-keymgr: Re-export ssh-key.Gabriela Moldovan2023-08-164-13/+16
| | | | | | | | | | The `KeypairData` type from [ssh-key] at some point leaked into the keymgr API (via the `EncodableKey` trait). Instead of re-exporting just `KeypairData`, let's re-export the entire `ssh_key` crate (`EncodableKey` implementors would need additional types from `ssh_key` to construct a `KeypairData` object anyway). [ssh-key]: https://crates.io/crates/ssh-key
* keymgr: Implement as_ssh_keypair_data for curve25519 keys.Gabriela Moldovan2023-08-161-4/+13
|
* keymgr: Import internal! (fmt).Gabriela Moldovan2023-08-161-4/+2
|
* keymgr: Import internal!.Gabriela Moldovan2023-08-161-3/+3
|
* keymgr: Remove unused helper.Gabriela Moldovan2023-08-161-33/+0
| | | | | This helper is no longer needed (the logic from `parse_ssh_format_erased` changed).