Enum asuran::repository::HMAC [−][src]
pub enum HMAC {
SHA256,
Blake2b,
Blake2bp,
Blake3,
SHA3,
}
Expand description
Tag for the HMAC algorithim used by a particular Chunk
Variants
Implementations
Produces an HMAC tag using the section of the key material reserved for integrity verification.
Panics
Will panic if the user has selected an algorithm for which support has not been compiled in.
Produces an HMAC tag using the section of the key material reserved for
ChunkID
generation.
Panics
Will panic if the user has selected an algorithm for which support has not been compiled in.
Produces an HMAC for the supplied data, using the portion of the supplied key
reserved for integrity verification, and the algorithm specified by the variant
of self
, and verifies it against the supplied HMAC, using constant time
comparisons where possible.
Panics
Panics if the user has selected an algorithm for which support has not been compiled in.
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<HMAC, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<HMAC, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for HMAC
impl UnwindSafe for HMAC
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more