gpt4 book ai didi

algorithm - 为什么 SHA2 有 384 位版本?

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:42:03 25 4
gpt4 key购买 nike

我知道有 256 和 512 版本,因为它们都是 2 的幂。但是 384 是从哪里来的呢?

我知道 384 的二进制表示是 110000000 但我无法理解其中的逻辑。

它不在256和512的中间,连对数的中间都不是。

为什么是 384?

最佳答案

快速浏览维基百科发现:

SHA-256 and SHA-512 are novel hash functions computed with 32-bit and 64-bit words, respectively. They use different shift amounts and additive constants, but their structures are otherwise virtually identical, differing only in the number of rounds. SHA-224 and SHA-384 are simply truncated versions of the first two, computed with different initial values.

查看 comparison在所有变体之间,SHA-384 似乎更能抵抗 length extension attacks比 SHA-512(其更长的版本)。

您可以在 Cryptography Stack Exchange 上找到更详细的答案:here .

关于algorithm - 为什么 SHA2 有 384 位版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46911058/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com