Score:2

How did the developers of SHA-2 algorithm come to what we have now?

gs flag

After a bit of research, I finally understand what's the step by step algorithm of SHA-2 (however, of course, I won't remember it myself). But I don't understand what's the idea behind it. Did the group of the algorithm's developers just randomly pick some constants and functions and apply them to the data and these constants, and then prove that it is strong enough? How else would they come up with such functions? I couldn't find a beginner-friendly answer for this question. Hope here I can ask for help.

kelalaka avatar
in flag
The experience path MD4-> MD-5 -> SHA-0 -> SHA-1 -> SHA-2. There is no proof for security, analyzed according to known attacks.
Wynell avatar
gs flag
So they Did just randomly pick those constants and functions and we now have this as a "standard"?
kelalaka avatar
in flag
Constant = Initial values; they are usually chosen nothing-in-my-sleeve-number, see [here](https://crypto.stackexchange.com/q/41496/18298).
kelalaka avatar
in flag
They are based on MD construction, so a block cipher (compression function) is constructed (named SHACAL for SHA-1) with higher rounds than normal block cipher and wider block-size. The security ( almost) is based on the compression function.
DannyNiu avatar
vu flag
Although not a duplicate, the [answer](https://crypto.stackexchange.com/a/95581/36960) to another question may explain well the mechanism of Merkle-Daamgard-based hash functions.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.