Vendor things

This commit is contained in:
John Doty 2024-03-08 11:03:01 -08:00
parent 5deceec006
commit 977e3c17e5
19434 changed files with 10682014 additions and 0 deletions

Binary file not shown.

15
third-party/vendor/sha-1/tests/mod.rs vendored Normal file
View file

@ -0,0 +1,15 @@
use digest::dev::{feed_rand_16mib, fixed_reset_test};
use hex_literal::hex;
use sha1::{Digest, Sha1};
digest::new_test!(sha1_main, "sha1", Sha1, fixed_reset_test);
#[test]
fn sha1_rand() {
let mut h = Sha1::new();
feed_rand_16mib(&mut h);
assert_eq!(
h.finalize()[..],
hex!("7e565a25a8b123e9881addbcedcd927b23377a78")[..]
);
}