mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-31 12:03:09 +00:00
15 lines
458 B
Rust
15 lines
458 B
Rust
|
|
/// A Keccak-f based hash.
|
||
|
|
///
|
||
|
|
/// This hash does not use standard Keccak padding, since we don't care about extra zeros at the
|
||
|
|
/// end of the code.
|
||
|
|
pub(crate) fn hash_kernel(_code: &[u8]) -> [u32; 8] {
|
||
|
|
let state = [0u32; 50];
|
||
|
|
// TODO: absorb code
|
||
|
|
state[0..8].try_into().unwrap()
|
||
|
|
}
|
||
|
|
|
||
|
|
/// Like tiny-keccak's `keccakf`, but deals with `u32` limbs instead of `u64` limbs.
|
||
|
|
pub(crate) fn keccakf_u32s(_state: &mut [u32; 50]) {
|
||
|
|
// TODO: Implement
|
||
|
|
}
|