Home
last modified time | relevance | path

Searched refs:CipherInitPurpose (Results 1 – 3 of 3) sorted by relevance

/rust/bssl-crypto/src/cipher/
A Dmod.rs126 enum CipherInitPurpose { enum
138 fn new(key: &C::Key, iv: &C::Nonce, purpose: CipherInitPurpose) -> Self { in new()
151 CipherInitPurpose::Encrypt => unsafe { in new()
160 CipherInitPurpose::Decrypt => unsafe { in new()
364 use crate::cipher::{CipherInitPurpose, EvpAes128Cbc, EvpAes128Ctr};
371 Cipher::<EvpAes128Ctr>::new(&[0; 16], &[0; 16], CipherInitPurpose::Encrypt) in test_cipher_mode()
377 Cipher::<EvpAes128Cbc>::new(&[0; 16], &[0; 16], CipherInitPurpose::Encrypt) in test_cipher_mode()
387 Cipher::<EvpAes128Cbc>::new(&[0; 16], &[0; 16], CipherInitPurpose::Encrypt); in test_apply_keystream_on_cbc()
A Daes_cbc.rs18 BlockCipher, Cipher, CipherError, CipherInitPurpose, EvpAes128Cbc, EvpAes256Cbc,
30 Self(Cipher::new(key, nonce, CipherInitPurpose::Encrypt)) in new_encrypt()
34 Self(Cipher::new(key, nonce, CipherInitPurpose::Decrypt)) in new_decrypt()
56 Self(Cipher::new(key, nonce, CipherInitPurpose::Encrypt)) in new_encrypt()
60 Self(Cipher::new(key, nonce, CipherInitPurpose::Decrypt)) in new_decrypt()
A Daes_ctr.rs16 Cipher, CipherError, CipherInitPurpose, EvpAes128Ctr, EvpAes256Ctr, StreamCipher,
28 Self(Cipher::new(key, nonce, CipherInitPurpose::Encrypt)) in new()
46 Self(Cipher::new(key, nonce, CipherInitPurpose::Encrypt)) in new()

Completed in 12 milliseconds