Skip to content

Commit

Permalink
Use OPENSSL_cleanse in Bits256::fill_zero_s
Browse files Browse the repository at this point in the history
  • Loading branch information
SpyCheese committed Dec 3, 2024
1 parent 140dbcd commit 40e8ebf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crypto/common/bitstring.h
Original file line number Diff line number Diff line change
Expand Up @@ -554,11 +554,7 @@ class BitArray {
set_same(0);
}
void set_zero_s() {
volatile uint8* p = data();
auto x = m;
while (x--) {
*p++ = 0;
}
as_slice().fill_zero_secure();
}
void set_ones() {
set_same(1);
Expand Down

0 comments on commit 40e8ebf

Please sign in to comment.