Struct http_sign::Hs2019 [−][src]
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]
key_id: impl Into<String>,
key: RsaKeyPair,
random: Rand
) -> Self
pub fn new_rsa_pss(
key_id: impl Into<String>,
key: RsaKeyPair,
random: Rand
) -> Self
[src]
key_id: impl Into<String>,
key: RsaKeyPair,
random: Rand
) -> Self
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,
Rand: RefUnwindSafe,
impl<Rand> Send for Hs2019<Rand> where
Rand: Send,
Rand: Send,
impl<Rand> Sync for Hs2019<Rand> where
Rand: Sync,
Rand: Sync,
impl<Rand> Unpin for Hs2019<Rand> where
Rand: Unpin,
Rand: Unpin,
impl<Rand> UnwindSafe for Hs2019<Rand> where
Rand: UnwindSafe,
Rand: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,