Skip to main content

AuthenticatedCipher

Trait AuthenticatedCipher 

Source
pub trait AuthenticatedCipher {
    const TAG_SIZE: usize;
    const ALGORITHM_ID: &'static str;

    // Provided method
    fn name() -> String { ... }
}
Expand description

Marker trait for authenticated encryption algorithms

Required Associated Constants§

Source

const TAG_SIZE: usize

Authentication tag size in bytes

Source

const ALGORITHM_ID: &'static str

Static algorithm identifier for compile-time checking

Provided Methods§

Source

fn name() -> String

Returns the authenticated cipher algorithm name

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§