Rename function, removing `get_`
Fix per PR comment, should have been like this from the start :).
This commit is contained in:
parent
f599df124b
commit
1a6edc409f
|
|
@ -273,7 +273,7 @@ impl EcPointRef {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Place affine coordinates of a curve over a prime field in the provided x and y BigNum's
|
/// 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,
|
&self,
|
||||||
group: &EcGroupRef,
|
group: &EcGroupRef,
|
||||||
x: &mut BigNumRef,
|
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
|
/// Place affine coordinates of a curve over a binary field in the provided x and y BigNum's
|
||||||
#[cfg(not(osslconf = "OPENSSL_NO_EC2M"))]
|
#[cfg(not(osslconf = "OPENSSL_NO_EC2M"))]
|
||||||
pub fn get_affine_coordinates_gf2m(
|
pub fn affine_coordinates_gf2m(
|
||||||
&self,
|
&self,
|
||||||
group: &EcGroupRef,
|
group: &EcGroupRef,
|
||||||
x: &mut BigNumRef,
|
x: &mut BigNumRef,
|
||||||
|
|
@ -665,7 +665,7 @@ mod test {
|
||||||
let mut ctx = BigNumContext::new().unwrap();
|
let mut ctx = BigNumContext::new().unwrap();
|
||||||
let ec_key_pk = ec_key.public_key().unwrap();
|
let ec_key_pk = ec_key.public_key().unwrap();
|
||||||
ec_key_pk
|
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();
|
.unwrap();
|
||||||
assert_eq!(xbn2, xbn);
|
assert_eq!(xbn2, xbn);
|
||||||
assert_eq!(ybn2, ybn);
|
assert_eq!(ybn2, ybn);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue