[][src]Struct nettle::dsa::Signature

pub struct Signature { /* fields omitted */ }

(EC)DSA signature.

Implementations

impl Signature[src]

pub fn new(r: &[u8], s: &[u8]) -> Signature[src]

Create a new signature structure. Both r and s need to be big endian integer.

pub fn r(&self) -> Box<[u8]>[src]

Returns r as big endian integer.

pub fn s(&self) -> Box<[u8]>[src]

Returns s as big endian integer.

Trait Implementations

impl Clone for Signature[src]

impl Drop for Signature[src]

Auto Trait Implementations

impl RefUnwindSafe for Signature

impl !Send for Signature

impl !Sync for Signature

impl Unpin for Signature

impl UnwindSafe for Signature

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.