Struct http_sign::Hs2019[][src]

pub struct Hs2019<Rand>(_);

The “hs2019” signature algorithm. This is the only non-deprecated algorithm. Unlike the other algorithms, the hash and digest functions are not implied by the choice of this signature algorithm. Instead, the hash and digest functions are chosen based on the key used. RSA, HMAC, and ECDSA keys are all supported.

Implementations

impl<Rand> Hs2019<Rand>[src]

pub fn new_rsa_pkcs1(
    key_id: impl Into<String>,
    key: RsaKeyPair,
    random: Rand
) -> Self
[src]

pub fn new_rsa_pss(
    key_id: impl Into<String>,
    key: RsaKeyPair,
    random: Rand
) -> Self
[src]

pub fn new_hmac(key_id: impl Into<String>, key_value: &[u8]) -> Self[src]

Constructs a new Hs2019 using HMAC with SHA-512 from the supplied HMAC key data. See the documentation of ring::hmac::Key::new for a discussion of the length of key_value.

Trait Implementations

impl<Rand: SecureRandom> SignatureAlgorithm for Hs2019<Rand>[src]

Auto Trait Implementations

impl<Rand> RefUnwindSafe for Hs2019<Rand> where
    Rand: RefUnwindSafe

impl<Rand> Send for Hs2019<Rand> where
    Rand: Send

impl<Rand> Sync for Hs2019<Rand> where
    Rand: Sync

impl<Rand> Unpin for Hs2019<Rand> where
    Rand: Unpin

impl<Rand> UnwindSafe for Hs2019<Rand> where
    Rand: UnwindSafe

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.