Skip to content

Commit

Permalink
Enable BN_mod_sqrt() unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
botovq committed Oct 20, 2023
1 parent dab8c7a commit c84e3fc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion openssl-sys/src/handwritten/bn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ extern "C" {
m: *const BIGNUM,
ctx: *mut BN_CTX,
) -> c_int;
#[cfg(any(ossl110, libressl382))]
pub fn BN_mod_sqrt(
ret: *mut BIGNUM,
a: *const BIGNUM,
Expand Down
2 changes: 0 additions & 2 deletions openssl/src/bn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,6 @@ impl BigNumRef {

/// Places into `self` the modular square root of `a` such that `self^2 = a (mod p)`
#[corresponds(BN_mod_sqrt)]
#[cfg(any(ossl110, libressl382))]
pub fn mod_sqrt(
&mut self,
a: &BigNumRef,
Expand Down Expand Up @@ -1490,7 +1489,6 @@ mod tests {
assert!(b.is_const_time())
}

#[cfg(any(ossl110, libressl382))]
#[test]
fn test_mod_sqrt() {
let mut ctx = BigNumContext::new().unwrap();
Expand Down

0 comments on commit c84e3fc

Please sign in to comment.