aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/ec.rs
diff options
context:
space:
mode:
authorBradley Beddoes <[email protected]>2017-08-22 07:44:27 +1000
committerBradley Beddoes <[email protected]>2017-08-22 07:44:27 +1000
commit1a6edc409fb7266d87c254c9e5a99dc749c6ab71 (patch)
tree78a22366e46fd183d1f318e9583df72810d11a9d /openssl/src/ec.rs
parentAdd ability to get affine coordinates from EcPoint (diff)
downloadrust-openssl-1a6edc409fb7266d87c254c9e5a99dc749c6ab71.tar.xz
rust-openssl-1a6edc409fb7266d87c254c9e5a99dc749c6ab71.zip
Rename function, removing `get_`
Fix per PR comment, should have been like this from the start :).
Diffstat (limited to 'openssl/src/ec.rs')
-rw-r--r--openssl/src/ec.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/openssl/src/ec.rs b/openssl/src/ec.rs
index c550a966..aded95ab 100644
--- a/openssl/src/ec.rs
+++ b/openssl/src/ec.rs
@@ -273,7 +273,7 @@ impl EcPointRef {
}
/// Place affine coordinates of a curve over a prime field in the provided x and y BigNum's
- pub fn get_affine_coordinates_gfp(
+ pub fn affine_coordinates_gfp(
&self,
group: &EcGroupRef,
x: &mut BigNumRef,
@@ -293,7 +293,7 @@ impl EcPointRef {
/// Place affine coordinates of a curve over a binary field in the provided x and y BigNum's
#[cfg(not(osslconf = "OPENSSL_NO_EC2M"))]
- pub fn get_affine_coordinates_gf2m(
+ pub fn affine_coordinates_gf2m(
&self,
group: &EcGroupRef,
x: &mut BigNumRef,
@@ -665,7 +665,7 @@ mod test {
let mut ctx = BigNumContext::new().unwrap();
let ec_key_pk = ec_key.public_key().unwrap();
ec_key_pk
- .get_affine_coordinates_gfp(&group, &mut xbn2, &mut ybn2, &mut ctx)
+ .affine_coordinates_gfp(&group, &mut xbn2, &mut ybn2, &mut ctx)
.unwrap();
assert_eq!(xbn2, xbn);
assert_eq!(ybn2, ybn);