Skip to content

Commit

Permalink
Impl Hash for BoxedUint (#350)
Browse files Browse the repository at this point in the history
Uses a derived impl. Ideally this wouldn't be used with secret values,
or at least hopefully with a good hashing algorithm (like the default
SipHasher, which is a secure PRF)
  • Loading branch information
tarcieri authored Nov 29, 2023
1 parent f09c9ab commit 68777f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/uint/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ use zeroize::Zeroize;
/// Unlike many other heap-allocated big integer libraries, this type is not
/// arbitrary precision and will wrap at its fixed-precision rather than
/// automatically growing.
#[derive(Clone)]
#[allow(clippy::derived_hash_with_manual_eq)]
#[derive(Clone, Hash)]
pub struct BoxedUint {
/// Boxed slice containing limbs.
///
Expand Down

0 comments on commit 68777f5

Please sign in to comment.