[−][src]Struct crypto2::aeadcipher::Aes128OcbTag128
Implementations
impl Aes128OcbTag128
[src]
pub const KEY_LEN: usize
[src]
pub const BLOCK_LEN: usize
[src]
pub const TAG_LEN: usize
[src]
pub const A_MAX: usize
[src]
pub const P_MAX: usize
[src]
pub const C_MAX: usize
[src]
pub const N_MIN: usize
[src]
pub const N_MAX: usize
[src]
pub fn new(key: &[u8]) -> Self
[src]
pub fn encrypt_slice(&self, nonce: &[u8], aad: &[u8], aead_pkt: &mut [u8])
[src]
pub fn decrypt_slice(
&self,
nonce: &[u8],
aad: &[u8],
aead_pkt: &mut [u8]
) -> bool
[src]
&self,
nonce: &[u8],
aad: &[u8],
aead_pkt: &mut [u8]
) -> bool
pub fn encrypt_slice_detached(
&self,
nonce: &[u8],
aad: &[u8],
plaintext_in_ciphertext_out: &mut [u8],
tag_out: &mut [u8]
)
[src]
&self,
nonce: &[u8],
aad: &[u8],
plaintext_in_ciphertext_out: &mut [u8],
tag_out: &mut [u8]
)
pub fn decrypt_slice_detached(
&self,
nonce: &[u8],
aad: &[u8],
ciphertext_in_plaintext_out: &mut [u8],
tag_in: &[u8]
) -> bool
[src]
&self,
nonce: &[u8],
aad: &[u8],
ciphertext_in_plaintext_out: &mut [u8],
tag_in: &[u8]
) -> bool
Trait Implementations
impl AeadCipher for Aes128OcbTag128
[src]
pub const KEY_LEN: usize
[src]
pub const BLOCK_LEN: usize
[src]
pub const TAG_LEN: usize
[src]
pub const P_MAX: usize
[src]
pub const C_MAX: usize
[src]
pub const N_MIN: usize
[src]
pub const N_MAX: usize
[src]
pub const KIND: AeadCipherKind
[src]
pub fn aead_key_len() -> usize
[src]
pub fn aead_block_len() -> usize
[src]
pub fn aead_tag_len() -> usize
[src]
pub fn aead_pmax() -> usize
[src]
pub fn aead_cmax() -> usize
[src]
pub fn aead_nmin() -> usize
[src]
pub fn aead_nmax() -> usize
[src]
pub fn aead_kind() -> AeadCipherKind
[src]
pub fn aead_new(key: &[u8]) -> Self
[src]
pub fn aead_encrypt_slice(&self, nonce: &[u8], aad: &[u8], aead_pkt: &mut [u8])
[src]
#[must_use]pub fn aead_decrypt_slice(
&self,
nonce: &[u8],
aad: &[u8],
aead_pkt: &mut [u8]
) -> bool
[src]
&self,
nonce: &[u8],
aad: &[u8],
aead_pkt: &mut [u8]
) -> bool
pub fn aead_encrypt_slice_detached(
&self,
nonce: &[u8],
aad: &[u8],
plaintext_in_ciphertext_out: &mut [u8],
tag_out: &mut [u8]
)
[src]
&self,
nonce: &[u8],
aad: &[u8],
plaintext_in_ciphertext_out: &mut [u8],
tag_out: &mut [u8]
)
#[must_use]pub fn aead_decrypt_slice_detached(
&self,
nonce: &[u8],
aad: &[u8],
ciphertext_in_plaintext_out: &mut [u8],
tag_in: &[u8]
) -> bool
[src]
&self,
nonce: &[u8],
aad: &[u8],
ciphertext_in_plaintext_out: &mut [u8],
tag_in: &[u8]
) -> bool
impl Clone for Aes128OcbTag128
[src]
pub fn clone(&self) -> Aes128OcbTag128
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Drop for Aes128OcbTag128
[src]
impl Zeroize for Aes128OcbTag128
[src]
Auto Trait Implementations
impl RefUnwindSafe for Aes128OcbTag128
impl Send for Aes128OcbTag128
impl Sync for Aes128OcbTag128
impl Unpin for Aes128OcbTag128
impl UnwindSafe for Aes128OcbTag128
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> 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>,