Skip to main content
Computes the SHA-256 hash of an array of 32-bit words.

Signature

Arguments

  • input - An array of u32 values to hash
  • last_input_word - The final word when input is not word-aligned
  • last_input_num_bytes - Number of bytes in the last input word (must be less than 4)

Returns

  • The SHA-256 hash of the input array + last_input_word as big endian

Examples