[−][src]Struct pwbox::rcrypto::Aes128Gcm
This is supported on crate feature
rust-crypto
only.AES-128 cipher in GCM mode.
Implementation note
The GCM mode allows authenticating public data in addition to the ciphertext;
for this application, this additional data is an empty slice &[]
.
Trait Implementations
impl Cipher for Aes128Gcm
[src]
const KEY_LEN: usize
[src]
const NONCE_LEN: usize
[src]
const MAC_LEN: usize
[src]
fn seal(message: &[u8], nonce: &[u8], key: &[u8]) -> CipherOutput
[src]
fn open(
output: &mut [u8],
enc: &CipherOutput,
nonce: &[u8],
key: &[u8]
) -> Result<(), MacMismatch>
[src]
output: &mut [u8],
enc: &CipherOutput,
nonce: &[u8],
key: &[u8]
) -> Result<(), MacMismatch>
impl Clone for Aes128Gcm
[src]
impl Copy for Aes128Gcm
[src]
impl Debug for Aes128Gcm
[src]
impl Default for Aes128Gcm
[src]
Auto Trait Implementations
impl RefUnwindSafe for Aes128Gcm
impl Send for Aes128Gcm
impl Sync for Aes128Gcm
impl Unpin for Aes128Gcm
impl UnwindSafe for Aes128Gcm
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,