pub struct CASSHA2;Trait Implementations§
Source§impl CASHasher for CASSHA2
impl CASHasher for CASSHA2
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 SHA2-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 SHA2-512 algorithm. Returns true if the hash matches the data, false otherwise.
Auto Trait Implementations§
impl Freeze for CASSHA2
impl RefUnwindSafe for CASSHA2
impl Send for CASSHA2
impl Sync for CASSHA2
impl Unpin for CASSHA2
impl UnsafeUnpin for CASSHA2
impl UnwindSafe for CASSHA2
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