From 36412798daa703c4627d43e9169caf832aa971ca Mon Sep 17 00:00:00 2001 From: John Kelley Date: Wed, 22 Jun 2022 15:34:38 -0400 Subject: [PATCH] Address review feedback for #1657 --- openssl/src/ec.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openssl/src/ec.rs b/openssl/src/ec.rs index 2202664a0..cd308fbcf 100644 --- a/openssl/src/ec.rs +++ b/openssl/src/ec.rs @@ -133,7 +133,6 @@ impl EcGroup { ctx: &mut BigNumContextRef, ) -> Result { unsafe { - init(); cvt_p(ffi::EC_GROUP_new_curve_GFp( p.as_ptr(), a.as_ptr(), @@ -237,7 +236,7 @@ impl EcGroupRef { /// Sets the generator point for the given curve #[corresponds(EC_GROUP_set_generator)] pub fn set_generator( - &self, + &mut self, generator: EcPoint, order: BigNum, cofactor: BigNum, @@ -519,7 +518,7 @@ impl EcPointRef { /// `x` and `y` `BigNum`s #[corresponds(EC_POINT_set_affine_coordinates_GFp)] pub fn set_affine_coordinates_gfp( - &self, + &mut self, group: &EcGroupRef, x: &BigNumRef, y: &BigNumRef, -- GitLab