Skip to content

Commit

Permalink
stdlib: adds native hasher init procedure without padding
Browse files Browse the repository at this point in the history
  • Loading branch information
hackaugusto committed Apr 25, 2024
1 parent d9dc097 commit dca52dc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions stdlib/asm/crypto/hashes/native.masm
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
#! 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, ...]
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 dca52dc

Please sign in to comment.