Struct mbedtls::ecp::EcGroup[][src]

pub struct EcGroup { /* fields omitted */ }

Implementations

impl EcGroup[src]

pub fn new(group: EcGroupId) -> Result<EcGroup>[src]

pub fn from_parameters(
    p: Mpi,
    a: Mpi,
    b: Mpi,
    g_x: Mpi,
    g_y: Mpi,
    order: Mpi
) -> Result<EcGroup>
[src]

pub fn group_id(&self) -> Result<EcGroupId>[src]

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

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

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

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

pub fn cofactor(&self) -> Result<u32>[src]

pub fn generator(&self) -> Result<EcPoint>[src]

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

Trait Implementations

impl Clone for EcGroup[src]

impl Drop for EcGroup[src]

impl Eq for EcGroup[src]

impl<'a> Into<*const ecp_group> for &'a EcGroup[src]

impl<'a> Into<*mut ecp_group> for &'a mut EcGroup[src]

impl PartialEq<EcGroup> for EcGroup[src]

impl Send for EcGroup[src]

impl TryFrom<EcGroupId> for EcGroup[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for EcGroup

impl !Sync for EcGroup

impl Unpin for EcGroup

impl UnwindSafe for EcGroup

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.