Skip to content

Commit

Permalink
stdlib: adds native hasher init procedure without padding (#1313)
Browse files Browse the repository at this point in the history
  • Loading branch information
hackaugusto authored Apr 25, 2024
1 parent d9dc097 commit d282b01
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# Changelog

## 0.9.0
## 0.9.0 (TBD)

#### Packaging
- [BREAKING] The package `miden-vm` crate was renamed from `miden` to `miden-vm`. Now the package and crate names match (#1271).

#### Stdlib
- Added `init_no_padding` procedure to `std::crypto::hashes::native` (#1313).

#### VM Internals
- Removed unused `find_lone_leaf()` function from the Advice Provider (#1262).
- [BREAKING] Changed fields type of the `StackOutputs` struct from `Vec<u64>` to `Vec<Felt>` (#1268).
Expand Down
12 changes: 12 additions & 0 deletions stdlib/asm/crypto/hashes/native.masm
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
#! Prepares the top of the stack with the hasher initial state.
#!
#! This procedures does not handle padding, therefore, the user is expected to
#! consume an amount of data which is a multiple of the rate (2 words).
#!
#! Input: []
#! Ouptut: [PERM, PERM, PERM, ...]
#! Cycles: 12
export.init_no_padding
padw padw padw
end

#! Given the hasher state, returns the hash output
#!
#! Input: [C, B, A, ...]
Expand Down

0 comments on commit d282b01

Please sign in to comment.