pub struct CASBlake2;Trait Implementations§
Source§impl CASHasher for CASBlake2
impl CASHasher for CASBlake2
Source§fn hash_512(data_to_hash: Vec<u8>) -> Vec<u8> ⓘ
fn hash_512(data_to_hash: Vec<u8>) -> Vec<u8> ⓘ
Hashes data using the Blake2b-512 algorithm. Returns the hash as a vector of bytes.
Source§fn verify_512(hash_to_verify: Vec<u8>, data_to_verify: Vec<u8>) -> bool
fn verify_512(hash_to_verify: Vec<u8>, data_to_verify: Vec<u8>) -> bool
Verifies a hash using the Blake2b-512 algorithm. Returns true if the hash matches the data, false otherwise.
Source§fn hash_256(data_to_hash: Vec<u8>) -> Vec<u8> ⓘ
fn hash_256(data_to_hash: Vec<u8>) -> Vec<u8> ⓘ
Hashes data using the Blake2s-256 algorithm. Returns the hash as a vector of bytes.
Source§fn verify_256(hash_to_verify: Vec<u8>, data_to_verify: Vec<u8>) -> bool
fn verify_256(hash_to_verify: Vec<u8>, data_to_verify: Vec<u8>) -> bool
Verifies a hash using the Blake2s-256 algorithm. Returns true if the hash matches the data, false otherwise.
Source§fn hash_512_threadpool(data_to_hash: Vec<u8>) -> Vec<u8> ⓘ
fn hash_512_threadpool(data_to_hash: Vec<u8>) -> Vec<u8> ⓘ
Hashes data using the Blake2b-512 algorithm on the threadpool. Returns the hash as a vector of bytes.
Source§fn verify_512_threadpool(
hash_to_verify: Vec<u8>,
data_to_verify: Vec<u8>,
) -> bool
fn verify_512_threadpool( hash_to_verify: Vec<u8>, data_to_verify: Vec<u8>, ) -> bool
Verifies a hash using the Blake2b-512 algorithm on the threadpool. Returns true if the hash matches the data, false otherwise.
Auto Trait Implementations§
impl Freeze for CASBlake2
impl RefUnwindSafe for CASBlake2
impl Send for CASBlake2
impl Sync for CASBlake2
impl Unpin for CASBlake2
impl UnwindSafe for CASBlake2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more