<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-keymgr/src/mgr.rs, branch arti-v1.4.3</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.3</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.4.3'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2025-04-02T15:40:15Z</updated>
<entry>
<title>tor-keymgr: BREAKING: Refactor API: Keystore::insert</title>
<updated>2025-04-02T15:40:15Z</updated>
<author>
<name>playbahn</name>
<email>plabanroy69@gmail.com</email>
</author>
<published>2025-04-02T15:40:15Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f9aa4fb2c635a3fa9efd4917e59e3352ee2ef75b'/>
<id>urn:sha1:f9aa4fb2c635a3fa9efd4917e59e3352ee2ef75b</id>
<content type='text'>
Drop redundant/unused param item_type: &amp;KeystoreItemType from
keystore::Keystore::insert. Method now uses param
key: &amp;dyn EncodableItem to obtain a KeystoreItemType
</content>
</entry>
<entry>
<title>tor-keymgr: Fix TODO: Refactor API: Keystore::insert</title>
<updated>2025-04-01T23:15:39Z</updated>
<author>
<name>playbahn</name>
<email>plabanroy69@gmail.com</email>
</author>
<published>2025-03-30T21:21:25Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=961f8a6aad4208349f8bad0c9da33c759f0c63cf'/>
<id>urn:sha1:961f8a6aad4208349f8bad0c9da33c759f0c63cf</id>
<content type='text'>
Makes param item_type redundant. Renames item_type -&gt; _item_type.
</content>
</entry>
<entry>
<title>tor-keymgr: Introduce ItemMetadata type for testing.</title>
<updated>2025-03-26T11:32:13Z</updated>
<author>
<name>vijayabhaskar_78</name>
<email>vijayabhaskar.santhuluri@gmail.com</email>
</author>
<published>2025-03-26T11:32:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=abda10c037f84103d9838523bc6a2c5ebbfa881b'/>
<id>urn:sha1:abda10c037f84103d9838523bc6a2c5ebbfa881b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use an EntropicRng trait to enforce key generation rules.</title>
<updated>2025-03-24T19:11:48Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-03-20T15:09:08Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8a33afe155e9bd29d9302b4b44dd5843d00866db'/>
<id>urn:sha1:8a33afe155e9bd29d9302b4b44dd5843d00866db</id>
<content type='text'>
We want to require that whenever we generate a key that's persistent
(stored in KeyMgr), it's going to be made from a stronger-than-usual
Rng.  This trait helps us enforce that.

We also add a FakeEntropicRng struct to use for testing.

Note that this turned up a case that we'd missed, which required
an internal change in tor-hsservice.
</content>
</entry>
<entry>
<title>squash! Upgrade rand dependency to 0.9.</title>
<updated>2025-03-18T16:09:44Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-03-18T13:01:31Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2f8993c22c2b86010e4fd8b5169ef0ab83f8c754'/>
<id>urn:sha1:2f8993c22c2b86010e4fd8b5169ef0ab83f8c754</id>
<content type='text'>
- `rand::thread_rng()` has been deprecated and renamed to `rand::rng()`
</content>
</entry>
<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>
</feed>
