Skip to content

Commit 54b1b10

Browse files
committed
Hard-code lengths
1 parent 772dde1 commit 54b1b10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

std/machines/hash/keccakf32_memory.asm

+2-2
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ machine Keccakf32Memory(mem: Memory) with
596596

597597
query |row| compute_from_multi(
598598
c, row, a,
599-
|a_fe| array::new(array::len(c), |i| {
599+
|a_fe| array::new(5 * 64, |i| {
600600
let x = i / 64;
601601
let z = i % 64;
602602
let limb = z / 32;
@@ -628,7 +628,7 @@ machine Keccakf32Memory(mem: Memory) with
628628

629629
query |row| compute_from_multi(
630630
a_prime, row, a + c + c_prime,
631-
|inputs| array::new(array::len(a_prime), |i| {
631+
|inputs| array::new(5 * 5 * 64, |i| {
632632
let y = i / 320;
633633
let x = (i / 64) % 5;
634634
let z = i % 64;

0 commit comments

Comments
 (0)