mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-07 16:23:12 +00:00
all small inputs work
This commit is contained in:
parent
9f5e565452
commit
01b310d013
@ -30,7 +30,9 @@ store_size:
|
||||
store_padding:
|
||||
// stack: i (init 63)
|
||||
%store_zeros(136, store_padding)
|
||||
%jump(store_input_alt)
|
||||
DUP1
|
||||
%jumpi(store_input_alt)
|
||||
POP
|
||||
%jump(ripemd_init)
|
||||
|
||||
store_input_alt:
|
||||
|
||||
@ -19,6 +19,9 @@ fn test_ripemd() -> Result<()> {
|
||||
let input: Vec<u8> = make_input("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");
|
||||
let expected = U256::from("0xb0e20b6e3116640286ed3a87a5713079b21f5189");
|
||||
|
||||
// let input: Vec<u8> = make_input("");
|
||||
// let expected = U256::from("0x9c1185a5c5e9fc54612808977ee8f548b2258d31");
|
||||
|
||||
|
||||
let kernel = combined_kernel();
|
||||
let label = kernel.global_labels["ripemd_alt"];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user