Fix SHA-1 slow tests.

This commit is contained in:
Brian Smith 2019-07-09 17:47:45 -10:00
parent d367526a27
commit 0c962674a1
2 changed files with 4 additions and 3 deletions

View File

@ -66,7 +66,8 @@
//! ``` //! ```
//! //!
//! Note that `consume_digest_alg` automatically maps the string "SHA1" to a //! Note that `consume_digest_alg` automatically maps the string "SHA1" to a
//! reference to `digest::SHA1`, "SHA256" to `digest::SHA256`, etc. //! reference to `digest::SHA1_FOR_LEGACY_USE_ONLY`, "SHA256" to
//! `digest::SHA256`, etc.
//! //!
//! ## Output When a Test Fails //! ## Output When a Test Fails
//! //!

View File

@ -238,7 +238,7 @@ macro_rules! test_i_u_f {
} }
}; };
} }
test_i_u_f!(digest_test_i_u_f_sha1, digest::SHA1); test_i_u_f!(digest_test_i_u_f_sha1, digest::SHA1_FOR_LEGACY_USE_ONLY);
test_i_u_f!(digest_test_i_u_f_sha256, digest::SHA256); test_i_u_f!(digest_test_i_u_f_sha256, digest::SHA256);
test_i_u_f!(digest_test_i_u_f_sha384, digest::SHA384); test_i_u_f!(digest_test_i_u_f_sha384, digest::SHA384);
test_i_u_f!(digest_test_i_u_f_sha512, digest::SHA512); test_i_u_f!(digest_test_i_u_f_sha512, digest::SHA512);
@ -294,7 +294,7 @@ macro_rules! test_large_digest {
#[cfg(any(not(target_os = "android"), not(target_arch = "arm")))] #[cfg(any(not(target_os = "android"), not(target_arch = "arm")))]
test_large_digest!( test_large_digest!(
digest_test_large_digest_sha1, digest_test_large_digest_sha1,
digest::SHA1, digest::SHA1_FOR_LEGACY_USE_ONLY,
160 / 8, 160 / 8,
[ [
0xCA, 0xC3, 0x4C, 0x31, 0x90, 0x5B, 0xDE, 0x3B, 0xE4, 0x0D, 0x46, 0x6D, 0x70, 0x76, 0xAD, 0xCA, 0xC3, 0x4C, 0x31, 0x90, 0x5B, 0xDE, 0x3B, 0xE4, 0x0D, 0x46, 0x6D, 0x70, 0x76, 0xAD,