Commit 7b18e903 authored by Paul Kehrer's avatar Paul Kehrer
Browse files

allow affine_coordinates on boring and libre

parent 64b3106a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -101,7 +101,7 @@ extern "C" {

    pub fn EC_POINT_dup(p: *const EC_POINT, group: *const EC_GROUP) -> *mut EC_POINT;

    #[cfg(ossl111)]
    #[cfg(any(ossl111, boringssl, libressl350))]
    pub fn EC_POINT_get_affine_coordinates(
        group: *const EC_GROUP,
        p: *const EC_POINT,
+2 −2
Original line number Diff line number Diff line
@@ -491,7 +491,7 @@ impl EcPointRef {
    /// Places affine coordinates of a curve over a prime field in the provided
    /// `x` and `y` `BigNum`s.
    #[corresponds(EC_POINT_get_affine_coordinates)]
    #[cfg(ossl111)]
    #[cfg(any(ossl111, boringssl, libressl350))]
    pub fn affine_coordinates(
        &self,
        group: &EcGroupRef,
@@ -1197,7 +1197,7 @@ mod test {
        assert!(ec_key.check_key().is_ok());
    }

    #[cfg(ossl111)]
    #[cfg(any(ossl111, boringssl, libressl350))]
    #[test]
    fn get_affine_coordinates() {
        let group = EcGroup::from_curve_name(Nid::X9_62_PRIME256V1).unwrap();