fix formatting on master
This commit is contained in:
parent
17c8751d23
commit
c0ae3e7d35
|
@ -71,8 +71,7 @@ impl PartialEq for SecretKey {
|
|||
/// This implementation is designed to be constant time to help prevent side channel attacks.
|
||||
#[inline]
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
let accum = self.0.iter().zip(&other.0)
|
||||
.fold(0, |accum, (a, b)| accum | a ^ b);
|
||||
let accum = self.0.iter().zip(&other.0).fold(0, |accum, (a, b)| accum | a ^ b);
|
||||
unsafe { core::ptr::read_volatile(&accum) == 0 }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue