Commit c84e3fcd authored by Theo Buehler's avatar Theo Buehler
Browse files

Enable BN_mod_sqrt() unconditionally

parent dab8c7a5
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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,
+0 −2
Original line number Diff line number Diff line
@@ -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,
@@ -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();