diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-07-18 16:12:29 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-07-18 16:12:29 -0400 |
commit | e2261e77272bd57fa20fc00f436feb4f57d52739 (patch) | |
tree | 0abf07034864d19d8fe89f52532fc48630378895 /src/rust/crypto/digests/sha2.rs | |
parent | 23811052fe287bafd27f590a02658ff4c588a8a9 (diff) | |
parent | 508332feaf99ada12037c3a7fa77eab8516bb69e (diff) | |
download | tor-e2261e77272bd57fa20fc00f436feb4f57d52739.tar.gz tor-e2261e77272bd57fa20fc00f436feb4f57d52739.zip |
Merge remote-tracking branch 'isis/bug26398'
Diffstat (limited to 'src/rust/crypto/digests/sha2.rs')
-rw-r--r-- | src/rust/crypto/digests/sha2.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rust/crypto/digests/sha2.rs b/src/rust/crypto/digests/sha2.rs index 03e0843dc0..d0246eeb94 100644 --- a/src/rust/crypto/digests/sha2.rs +++ b/src/rust/crypto/digests/sha2.rs @@ -165,15 +165,19 @@ impl FixedOutput for Sha512 { #[cfg(test)] mod test { + #[cfg(feature = "test-c-from-rust")] use digest::Digest; + #[cfg(feature = "test-c-from-rust")] use super::*; + #[cfg(feature = "test-c-from-rust")] #[test] fn sha256_default() { let _: Sha256 = Sha256::default(); } + #[cfg(feature = "test-c-from-rust")] #[test] fn sha256_digest() { let mut h: Sha256 = Sha256::new(); @@ -193,11 +197,13 @@ mod test { assert_eq!(result, expected); } + #[cfg(feature = "test-c-from-rust")] #[test] fn sha512_default() { let _: Sha512 = Sha512::default(); } + #[cfg(feature = "test-c-from-rust")] #[test] fn sha512_digest() { let mut h: Sha512 = Sha512::new(); |