coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cksum: add support for SHA-3


From: Collin Funk
Subject: Re: cksum: add support for SHA-3
Date: Mon, 01 Sep 2025 10:50:04 -0700
User-agent: Gnus/5.13 (Gnus v5.13)

Hi Jeffrey,

Jeffrey Walton <noloader@gmail.com> writes:

> Be careful of truncated hashes. Kelsey showed you cannot simply lop off
> bits and maintain security levels.
>
> The truncated hash use case is one of the use cases handled by SHA3 and the
> extensible output function (XOF). The idea is, different size
> outputs produce completely different hashes under the same input.
>
> For example, these should produce completely unique outputs, and not share
> the same "stem" or leftmost bits.
>
>     $ ./src/cksum -a sha3 -l 224 COPYING
>     SHA3-224 (COPYING) =
> 0e93a263ef507adafd16b2330ba30384c89f56700198efe7b54588a0
>     $ ./src/cksum -a sha3 -l 112 COPYING
>     SHA3-112 (COPYING) = 0e93a263ef507adafd16b2330ba3

Thanks for the input.

Here is the Kelsey presentation just for reference [1].

Collin

[1] 
https://csrc.nist.gov/csrc/media/events/first-cryptographic-hash-workshop/documents/kelsey_truncation.pdf



reply via email to

[Prev in Thread] Current Thread [Next in Thread]