Searched refs:KEY_LEN (Results 1 – 7 of 7) sorted by relevance
47 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() argument157 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
20 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; constant159 let key: &[u8; KEY_LEN] = key.as_slice().try_into()?; in chacha20_tests()
23 key_and_nonce: [u8; KEY_LEN],27 const KEY_LEN: usize = 2 * BLOCK_LEN; constant31 pub(super) fn new(key_and_nonce: [u8; KEY_LEN], cpu_features: cpu::Features) -> Self { in new() argument95 (statep: &mut poly1305_state, key: &[u8; KEY_LEN])
29 key_len: chacha::KEY_LEN,42 let key: [u8; chacha::KEY_LEN] = key.try_into()?; in chacha20_poly1305_init()
168 key_len: chacha::KEY_LEN,175 let chacha20_key: [u8; chacha::KEY_LEN] = key.try_into()?; in chacha20_init()
40 #define KEY_LEN 40 macro61 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()
368 let mut as_array = [0u8; aead::chacha20_poly1305_openssh::KEY_LEN]; in aead_chacha20_poly1305_openssh()