feat: add blake3 160, 192 & 256 bits

closes #6
This commit is contained in:
Victor Lopez
2022-11-28 23:58:09 +01:00
parent adb6083066
commit 57d4cb0303
4 changed files with 256 additions and 2 deletions

20
src/hash/blake/tests.rs Normal file
View File

@@ -0,0 +1,20 @@
use super::*;
use crate::Vec;
use proptest::prelude::*;
proptest! {
#[test]
fn blake160_wont_panic_with_arbitrary_input(ref vec in any::<Vec<u8>>()) {
Blake3_160::hash(vec);
}
#[test]
fn blake192_wont_panic_with_arbitrary_input(ref vec in any::<Vec<u8>>()) {
Blake3_192::hash(vec);
}
#[test]
fn blake256_wont_panic_with_arbitrary_input(ref vec in any::<Vec<u8>>()) {
Blake3_256::hash(vec);
}
}