public inbox for nncp-devel@lists.stargrave.org
Atom feed
From: Sergey Matveev <stargrave@stargrave•org>
To: nncp-devel@lists.cypherpunks.su
Subject: Re: gemtext (was: So I made a thing: nncp-echomail)
Date: Sat, 4 Oct 2025 22:23:38 +0300 [thread overview]
Message-ID: <aOF0WwmgnMOpNAgy@stargrave.org> (raw)
In-Reply-To: <CAO-d-4qdGtvUujnZ7estfPjgNeYGyv8ouqU2Ug_EdhWVSjNJPQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1459 bytes --]
*** Eugene Medvedev [2025-10-04 21:39]:
>I've been there for most of the 90s. FTN standards at the time specified
>the use of 0x8D as something equivalent to ­ in HTML, so it would
>simply disappear upon rendering everywhere. If you didn't tune your
>software to replace it with 0x48, everyone would call you a lamer.
Yeah, I am aware about the etymology of that joke with "Н" :-)
Seems that at my time all software was tend to be correctly configured.
>> You can safely shorten its output, as often done in practice. ZFS does
>> that (one example immediately remembered).
>
>Shorten as in what, just take the first 32 bytes? Are they all actually
>equally significant?
In practice, in case of SHA2 (and I believe in all other cryptographic
hashes we use in practice), yes. They has uniform distribution. Ideally
you would use SHA2-512/256 variant, where SHA2's state is initialised
with different "magic numbers" to separate the context of ordinary
SHA2-512 from SHA2-512/256, because if you happen to get SHA2-512, then
you can "calculate" its stripped variant. With proper SHA2-512/256
hashes are not "interexchangable". But in most cases, especially in
pretty trivial like nncp-echomail, we can ignore that paranoid context
separation and just use 32 bytes of SHA2-512 (does not matter first half
or second).
--
Sergey Matveev (http://www.stargrave.org/)
LibrePGP: 12AD 3268 9C66 0D42 6967 FD75 CB82 0563 2107 AD8A
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 265 bytes --]
next prev parent reply other threads:[~2025-10-04 19:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-04 13:52 So I made a thing: nncp-echomail Eugene Medvedev
2025-10-04 16:56 ` gemtext (was: So I made a thing: nncp-echomail) Sergey Matveev
2025-10-04 17:51 ` Eugene Medvedev
2025-10-04 18:20 ` Sergey Matveev
2025-10-04 18:39 ` Eugene Medvedev
2025-10-04 19:23 ` Sergey Matveev [this message]
2025-10-04 19:34 ` Eugene Medvedev
2025-10-15 20:46 ` Eugene Medvedev
2025-10-26 11:13 ` NNCP_PACKET and NNCP_ORIGIN Sergey Matveev