/// Given a block device, query the block size, and return if the contents of the first block
/// contain the zxcrypt magic bytes
Given a block device, query the block size, and return if the contents of the first block
contain the zxcrypt magic bytes
Given a block device query the block size and return if the contents of the first block contain the zxcrypt magic bytes
pub async fn has_zxcrypt_header<T>(block_device: &T) -> Result<bool, Error>
where
    T: BlockDevice,
{
    let block_size = block_device.block_size().await?;
    let superblock = block_device.read_first_block(block_size).await?;
    is_zxcrypt_superblock(&superblock)
}
pub async fn has_zxcrypt_header < T > ( block_device : & T ) -> Result < bool , Error > where T : BlockDevice , { let block_size = block_device . block_size ( ) . await ? ; let superblock = block_device . read_first_block ( block_size ) . await ? ; is_zxcrypt_superblock ( & superblock ) }
Given a block device, query the block size, and return if the contents of the first block
contain the zxcrypt magic bytes
Given a block device query the block size and return if the contents of the first block contain the zxcrypt magic bytes
block_device
&T