4
SHA-256を実装する
バイトのシーケンスを指定して、シーケンスのSHA-256ハッシュ値を出力します。 SHA-256アルゴリズム 次の擬似コードは、SHA-2のウィキペディアのページから取得したものです。 Note 1: All variables are 32 bit unsigned integers and addition is calculated modulo 2^32 Note 2: For each round, there is one round constant k[i] and one entry in the message schedule array w[i], 0 ≤ i ≤ 63 Note 3: The compression function uses 8 …