Struct efficient_sm2::KeyPair[][src]

pub struct KeyPair { /* fields omitted */ }

Implementations

impl KeyPair[src]

pub fn new(private_key: &[u8]) -> Result<Self, KeyRejected>[src]

pub fn public_key(&self) -> PublicKey[src]

pub fn sign(&self, message: &[u8]) -> Result<Signature, KeyRejected>[src]

pub fn sign_with_seed(
    &self,
    rng: &mut dyn SecureRandom,
    message: &[u8]
) -> Result<Signature, KeyRejected>
[src]

Auto Trait Implementations

impl RefUnwindSafe for KeyPair

impl Send for KeyPair

impl Sync for KeyPair

impl Unpin for KeyPair

impl UnwindSafe for KeyPair

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, 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,