mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-06 07:43:10 +00:00
fixes
This commit is contained in:
parent
c40074a00d
commit
4905f499a4
@ -53,9 +53,9 @@ global sha2_pad:
|
||||
// STEP 1: append 1
|
||||
// insert 128 (= 1 << 7) at x[num_bytes]
|
||||
// stack: num_bytes, retdest
|
||||
// TODO: these should be in the other order once SHL implementation is fixed
|
||||
push 7
|
||||
push 1
|
||||
push 7
|
||||
swap1 // TODO: remove once SHR implementation is fixed
|
||||
shl
|
||||
// stack: 128, num_bytes, retdest
|
||||
dup2
|
||||
@ -123,9 +123,9 @@ sha2_gen_message_schedule_from_block_0_loop:
|
||||
// stack: counter, output_addr, block[0], block[1], retdest
|
||||
swap2
|
||||
// stack: block[0], output_addr, counter, block[1], retdest
|
||||
// TODO: these should be in the other order once SHL implementation is fixed
|
||||
push 32
|
||||
push 1
|
||||
swap1 // TODO: remove once SHR implementation is fixed
|
||||
shl
|
||||
// stack: 1 << 32, block[0], output_addr, counter, block[1], retdest
|
||||
dup2
|
||||
@ -175,9 +175,9 @@ sha2_gen_message_schedule_from_block_1_loop:
|
||||
// stack: counter, output_addr, block[1], block[0], retdest
|
||||
swap2
|
||||
// stack: block[1], output_addr, counter, block[0], retdest
|
||||
// TODO: these should be in the other order once SHL implementation is fixed
|
||||
push 32
|
||||
push 1
|
||||
swap1 // TODO: remove once SHR implementation is fixed
|
||||
shl
|
||||
// stack: 1 << 32, block[1], output_addr, counter, block[0], retdest
|
||||
dup2
|
||||
|
||||
@ -50,7 +50,7 @@ fn test_sha2_store() -> Result<()> {
|
||||
.clone();
|
||||
dbg!(&mem[0..66]);
|
||||
|
||||
// dbg!(&mem[100..353]);
|
||||
dbg!(&mem[100..353]);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user