Struct openssl::ec::EcPoint  
                   
                       [−]
                   
               [src]
pub struct EcPoint(_);
Methods
impl EcPoint[src]
fn new(group: &EcGroupRef) -> Result<EcPoint, ErrorStack>
Creates a new point on the specified curve.
fn from_bytes(group: &EcGroupRef,
              buf: &[u8],
              ctx: &mut BigNumContextRef)
              -> Result<EcPoint, ErrorStack>
buf: &[u8],
ctx: &mut BigNumContextRef)
-> Result<EcPoint, ErrorStack>
Methods from Deref<Target=EcPointRef>
fn add(&mut self,
       group: &EcGroupRef,
       a: &EcPointRef,
       b: &EcPointRef,
       ctx: &mut BigNumContextRef)
       -> Result<(), ErrorStack>
group: &EcGroupRef,
a: &EcPointRef,
b: &EcPointRef,
ctx: &mut BigNumContextRef)
-> Result<(), ErrorStack>
Computes a + b, storing the result in self.
fn mul(&mut self,
       group: &EcGroupRef,
       q: &EcPointRef,
       m: &BigNumRef,
       ctx: &BigNumContextRef)
       -> Result<(), ErrorStack>
group: &EcGroupRef,
q: &EcPointRef,
m: &BigNumRef,
ctx: &BigNumContextRef)
-> Result<(), ErrorStack>
Computes q * m, storing the result in self.
fn mul_generator(&mut self,
                 group: &EcGroupRef,
                 n: &BigNumRef,
                 ctx: &BigNumContextRef)
                 -> Result<(), ErrorStack>
group: &EcGroupRef,
n: &BigNumRef,
ctx: &BigNumContextRef)
-> Result<(), ErrorStack>
Computes generator * n, storing the result ing self.
fn mul_full(&mut self,
            group: &EcGroupRef,
            n: &BigNumRef,
            q: &EcPointRef,
            m: &BigNumRef,
            ctx: &mut BigNumContextRef)
            -> Result<(), ErrorStack>
group: &EcGroupRef,
n: &BigNumRef,
q: &EcPointRef,
m: &BigNumRef,
ctx: &mut BigNumContextRef)
-> Result<(), ErrorStack>
Computes generator * n + q * m, storing the result in self.
fn invert(&mut self,
          group: &EcGroupRef,
          ctx: &BigNumContextRef)
          -> Result<(), ErrorStack>
group: &EcGroupRef,
ctx: &BigNumContextRef)
-> Result<(), ErrorStack>
Inverts self.
fn to_bytes(&self,
            group: &EcGroupRef,
            form: PointConversionForm,
            ctx: &mut BigNumContextRef)
            -> Result<Vec<u8>, ErrorStack>
group: &EcGroupRef,
form: PointConversionForm,
ctx: &mut BigNumContextRef)
-> Result<Vec<u8>, ErrorStack>
Serializes the point to a binary representation.
fn eq(&self,
      group: &EcGroupRef,
      other: &EcPointRef,
      ctx: &mut BigNumContextRef)
      -> Result<bool, ErrorStack>
group: &EcGroupRef,
other: &EcPointRef,
ctx: &mut BigNumContextRef)
-> Result<bool, ErrorStack>
Determines if this point is equal to another.
Trait Implementations
impl OpenSslType for EcPoint[src]
type CType = EC_POINT
The raw C type.
type Ref = EcPointRef
The type representing a reference to this type.
unsafe fn from_ptr(ptr: *mut EC_POINT) -> EcPoint
Constructs an instance of this type from its raw type.
impl Drop for EcPoint[src]
impl Deref for EcPoint[src]
type Target = EcPointRef
The resulting type after dereferencing
fn deref(&self) -> &EcPointRef
The method called to dereference a value
impl DerefMut for EcPoint[src]
fn deref_mut(&mut self) -> &mut EcPointRef
The method called to mutably dereference a value