diff options
author | Isis Lovecruft <isis@torproject.org> | 2018-06-15 23:22:43 +0000 |
---|---|---|
committer | Isis Lovecruft <isis@torproject.org> | 2018-06-15 23:22:43 +0000 |
commit | 748a0c7d0b7ed4657703371428aa2392d1383fe9 (patch) | |
tree | 42c6f00c9cb05ed7a4472a1137a55c9c485336d3 | |
parent | d5a9b77a2892f195d391376f98287714d455ce5b (diff) | |
download | tor-748a0c7d0b7ed4657703371428aa2392d1383fe9.tar.gz tor-748a0c7d0b7ed4657703371428aa2392d1383fe9.zip |
rust: Remove unused N_DIGEST_ALGORITHMS constant from crypto_digest.rs.
In the C code, this constant is only ever used in src/test/bench.c.
* FIXES part of #26245: https://bugs.torproject.org/26245
-rw-r--r-- | src/rust/external/crypto_digest.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/rust/external/crypto_digest.rs b/src/rust/external/crypto_digest.rs index b55389ac51..4eae1550a2 100644 --- a/src/rust/external/crypto_digest.rs +++ b/src/rust/external/crypto_digest.rs @@ -66,13 +66,6 @@ const DIGEST_SHA512: digest_algorithm_t = 2; const DIGEST_SHA3_256: digest_algorithm_t = 3; const DIGEST_SHA3_512: digest_algorithm_t = 4; -/// The total number of digest algorithms we currently support. -/// -/// We can't access these from Rust, because their definitions in C require -/// introspecting the `digest_algorithm_t` typedef, which is an enum, so we have -/// to redefine them here. -const N_DIGEST_ALGORITHMS: usize = DIGEST_SHA3_512 as usize + 1; - /// The number of hash digests we produce for a `common_digests_t`. /// /// We can't access these from Rust, because their definitions in C require |