SHA-1 - 维基百科,自由的百科全书
以下是SHA-1算法的伪代码: . Note: All variables are unsigned 32 bits and wrap modulo 2 32 when calculating Initial variables: h0 := 0x67452301 h1 := 0xEFCDAB89 h2 := 0x98BADCFE h3 := 0x10325476 h4 := 0xC3D2E1F0 Pre-processing: append the bit 1 to the message append k bits 0, where k is the minimum number >= 0 such that the resulting message length (in bits) is congruent to 448 . . .
more