all small inputs work

This commit is contained in:
Dmitry Vagner 2022-09-26 10:53:47 -07:00
parent 9f5e565452
commit 01b310d013
2 changed files with 6 additions and 1 deletions

View File

@ -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:

View File

@ -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"];