pub fn block_size(&self) -> Result<usize> {
        self.handle
            .get_property::<DWORD>(BCRYPT_BLOCK_LENGTH)
            .map(|block_size| block_size as usize)
    }
/// Returns the block size in bytes.
///
/// This can be useful to find what size the IV should be.
///
/// # Examples
///
/// ```
/// # use win_crypto_ng::symmetric::{ChainingMode, SymmetricAlgorithm, SymmetricAlgorithmId};
/// # let algo = SymmetricAlgorithm::open(SymmetricAlgorithmId::Aes, ChainingMode::Cbc).unwrap();
/// let key = algo.new_key("0123456789ABCDEF".as_bytes()).unwrap();
/// let key_size = key.block_size().unwrap();
///
/// assert_eq!(16, key_size);
/// ```
Returns the block size in bytes.
This can be useful to find what size the IV should be.
Returns the block size in bytes . This can be useful to find what size the IV should be .
pub fn block_size(&self) -> Result<usize> {
        self.handle
            .get_property::<DWORD>(BCRYPT_BLOCK_LENGTH)
            .map(|block_size| block_size as usize)
    }
pub fn block_size ( & self ) -> Result < usize > { self . handle . get_property :: < DWORD > ( BCRYPT_BLOCK_LENGTH ) . map ( | block_size | block_size as usize ) }
Returns the block size in bytes.
Returns the block size in bytes .
&self
&self
examples
None
use win_crypto_ng::symmetric::{chainingmode, symmetricalgorithm, symmetricalgorithmid};
None
let algo = symmetricalgorithm::open(symmetricalgorithmid::aes, chainingmode::cbc).unwrap();
None