Home
last modified time | relevance | path

Searched refs:aes_mode (Results 1 – 4 of 4) sorted by relevance

/external/rust/crates/zip/src/
Daes.rs26 fn cipher_from_mode(aes_mode: AesMode, key: &[u8]) -> Box<dyn aes_ctr::AesCipher> { in cipher_from_mode()
27 match aes_mode { in cipher_from_mode()
43 aes_mode: AesMode, field
48 pub fn new(reader: R, aes_mode: AesMode, compressed_size: u64) -> AesReader<R> { in new()
50 - (PWD_VERIFY_LENGTH + AUTH_CODE_LENGTH + aes_mode.salt_length()) as u64; in new()
54 aes_mode, in new()
71 let salt_length = self.aes_mode.salt_length(); in validate()
72 let key_length = self.aes_mode.key_length(); in validate()
98 let cipher = cipher_from_mode(self.aes_mode, decrypt_key); in validate()
Dread.rs236 (Some(password), Some((aes_mode, vendor_version))) => { in make_crypto_reader()
237 match AesReader::new(reader, aes_mode, compressed_size).validate(password)? { in make_crypto_reader()
621 data.aes_mode, in by_index_with_optional_password()
718 aes_mode: None, in central_header_to_zip_file()
727 if aes_enabled && result.aes_mode.is_none() { in central_header_to_zip_file()
776 let aes_mode = reader.read_u8()?; in parse_extra_field() localVariable
787 match aes_mode { in parse_extra_field()
788 0x01 => file.aes_mode = Some((AesMode::Aes128, vendor_version)), in parse_extra_field()
789 0x02 => file.aes_mode = Some((AesMode::Aes192, vendor_version)), in parse_extra_field()
790 0x03 => file.aes_mode = Some((AesMode::Aes256, vendor_version)), in parse_extra_field()
[all …]
Dtypes.rs347 pub aes_mode: Option<(AesMode, AesVendorVersion)>, field
463 aes_mode: None, in sanitize()
Dwrite.rs375 aes_mode: None, in start_entry()