Home
last modified time | relevance | path

Searched refs:KEY_LEN (Results 1 – 7 of 7) sorted by relevance

/external/rust/crates/ring/src/aead/
Dchacha20_poly1305_openssh.rs47 pub fn new(key_material: &[u8; KEY_LEN]) -> SealingKey { in new()
94 pub fn new(key_material: &[u8; KEY_LEN]) -> OpeningKey { in new()
155 fn new(key_material: &[u8; KEY_LEN], cpu_features: cpu::Features) -> Key { in new() argument
157 let (k_2, k_1) = key_material.split_at(chacha::KEY_LEN);
158 let k_1: [u8; chacha::KEY_LEN] = k_1.try_into().unwrap();
159 let k_2: [u8; chacha::KEY_LEN] = k_2.try_into().unwrap();
178 pub const KEY_LEN: usize = chacha::KEY_LEN * 2; constant
Dchacha.rs20 pub struct Key([LittleEndian<u32>; KEY_LEN / 4]);
22 impl From<[u8; KEY_LEN]> for Key {
24 fn from(value: [u8; KEY_LEN]) -> Self { in from()
134 pub const KEY_LEN: usize = KEY_BLOCKS * BLOCK_LEN; constant
159 let key: &[u8; KEY_LEN] = key.as_slice().try_into()?; in chacha20_tests()
Dpoly1305.rs23 key_and_nonce: [u8; KEY_LEN],
27 const KEY_LEN: usize = 2 * BLOCK_LEN; constant
31 pub(super) fn new(key_and_nonce: [u8; KEY_LEN], cpu_features: cpu::Features) -> Self { in new() argument
95 (statep: &mut poly1305_state, key: &[u8; KEY_LEN])
Dchacha20_poly1305.rs29 key_len: chacha::KEY_LEN,
42 let key: [u8; chacha::KEY_LEN] = key.try_into()?; in chacha20_poly1305_init()
Dquic.rs168 key_len: chacha::KEY_LEN,
175 let chacha20_key: [u8; chacha::KEY_LEN] = key.try_into()?; in chacha20_init()
/external/arm-trusted-firmware/plat/mediatek/mt8173/drivers/crypt/
Dcrypt.c40 #define KEY_LEN 40 macro
61 if (i > KEY_LEN) in crypt_set_hdcp_key_ex()
64 if (i < KEY_LEN) { in crypt_set_hdcp_key_ex()
106 if (num > KEY_LEN) in crypt_set_hdcp_key_num()
/external/rust/crates/ring/tests/
Daead_tests.rs368 let mut as_array = [0u8; aead::chacha20_poly1305_openssh::KEY_LEN]; in aead_chacha20_poly1305_openssh()