/// Verifies the checksum for `raw`
Verifies the checksum for `raw`
Verifies the checksum for ` raw `
pub fn verify(tar: &header::Header) -> Result<(), BasicTarError> {
		match Self::compute(*tar) == u64::from_octal_field(&tar.checksum)? {
			true => Ok(()),
			false => Err(BasicTarError::InvalidData("Invalid header checksum"))
		}
	}
pub fn verify ( tar : & header :: Header ) -> Result < ( ) , BasicTarError > { match Self :: compute ( * tar ) == u64 :: from_octal_field ( & tar . checksum ) ? { true => Ok ( ( ) ) , false => Err ( BasicTarError :: InvalidData ( " " ) ) } }
Verifies the checksum for `raw`
Verifies the checksum for ` raw `
tar
&header::Header