mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Use zeroize instead of 0-sets
This commit is contained in:
@@ -232,7 +232,7 @@ where
|
||||
|
||||
// Accumulate this bit
|
||||
these_bits |= bit << (i % bits_per_group);
|
||||
bit = 0;
|
||||
bit.zeroize();
|
||||
|
||||
if (i % bits_per_group) == (bits_per_group - 1) {
|
||||
let last = i == (capacity - 1);
|
||||
|
||||
@@ -40,7 +40,7 @@ pub fn scalar_normalize<F0: PrimeFieldBits + Zeroize, F1: PrimeFieldBits>(
|
||||
|
||||
res1 += F0::from(bit.into());
|
||||
res2 += F1::from(bit.into());
|
||||
bit = 0;
|
||||
bit.zeroize();
|
||||
}
|
||||
|
||||
(res1, res2)
|
||||
|
||||
Reference in New Issue
Block a user