bash-prg-hash: Initial implementation#751
bash-prg-hash: Initial implementation#751makavity wants to merge 29 commits intoRustCrypto:masterfrom
bash-prg-hash: Initial implementation#751Conversation
|
I am also not sure, it should be implemented as prg-hash. |
newpavlov
left a comment
There was a problem hiding this comment.
Sorry for the late review!
Some preliminary comments without looking deep at the implementation and the spec.
|
Thanks for review, @newpavlov. |
|
Looks like the |
|
I added |
Cannot implement squeeze. for block in &mut blocks {
sponge(state);
let mut dst_chunks = block.chunks_exact_mut(size_of::<u64>());
for (src, dst_chunk) in state.iter_mut().zip(&mut dst_chunks) {
dst_chunk.copy_from_slice(&src.to_le_bytes());
}
assert!(dst_chunks.into_remainder().is_empty());
}This does permute then read, while Should I left it as-is, or maybe another mode in |
…artially use `SpongeCursor`
|
I've commited it without |
Can not say right now, I will need to read the spec first. |
newandnew_with_empty_headerfunctions.