aws_lc_rs::aead::aead_ctx

Enum AeadCtx

Source
pub(crate) enum AeadCtx {
    AES_128_GCM(ManagedPointer<*mut EVP_AEAD_CTX>),
    AES_192_GCM(ManagedPointer<*mut EVP_AEAD_CTX>),
    AES_256_GCM(ManagedPointer<*mut EVP_AEAD_CTX>),
    AES_128_GCM_SIV(ManagedPointer<*mut EVP_AEAD_CTX>),
    AES_256_GCM_SIV(ManagedPointer<*mut EVP_AEAD_CTX>),
    AES_128_GCM_RANDNONCE(ManagedPointer<*mut EVP_AEAD_CTX>),
    AES_256_GCM_RANDNONCE(ManagedPointer<*mut EVP_AEAD_CTX>),
    AES_128_GCM_TLS12(ManagedPointer<*mut EVP_AEAD_CTX>),
    AES_256_GCM_TLS12(ManagedPointer<*mut EVP_AEAD_CTX>),
    AES_128_GCM_TLS13(ManagedPointer<*mut EVP_AEAD_CTX>),
    AES_256_GCM_TLS13(ManagedPointer<*mut EVP_AEAD_CTX>),
    CHACHA20_POLY1305(ManagedPointer<*mut EVP_AEAD_CTX>),
}

Variants§

Implementations§

Source§

impl AeadCtx

Source

pub(crate) fn aes_128_gcm( key_bytes: &[u8], tag_len: usize, ) -> Result<Self, Unspecified>

Source

pub(crate) fn aes_128_gcm_siv( key_bytes: &[u8], tag_len: usize, ) -> Result<Self, Unspecified>

Source

pub(crate) fn aes_192_gcm( key_bytes: &[u8], tag_len: usize, ) -> Result<Self, Unspecified>

Source

pub(crate) fn aes_256_gcm( key_bytes: &[u8], tag_len: usize, ) -> Result<Self, Unspecified>

Source

pub(crate) fn aes_256_gcm_siv( key_bytes: &[u8], tag_len: usize, ) -> Result<Self, Unspecified>

Source

pub(crate) fn aes_128_gcm_randnonce( key_bytes: &[u8], tag_len: usize, nonce_len: usize, ) -> Result<Self, Unspecified>

Source

pub(crate) fn aes_256_gcm_randnonce( key_bytes: &[u8], tag_len: usize, nonce_len: usize, ) -> Result<Self, Unspecified>

Source

pub(crate) fn aes_128_gcm_tls12( key_bytes: &[u8], tag_len: usize, direction: AeadDirection, ) -> Result<Self, Unspecified>

Source

pub(crate) fn aes_256_gcm_tls12( key_bytes: &[u8], tag_len: usize, direction: AeadDirection, ) -> Result<Self, Unspecified>

Source

pub(crate) fn aes_128_gcm_tls13( key_bytes: &[u8], tag_len: usize, direction: AeadDirection, ) -> Result<Self, Unspecified>

Source

pub(crate) fn aes_256_gcm_tls13( key_bytes: &[u8], tag_len: usize, direction: AeadDirection, ) -> Result<Self, Unspecified>

Source

pub(crate) fn chacha20( key_bytes: &[u8], tag_len: usize, ) -> Result<Self, Unspecified>

Source

fn aes_128_context( aead: unsafe extern "C" fn() -> *const evp_aead_st, key_bytes: &[u8], tag_len: usize, direction: Option<AeadDirection>, ) -> Result<ManagedPointer<*mut EVP_AEAD_CTX>, Unspecified>

Source

fn aes_192_context( aead: unsafe extern "C" fn() -> *const evp_aead_st, key_bytes: &[u8], tag_len: usize, direction: Option<AeadDirection>, ) -> Result<ManagedPointer<*mut EVP_AEAD_CTX>, Unspecified>

Source

fn aes_256_context( aead: unsafe extern "C" fn() -> *const evp_aead_st, key_bytes: &[u8], tag_len: usize, direction: Option<AeadDirection>, ) -> Result<ManagedPointer<*mut EVP_AEAD_CTX>, Unspecified>

Source

fn build_context( aead_fn: unsafe extern "C" fn() -> *const evp_aead_st, key_bytes: &[u8], tag_len: usize, direction: Option<AeadDirection>, ) -> Result<ManagedPointer<*mut EVP_AEAD_CTX>, Unspecified>

Trait Implementations§

Source§

impl AsRef<ManagedPointer<*mut evp_aead_ctx_st>> for AeadCtx

Source§

fn as_ref(&self) -> &ManagedPointer<*mut EVP_AEAD_CTX>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl From<AeadCtx> for UnboundKey

Source§

fn from(value: AeadCtx) -> Self

Converts to this type from the input type.
Source§

impl Send for AeadCtx

Source§

impl Sync for AeadCtx

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.