pub fn from_bytes(data: &[u8]) -> Self {
        let mut digest = Digest([0; DIGEST_BYTES]);
        unsafe {
            halite_sys::crypto_hash_sha512(digest.0.as_mut_ptr(), data.as_ptr(), data.len() as u64);
        }
        digest
    }
/// Construct a new Digest object by hashing the given raw bytes.
Construct a new Digest object by hashing the given raw bytes.
Construct a new Digest object by hashing the given raw bytes .
pub fn from_bytes(data: &[u8]) -> Self {
        let mut digest = Digest([0; DIGEST_BYTES]);
        unsafe {
            halite_sys::crypto_hash_sha512(digest.0.as_mut_ptr(), data.as_ptr(), data.len() as u64);
        }
        digest
    }
pub fn from_bytes ( data : & [ u8 ] ) -> Self { let mut digest = Digest ( [ 0 ; DIGEST_BYTES ] ) ; unsafe { halite_sys :: crypto_hash_sha512 ( digest . 0 . as_mut_ptr ( ) , data . as_ptr ( ) , data . len ( ) as u64 ) ; } digest }
Construct a new Digest object by hashing the given raw bytes.
Construct a new Digest object by hashing the given raw bytes .
data
&[u8]
data
&[u8]