Searched refs:BLOCK_LEN (Results 1 – 12 of 12) sorted by relevance
/external/rust/crates/ring/src/aead/ |
D | shift.rs | 15 use super::block::{Block, BLOCK_LEN}; 20 F: FnMut(&[u8; BLOCK_LEN]) -> Block, in shift_full_blocks() 26 for i in (0..in_out_len).step_by(BLOCK_LEN) { 29 <&[u8; BLOCK_LEN]>::try_from(&in_out[(in_prefix_len + i)..][..BLOCK_LEN]).unwrap(); 32 let output = <&mut [u8; BLOCK_LEN]>::try_from(&mut in_out[i..][..BLOCK_LEN]).unwrap(); 47 debug_assert!(in_out_len < BLOCK_LEN); in shift_partial()
|
D | block.rs | 27 pub const BLOCK_LEN: usize = 16; constant 62 let mut tmp: [u8; BLOCK_LEN] = *self.as_ref(); in overwrite_part_at() 69 let mut tmp: [u8; BLOCK_LEN] = *self.as_ref(); in zero_from() 82 impl From<&'_ [u8; BLOCK_LEN]> for Block { 84 fn from(bytes: &[u8; BLOCK_LEN]) -> Self { in from() 89 impl AsRef<[u8; BLOCK_LEN]> for Block { 92 fn as_ref(&self) -> &[u8; BLOCK_LEN] { in as_ref() argument
|
D | aes.rs | 15 use super::{counter, iv::Iv, quic::Sample, Block, Direction, BLOCK_LEN}; 99 assert_eq!(in_out_len % BLOCK_LEN, 0); in ctr32_encrypt_blocks_() 101 let blocks = in_out_len / BLOCK_LEN; in ctr32_encrypt_blocks_() 212 assert_eq!(in_out_len % BLOCK_LEN, 0); in ctr32_encrypt_blocks() 233 let in_out = if in_out_len >= 8 * BLOCK_LEN { in ctr32_encrypt_blocks() 234 let remainder = in_out_len % (8 * BLOCK_LEN); in ctr32_encrypt_blocks() 235 let bsaes_in_out_len = if remainder < (4 * BLOCK_LEN) { in ctr32_encrypt_blocks() 409 use super::{super::BLOCK_LEN, *}; 419 let input: &[u8; BLOCK_LEN] = input.as_slice().try_into()?; in test_aes()
|
D | poly1305.rs | 18 use super::{block::BLOCK_LEN, Tag, TAG_LEN}; 27 const KEY_LEN: usize = 2 * BLOCK_LEN; 144 let key: &[u8; BLOCK_LEN * 2] = key.as_slice().try_into().unwrap(); in test_poly1305()
|
D | chacha20_poly1305.rs | 18 poly1305, Aad, Block, Direction, Nonce, Tag, BLOCK_LEN, 123 let remainder_len = input.len() % BLOCK_LEN; in poly1305_update_padded_16() 141 let mut key_bytes = [0u8; 2 * BLOCK_LEN]; in derive_poly1305_key()
|
D | chacha.rs | 16 use super::{counter, iv::Iv, quic::Sample, BLOCK_LEN}; 43 pub fn encrypt_iv_xor_blocks_in_place(&self, iv: Iv, in_out: &mut [u8; 2 * BLOCK_LEN]) { in encrypt_iv_xor_blocks_in_place() argument 134 pub const KEY_LEN: usize = KEY_BLOCKS * BLOCK_LEN;
|
D | aes_gcm.rs | 17 gcm, shift, Aad, Block, Direction, Nonce, Tag, BLOCK_LEN, 132 let whole_len = in_out_len - (in_out_len % BLOCK_LEN); in aead() 134 let mut chunk_len = CHUNK_BLOCKS * BLOCK_LEN; in aead() 277 const AES_GCM_MAX_INPUT_LEN: u64 = super::max_input_len(BLOCK_LEN, 2);
|
D | gcm.rs | 15 use super::{Aad, Block, BLOCK_LEN}; 94 for ad in aad.0.chunks(BLOCK_LEN) { in new() 112 debug_assert_eq!(input.len() % BLOCK_LEN, 0); in update_blocks()
|
D | chacha20_poly1305_openssh.rs | 184 pub const TAG_LEN: usize = super::BLOCK_LEN;
|
/external/rust/crates/ring/src/digest/ |
D | sha1.rs | 20 pub const BLOCK_LEN: usize = 512 / 8; constant
|
/external/rust/crates/ring/src/ |
D | aead.rs | 24 use self::block::{Block, BLOCK_LEN}; 649 const TAG_LEN: usize = BLOCK_LEN;
|
D | digest.rs | 314 block_len: sha1::BLOCK_LEN,
|