Computes the next SHA-256 state of the input with the given state.

Signature

pub extern fn sha256_process_block_syscall(state: Sha256StateHandle, input: Box) -> Result> implicits(GasBuiltin, System) nopanic;

Arguments

  • state - The current SHA-256 state.
  • input - The input provided to compute the next SHA-256 state.

Returns

  • The next SHA-256 state of the input with the givens state.
The system call does not add any padding and the input needs to be a multiple of 512 bits (== 16 u32 word).