Remove now unneeded BigNum::ensure_const_time method.

GitOrigin-RevId: ce34efc94f3e13f306592bed86a37f342a356a23
This commit is contained in:
levlam 2020-03-10 18:31:13 +03:00
parent 6854db1021
commit d48faede71
2 changed files with 0 additions and 6 deletions

View File

@ -122,10 +122,6 @@ BigNum BigNum::from_raw(void *openssl_big_num) {
BigNum::BigNum(unique_ptr<Impl> &&impl) : impl_(std::move(impl)) { BigNum::BigNum(unique_ptr<Impl> &&impl) : impl_(std::move(impl)) {
} }
void BigNum::ensure_const_time() {
BN_set_flags(impl_->big_num, BN_FLG_CONSTTIME);
}
int BigNum::get_num_bits() const { int BigNum::get_num_bits() const {
return BN_num_bits(impl_->big_num); return BN_num_bits(impl_->big_num);
} }

View File

@ -53,8 +53,6 @@ class BigNum {
void set_value(uint32 new_value); void set_value(uint32 new_value);
void ensure_const_time();
int get_num_bits() const; int get_num_bits() const;
int get_num_bytes() const; int get_num_bytes() const;