SHA512 / 256是真的还是Sasquatch? [英] SHA512/256 Is it real or is it a Sasquatch?

查看:353
本文介绍了SHA512 / 256是真的还是Sasquatch?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有一个称为SHA512 / 256的哈希,它基本上具有512哈希的强度,但被截断以返回一个较小的256长度值。但是,我找不到任何示例,任何人都可以指向我的示例代码或SHA512 / 256
只是一个C#Sasquatch? 

I understand there is a hash referred to as SHA512/256 which basically has the strength of the 512 hash, but is truncated to return a smaller 256 length value. However, I cannot find any examples, can anyone point me to example code or is the SHA512/256 just a C# Sasquatch? 

谢谢

推荐答案

虽然SHA512 / 256的加密算法与SHA512本身相同,但
初始化常数不同

[quote]

In SHA-512 init()函数将初始状态设置为
的前64位,即前8个素数的平方根的小数部分
。在SHA-384中,这些常量被第九到第十六个素数的平方根的小数部分所取代。

In SHA-512 the init() function sets the initial state to the first 64 bits of the fractional parts of the square roots of the first 8 prime numbers. In SHA-384 these constants are replaced with the fractional parts of the square roots of the ninth through sixteenth prime numbers.

通过类比,我们建议SHA-512/256的初始化常量将是
第十七至第二十四个素数的小数部分

By analogy, we propose that the initialization constants for SHA-512/256 would be the fractional parts of the seventeenth through twenty-fourth prime numbers.

[/ quote]

[/quote]


这篇关于SHA512 / 256是真的还是Sasquatch?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆