<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-hscrypto/src/macros.rs, branch main</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=main</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2025-07-23T15:31:30Z</updated>
<entry>
<title>tor-hscrypto: fix typos</title>
<updated>2025-07-23T15:31:30Z</updated>
<author>
<name>tcyrus</name>
<email>4027-tcyrus@gitlab.torproject.org</email>
</author>
<published>2025-06-26T21:18:47Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8150a93956daec49663927e5e784765211f3e26a'/>
<id>urn:sha1:8150a93956daec49663927e5e784765211f3e26a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>hscrypto: Downgrade a TODO HSS comment.</title>
<updated>2024-01-15T02:03:08Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-01-15T02:03:08Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d6eb88943cc0b7874cd1dc42e00c2ef7faae7727'/>
<id>urn:sha1:d6eb88943cc0b7874cd1dc42e00c2ef7faae7727</id>
<content type='text'>
This is not a blocker; it's just a code movement or duplication
issue IIUC.
</content>
</entry>
<entry>
<title>Convert to the latest versions of dalek-cryptography</title>
<updated>2023-11-29T15:34:58Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-11-21T15:58:29Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=98037a2c788bd901679139178d25f855324637f3'/>
<id>urn:sha1:98037a2c788bd901679139178d25f855324637f3</id>
<content type='text'>
The main changes that we have to adjust for are as follows:

* In x25519-dalek:
  * `StaticSecret` is now behind a feature.
  * `StaticSecret::new` is deprecated in favor of
    `StaticSecret::random_from_rng`.
  * StaticSecret no longer does its own clamping.

* In ed25519-dalek:
  * `SecretKey` has (in effect) been renamed to `SigningKey`. The name
    `SecretKey` is now an alias for `[u8; 32]`.
  * `SigningKey` is effectively a keypair, since it contains a
     public key as well.
  * `PublicKey` has been renamed to `VerifyingKey`.
  * The functions to extract a signing key and verifying key have
    been renamed as you might expect.
  * `ExpandedSecretKey` has been moved to `hasmat` and no longer
    implements `sign`.
  * `ExpanededSecretKey` now has as its elements a scalar and a hash
    prefix.
  * Various functions that took `&amp;[u8]` now take `&amp;[u8; N]`.
  * We no longer need a wrapper for older versions of rand.

There is a single test in tor-keymgr that does not pass.  I've
marked it as ignore for now, in hopes that @gabi-250 can help me
figure it out.

This closes #808.  There are several changes I want to make before
we merge, however. They are marked with TODO DALEK.
</content>
</entry>
<entry>
<title>tor-hscrypto: Add a TODO re re-implementation of x25519 keypair gen</title>
<updated>2023-11-23T17:30:44Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-11-23T17:24:27Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2193268fb102ae7deebfc010f7fd1f16621dae43'/>
<id>urn:sha1:2193268fb102ae7deebfc010f7fd1f16621dae43</id>
<content type='text'>
IMO it is quite undesirable to have multiple copies of "gen a secret
key and make a keypair out of it".  Add a TODO HSS and and a ref to
arti#1137 which is related.
</content>
</entry>
<entry>
<title>tor-hscrypto: Add a docs TODO re the define_pk_keypair macro</title>
<updated>2023-11-23T17:29:51Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-11-23T17:12:24Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8f95a1cd1c3166534735704ca1115c32ebd540d5'/>
<id>urn:sha1:8f95a1cd1c3166534735704ca1115c32ebd540d5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-hscrypto: Define Keypair conversions for all curve25519 newtypes</title>
<updated>2023-11-23T17:29:51Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-11-23T14:54:10Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8406d0d76ee3ed4d82121195c806f77a45dd7de8'/>
<id>urn:sha1:8406d0d76ee3ed4d82121195c806f77a45dd7de8</id>
<content type='text'>
1. Move `impl From&lt;SpecificKeypair&gt; for curve25519::StaticKeypair`
   (which was just a bespoke impl for HsClientDescEncKeypair)
   into the define_pk_keypair macro, so everything has it.
   Currently the only other user of the curve25519_pair feature is HsSvcNtorKey.

2. Provide the reverse conversion too.
</content>
</entry>
<entry>
<title>tor-hsservice: Add HsClientDescEncKeypair.</title>
<updated>2023-09-25T18:56:51Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-09-25T15:24:14Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=66ea8c9f4af825858535dc7fb0c3e8bf7bc83840'/>
<id>urn:sha1:66ea8c9f4af825858535dc7fb0c3e8bf7bc83840</id>
<content type='text'>
</content>
</entry>
<entry>
<title>hs_ntor: Take our k_hss_ntor keypair explicitly.</title>
<updated>2023-09-20T14:26:14Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-09-20T14:26:14Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b6b8fe7effc8071e8e73ccb63837772ad0d9169a'/>
<id>urn:sha1:b6b8fe7effc8071e8e73ccb63837772ad0d9169a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-crypto: Fix some derive formatting</title>
<updated>2023-09-18T11:28:11Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-09-18T10:57:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=220d5d78f70d80d6b1c7d0bb364ab4eecd630f37'/>
<id>urn:sha1:220d5d78f70d80d6b1c7d0bb364ab4eecd630f37</id>
<content type='text'>
This was missing the conventional spaces.  Noticed in passing.
</content>
</entry>
<entry>
<title>hscrypto: Define a keypair type for HsSvcNtor{,Secret}Key</title>
<updated>2023-09-17T14:58:16Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-09-12T20:16:05Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=86eea3351856bc93af5bd5ed3d1baede2abefaa2'/>
<id>urn:sha1:86eea3351856bc93af5bd5ed3d1baede2abefaa2</id>
<content type='text'>
(Also, extend our macro so that we can wrap other curve25519 keys in
this way, if we want.)
</content>
</entry>
</feed>
