pub fn hash_size(&self) -> Result<usize> {
        self.handle
            .get_property::<DWORD>(BCRYPT_HASH_LENGTH)
            .map(|hash_size| hash_size as usize)
    }
/// Get the final hash length, in bytes.
///
/// # Examples
///
/// ```
/// # use win_crypto_ng::hash::{HashAlgorithm, HashAlgorithmId};
/// let algo = HashAlgorithm::open(HashAlgorithmId::Sha256).unwrap();
/// let hash = algo.new_hash().unwrap();
/// let hash_size = hash.hash_size().unwrap();
///
/// assert_eq!(hash_size, 32);
/// ```
Get the final hash length, in bytes.
Get the final hash length in bytes .
pub fn hash_size(&self) -> Result<usize> {
        self.handle
            .get_property::<DWORD>(BCRYPT_HASH_LENGTH)
            .map(|hash_size| hash_size as usize)
    }
pub fn hash_size ( & self ) -> Result < usize > { self . handle . get_property :: < DWORD > ( BCRYPT_HASH_LENGTH ) . map ( | hash_size | hash_size as usize ) }
Get the final hash length, in bytes.
Get the final hash length in bytes .
&self
&self
examples
None
use win_crypto_ng::hash::{hashalgorithm, hashalgorithmid};
let algo = HashAlgorithm::open(HashAlgorithmId::Sha256).unwrap();
let hash = algo.new_hash().unwrap();
let hash_size = hash.hash_size().unwrap().


let algo = HashAlgorithm :: open ( HashAlgorithmId :: Sha256 ) . unwrap () ; let hash = algo . new_hash () . unwrap () ; let hash_size = hash . hash_size () . unwrap () .