Computes the Keccak-256 hash of a byte sequence with custom padding.
This function allows hashing arbitrary byte sequences by providing the input as
64-bit words in little-endian format and a final partial word.
use core::keccak::cairo_keccak;// Hash "Hello world!" by splitting into 64-bit words in little-endianlet mut input = array![0x6f77206f6c6c6548]; // a full 8-byte wordlet hash = cairo_keccak(ref input, 0x21646c72, 4); // 4 bytes of the last wordassert!(hash == 0xabea1f2503529a21734e2077c8b584d7bee3f45550c2d2f12a198ea908e1d0ec);