<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-keymgr/src/key_specifier.rs, branch arti-v1.4.0</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.4.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.4.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2024-12-04T16:42:06Z</updated>
<entry>
<title>tor-keymgr: Add helper for building certificate ArtiPaths.</title>
<updated>2024-12-04T16:42:06Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-11-22T14:21:43Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6b75f5f41d27fb49c79e0db419bb7d72cfb658e1'/>
<id>urn:sha1:6b75f5f41d27fb49c79e0db419bb7d72cfb658e1</id>
<content type='text'>
This will be used for looking up certificates in the keystore.
</content>
</entry>
<entry>
<title>tor-keymgr: Add a KeyCertificateSpecifier trait.</title>
<updated>2024-12-04T16:38:44Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-11-20T14:59:33Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ddbece9b372d06f6d8d666203951c98448173b34'/>
<id>urn:sha1:ddbece9b372d06f6d8d666203951c98448173b34</id>
<content type='text'>
This will be used for defining key certificate specifiers.
</content>
</entry>
<entry>
<title>tor-keymgr: Rename KeyPathRange to ArtiPathRange.</title>
<updated>2024-10-08T13:23:17Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-09-25T18:23:26Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=05066b0ebfc769cb54018d9633646ace70456ee3'/>
<id>urn:sha1:05066b0ebfc769cb54018d9633646ace70456ee3</id>
<content type='text'>
This is only used for representing portions of `ArtiPath`s, so let's
rename it accordingly.
</content>
</entry>
<entry>
<title>tor-keymgr: Implement KeyPath::matches for CTorPaths.</title>
<updated>2024-10-08T13:23:17Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-09-25T18:20:08Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b2170d7d8a680255e389a3600444b50bd9d3a363'/>
<id>urn:sha1:b2170d7d8a680255e389a3600444b50bd9d3a363</id>
<content type='text'>
`KeyPath::matches` now returns a boolean (because we can't return a
matching "range" for `CTorPaths`, because unlike ArtiPaths, they're not
represented as `String`s, and do not have variable parts that need to be
captured).
</content>
</entry>
<entry>
<title>tor-keymgr: Reimagine CTorPath as an enum.</title>
<updated>2024-10-08T13:23:17Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-09-20T15:39:43Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=971304d31bdb38fd9e6133941d2e021d4bb7dd6d'/>
<id>urn:sha1:971304d31bdb38fd9e6133941d2e021d4bb7dd6d</id>
<content type='text'>
C Tor's client restricted discovery keys don't have the service hsid
encoded in the filename (the hsid of the service each key is associated
with is encoded in contents of the key file). This means that given a
key specifier like `HsClientDescEncKeypairSpecifier` (which is a wrapper
over an HsId), we can't actually compute the relative path of the key in
its `KeySpecifier::ctor_path()` implementation. To do so we would need
to access the keystore to figure out which path contains the requested
HsId, which we can't (and shouldn't!) do from within the `KeySpecifier`
impl.

This suggests the String newtype (representing a relative path) we
previously had is not a good abstraction for `CTorPath`s. Moreover,
`CTorPath` are static (they don't have dynamic components like
`ArtiPath`), so it makes more sense to model `CTorPath` as an enum.

The new `CTorPath::ClientHsDescEncKey(HsId)` variant will be used to
instruct the C Tor client keystore to find the file that contains the
specified `HsId`, while the `Service` variant will be used for hidden
service keys.
</content>
</entry>
<entry>
<title>tor-hsservice: Move HsNickname to tor-persist.</title>
<updated>2024-10-08T13:21:13Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-09-26T12:13:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c744120a6709810bf89458485b8439ebabd02451'/>
<id>urn:sha1:c744120a6709810bf89458485b8439ebabd02451</id>
<content type='text'>
We are about to need this in `tor-keymgr`, where we're about to add a
config for C Tor service keystores (the C Tor keystore config will have
an associated `HsNickname` that specifies which of the arti hidden
services it's supposed to be used with).
</content>
</entry>
<entry>
<title>Upgrade to derive_more version 1.0.0</title>
<updated>2024-09-25T14:37:18Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-09-25T14:37:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6a12c2ba8515226a772d5f4a81930bf42d67535a'/>
<id>urn:sha1:6a12c2ba8515226a772d5f4a81930bf42d67535a</id>
<content type='text'>
The `derive_more` crate broke backward compatibility with this version,
so this change involved quite a few manual fixups.
With luck, they'll keep compatibility for some while in the future.
</content>
</entry>
<entry>
<title>rename get_keypair_specifier() to keypair_specifier()</title>
<updated>2024-09-09T16:12:27Z</updated>
<author>
<name>Adam Joseph F0B74D717CDE8412A3E0D4D5F29AC8080DA8E1E0</name>
<email>3587-amjoseph@gitlab.torproject.org</email>
</author>
<published>2024-09-09T16:12:17Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6b6e56bb65f5395d4afe6922219f9b2dc6e110a1'/>
<id>urn:sha1:6b6e56bb65f5395d4afe6922219f9b2dc6e110a1</id>
<content type='text'>
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2393#note_3073480
</content>
</entry>
<entry>
<title>tor_keymgr: add get_keypair_specifier() to KeySpecifier, and derive it</title>
<updated>2024-09-09T16:08:10Z</updated>
<author>
<name>Adam Joseph F0B74D717CDE8412A3E0D4D5F29AC8080DA8E1E0</name>
<email>3587-amjoseph@gitlab.torproject.org</email>
</author>
<published>2024-09-07T07:24:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=dfec9e8e9106b470fe26b6a8307f098ec6d7ba99'/>
<id>urn:sha1:dfec9e8e9106b470fe26b6a8307f098ec6d7ba99</id>
<content type='text'>
This commit adds a new method `get_keypair_specifier()` to `KeySpecifier`.
This method is used to indicate when one KeySpecifier (e.g. `KP_hs_id`) is the
public part of another keypair (e.g. `KS_hs_id`).  It will return the
containing keypair in this case, and `None` otherwise.
</content>
</entry>
<entry>
<title>Fix new "clippy::needless-maybe-sized" warning on nightly</title>
<updated>2024-07-28T21:48:35Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-07-28T21:34:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1b6394cec9653937b404b93ed510e90b2eff9ae7'/>
<id>urn:sha1:1b6394cec9653937b404b93ed510e90b2eff9ae7</id>
<content type='text'>
This warning complains when we say `where T: SomeTrait + ?Sized`
when `SomeTrait` is inherently Sized.
</content>
</entry>
</feed>
