• Home
  • Raw
  • Download

Lines Matching refs:aes

17         key: OpaqueOr<crypto::aes::Key>,  in begin()
18 mode: crypto::aes::CipherMode, in begin()
27 crypto::aes::CipherMode::EcbNoPadding | crypto::aes::CipherMode::EcbPkcs7Padding => { in begin()
29 crypto::aes::Key::Aes128(k) => (Cipher::aes_128_ecb(), &k[..]), in begin()
30 crypto::aes::Key::Aes192(k) => (Cipher::aes_192_ecb(), &k[..]), in begin()
31 crypto::aes::Key::Aes256(k) => (Cipher::aes_256_ecb(), &k[..]), in begin()
35 if let crypto::aes::CipherMode::EcbPkcs7Padding = mode { in begin()
43 crypto::aes::CipherMode::CbcNoPadding { nonce: n } in begin()
44 | crypto::aes::CipherMode::CbcPkcs7Padding { nonce: n } => { in begin()
46 crypto::aes::Key::Aes128(k) => (Cipher::aes_128_cbc(), &k[..]), in begin()
47 crypto::aes::Key::Aes192(k) => (Cipher::aes_192_cbc(), &k[..]), in begin()
48 crypto::aes::Key::Aes256(k) => (Cipher::aes_256_cbc(), &k[..]), in begin()
52 if let crypto::aes::CipherMode::CbcPkcs7Padding { nonce: _ } = mode { in begin()
60 crypto::aes::CipherMode::Ctr { nonce: n } => { in begin()
62 crypto::aes::Key::Aes128(k) => (Cipher::aes_128_ctr(), &k[..]), in begin()
63 crypto::aes::Key::Aes192(k) => (Cipher::aes_192_ctr(), &k[..]), in begin()
64 crypto::aes::Key::Aes256(k) => (Cipher::aes_256_ctr(), &k[..]), in begin()
76 key: OpaqueOr<crypto::aes::Key>, in begin_aead()
77 mode: crypto::aes::GcmMode, in begin_aead()
86 crypto::aes::GcmMode::GcmTag12 { nonce: n } in begin_aead()
87 | crypto::aes::GcmMode::GcmTag13 { nonce: n } in begin_aead()
88 | crypto::aes::GcmMode::GcmTag14 { nonce: n } in begin_aead()
89 | crypto::aes::GcmMode::GcmTag15 { nonce: n } in begin_aead()
90 | crypto::aes::GcmMode::GcmTag16 { nonce: n } => { in begin_aead()
92 crypto::aes::Key::Aes128(k) => (Cipher::aes_128_gcm(), &k[..]), in begin_aead()
93 crypto::aes::Key::Aes192(k) => (Cipher::aes_192_gcm(), &k[..]), in begin_aead()
94 crypto::aes::Key::Aes256(k) => (Cipher::aes_256_gcm(), &k[..]), in begin_aead()
124 let mut output = vec_try![0; data.len() + crypto::aes::BLOCK_SIZE]?; in update()
134 let mut output = vec_try![0; crypto::aes::BLOCK_SIZE]?; in finish()
143 mode: crypto::aes::GcmMode,
159 let mut output = vec_try![0; crypto::aes::BLOCK_SIZE + self.mode.tag_len()]?; in finish()