Struct mbedtls::ecp::EcPoint[][src]

pub struct EcPoint { /* fields omitted */ }

Implementations

impl EcPoint[src]

pub fn new() -> Result<EcPoint>[src]

pub fn from_binary(group: &EcGroup, bin: &[u8]) -> Result<EcPoint>[src]

pub fn from_components(x: Mpi, y: Mpi) -> Result<EcPoint>[src]

pub fn x(&self) -> Result<Mpi>[src]

pub fn y(&self) -> Result<Mpi>[src]

pub fn is_zero(&self) -> Result<bool>[src]

pub fn mul(&self, group: &mut EcGroup, k: &Mpi) -> Result<EcPoint>[src]

pub fn muladd(
    group: &mut EcGroup,
    pt1: &EcPoint,
    k1: &Mpi,
    pt2: &EcPoint,
    k2: &Mpi
) -> Result<EcPoint>
[src]

Compute pt1k1 + pt2k2 – not const time

pub fn eq(&self, other: &EcPoint) -> Result<bool>[src]

pub fn to_binary(&self, group: &EcGroup, compressed: bool) -> Result<Vec<u8>>[src]

Trait Implementations

impl Clone for EcPoint[src]

impl Drop for EcPoint[src]

impl<'a> Into<*const ecp_point> for &'a EcPoint[src]

impl<'a> Into<*mut ecp_point> for &'a mut EcPoint[src]

impl PartialEq<EcPoint> for EcPoint[src]

impl Send for EcPoint[src]

Auto Trait Implementations

impl RefUnwindSafe for EcPoint

impl !Sync for EcPoint

impl Unpin for EcPoint

impl UnwindSafe for EcPoint

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.