Skip to content

Commit 68777f5

Browse files
authored
Impl Hash for BoxedUint (#350)
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)
1 parent f09c9ab commit 68777f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/uint/boxed.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ use zeroize::Zeroize;
3636
/// Unlike many other heap-allocated big integer libraries, this type is not
3737
/// arbitrary precision and will wrap at its fixed-precision rather than
3838
/// automatically growing.
39-
#[derive(Clone)]
39+
#[allow(clippy::derived_hash_with_manual_eq)]
40+
#[derive(Clone, Hash)]
4041
pub struct BoxedUint {
4142
/// Boxed slice containing limbs.
4243
///

0 commit comments

Comments
 (0)