Vendor dependencies

This commit is contained in:
2026-08-01 16:11:49 +03:00
parent 7f139a0241
commit 6b5e7f0f8b
29706 changed files with 9575646 additions and 0 deletions
Binary file not shown.
Binary file not shown.
+16
View File
@@ -0,0 +1,16 @@
use digest::dev::{feed_rand_16mib, fixed_reset_test};
use hex_literal::hex;
use sha1::{Digest, Sha1};
digest::new_test!(sha1_kat, Sha1, fixed_reset_test);
digest::hash_serialization_test!(sha1_serialization, Sha1);
#[test]
fn sha1_rand() {
let mut h = Sha1::new();
feed_rand_16mib(&mut h);
assert_eq!(
h.finalize(),
hex!("7e565a25a8b123e9881addbcedcd927b23377a78"),
);
}