Lines Matching refs:EcPoint
248 /// Returns the generator for the given curve as an [`EcPoint`].
261 generator: EcPoint,
328 pub struct EcPoint;
329 /// A reference a borrowed [`EcPoint`].
496 pub fn to_owned(&self, group: &EcGroupRef) -> Result<EcPoint, ErrorStack> {
497 unsafe { cvt_p(ffi::EC_POINT_dup(self.as_ptr(), group.as_ptr())).map(EcPoint) }
636 impl EcPoint {
639 pub fn new(group: &EcGroupRef) -> Result<EcPoint, ErrorStack> {
640 unsafe { cvt_p(ffi::EC_POINT_new(group.as_ptr())).map(EcPoint) }
649 ) -> Result<EcPoint, ErrorStack> {
650 let point = EcPoint::new(group)?;
670 ) -> Result<EcPoint, ErrorStack> {
671 let point = EcPoint::new(group)?;
819 /// Constructs an `EcKey` from the specified group with the associated [`EcPoint`]: `public_key`.
840 /// // create an EcKey from the binary form of a EcPoint
841 /// let point = EcPoint::from_bytes(&group, &public_key, &mut ctx)?;
1070 let mut gen_point = EcPoint::new(&group).unwrap();
1104 let mut gen_point = EcPoint::new(&group).unwrap();
1157 EcPoint::new(&group).unwrap();
1169 let point2 = EcPoint::from_bytes(&group, &bytes, &mut ctx).unwrap();
1183 let point2 = EcPoint::from_hex_str(&group, &hex, &mut ctx).unwrap();
1202 let mut public_key = EcPoint::new(&group).unwrap();
1215 let mut ecp = EcPoint::new(&group).unwrap();
1231 let public_key = EcPoint::from_bytes(&group, &bytes, &mut ctx).unwrap();
1321 let mut inf = EcPoint::new(&group).unwrap();