[][src]Struct http_signatures::VerifyKey

pub struct VerifyKey(_);

The verification key

If you have openssl in your project, you can enable the openssl feature on this crate and use .as_verify_key()? on an openssl::rsa::Rsa type.

This should contain a valid HMAC key, or a valid PKCS#1 DER encoded RSA key.

Methods

impl VerifyKey
[src]

pub fn unchecked_from_slice(s: &[u8]) -> Self
[src]

Create a VerifyKey from an unchecked slice

This is potentially dangerous, since it doesn't enforce that the slice contains a PKCS#1 DER encoded RSA Public Key, or a valid HMAC key.

For RSA verification, this key must be constructed from a PKCS#1 DER encoded byte string.

pub fn unchecked_from_vec(v: Vec<u8>) -> Self
[src]

Create a VerifyKey from an unchecked vec

This is potentially dangerous, since it doesn't enforce that the slice contains a PKCS#1 DER encoded RSA Public Key, or a valid HMAC key.

For RSA verification, this key must be constructed from a PKCS#1 DER encoded byte string.

Trait Implementations

impl Clone for VerifyKey
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for VerifyKey

impl Sync for VerifyKey

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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