mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-11 13:39:25 +00:00
Use zeroize instead of 0-sets
This commit is contained in:
@@ -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