<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-keymgr/src/mgr.rs, branch arti-v1.4.1</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.1</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.4.1'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2025-01-13T19:29:19Z</updated>
<entry>
<title>tor-keymgr: Use ParsedEd25519Cert when decoding certs.</title>
<updated>2025-01-13T19:29:19Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-12-12T16:41:31Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f88189d035905a4a547efdb6cc07b0fbc4ea6f34'/>
<id>urn:sha1:f88189d035905a4a547efdb6cc07b0fbc4ea6f34</id>
<content type='text'>
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`).
</content>
</entry>
<entry>
<title>tor-keymgr: Fix cert handling tests.</title>
<updated>2025-01-13T19:26:51Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-12-10T11:21:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ff25f71640fd6af92a20b64c71f15b5d6d5f8f75'/>
<id>urn:sha1:ff25f71640fd6af92a20b64c71f15b5d6d5f8f75</id>
<content type='text'>
This updates and reenables the cert management tests.

Part of #1768
</content>
</entry>
<entry>
<title>tor-keymgr: Use Ed25519Cert::decode to parse the certs.</title>
<updated>2025-01-13T19:25:57Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-12-11T14:10:06Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=38c247ae3503bf9061663fb1745363eec123ca8d'/>
<id>urn:sha1:38c247ae3503bf9061663fb1745363eec123ca8d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-key-forge: Split out ItemType as a separate trait.</title>
<updated>2025-01-13T19:22:36Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-12-10T20:27:38Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d45ab843b6506dfbfea456ed585c34f60100a280'/>
<id>urn:sha1:d45ab843b6506dfbfea456ed585c34f60100a280</id>
<content type='text'>
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&lt;dyn ItemType&gt;` instead.
</content>
</entry>
<entry>
<title>tor-key-forge: Distinguish between parsed certs and encodable certs.</title>
<updated>2025-01-13T19:21:45Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-12-11T13:52:14Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ff0e2a9ae1178d6f7a7b3d23ff2b87b8aa3560a0'/>
<id>urn:sha1:ff0e2a9ae1178d6f7a7b3d23ff2b87b8aa3560a0</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>tor-keymgr: Replace from_encodable_cert with validation function.</title>
<updated>2025-01-13T19:21:45Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-12-10T12:07:04Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=841e1f477f2bec92b5be80afcef16df9e1e50a20'/>
<id>urn:sha1:841e1f477f2bec92b5be80afcef16df9e1e50a20</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>fix: fix typos</title>
<updated>2025-01-06T20:36:37Z</updated>
<author>
<name>Dimitris Apostolou</name>
<email>dimitris.apostolou@icloud.com</email>
</author>
<published>2024-12-25T20:48:02Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4acfc23b70c51d2637d0274943a82d1c94dec050'/>
<id>urn:sha1:4acfc23b70c51d2637d0274943a82d1c94dec050</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-keymgr: Replace internal error with keystore corruption error.</title>
<updated>2024-12-04T16:43:31Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-11-26T17:19:00Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6ccae570ebb910c3e5c00f911b3189b09e7488b0'/>
<id>urn:sha1:6ccae570ebb910c3e5c00f911b3189b09e7488b0</id>
<content type='text'>
This replaces a placeholder error with a concrete
`KeystoreCorruptionError` variant.
</content>
</entry>
<entry>
<title>tor-keymgr: Add tests for the new cert mgmt functions.</title>
<updated>2024-12-04T16:43:31Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-11-25T18:25:29Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f75ea0a17327c64d5c63bb435a3f20919f05f001'/>
<id>urn:sha1:f75ea0a17327c64d5c63bb435a3f20919f05f001</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-keymgr: s/TestKey/TestItem in tests.</title>
<updated>2024-12-04T16:43:31Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-11-25T18:06:54Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b552db5c3af0869446e5310f1216be38c27aecf0'/>
<id>urn:sha1:b552db5c3af0869446e5310f1216be38c27aecf0</id>
<content type='text'>
We're about to reuse TestKey as our test key "certificate",
so let's preemptively rename it to something more fitting.
</content>
</entry>
</feed>
