Lines Matching refs:KeyInner
27 inner: KeyInner,
32 enum KeyInner { enum
85 init: fn(key: &[u8], cpu_features: cpu::Features) -> Result<KeyInner, error::Unspecified>,
87 new_mask: fn(key: &KeyInner, sample: Sample) -> [u8; 5],
147 fn aes_init_128(key: &[u8], cpu_features: cpu::Features) -> Result<KeyInner, error::Unspecified> { in aes_init_128() argument
149 Ok(KeyInner::Aes(aes_key)) in aes_init_128()
152 fn aes_init_256(key: &[u8], cpu_features: cpu::Features) -> Result<KeyInner, error::Unspecified> { in aes_init_256() argument
154 Ok(KeyInner::Aes(aes_key)) in aes_init_256()
157 fn aes_new_mask(key: &KeyInner, sample: Sample) -> [u8; 5] { in aes_new_mask() argument
159 KeyInner::Aes(key) => key,
174 fn chacha20_init(key: &[u8], _todo: cpu::Features) -> Result<KeyInner, error::Unspecified> { in chacha20_init() argument
176 Ok(KeyInner::ChaCha20(chacha::Key::from(chacha20_key))) in chacha20_init()
179 fn chacha20_new_mask(key: &KeyInner, sample: Sample) -> [u8; 5] { in chacha20_new_mask() argument
181 KeyInner::ChaCha20(key) => key,