Skip to main content

BlockCipher

Trait BlockCipher 

pub trait BlockCipher:
    'static
    + Debug
    + Sealed {
    // Required methods
    fn id(&self) -> BlockCipherId;
    fn key_len(&self) -> usize;
}
Available on crate features aws-lc and crypto only.
Expand description

A key wrap block cipher.

Required Methods§

fn id(&self) -> BlockCipherId

The block cipher identifier.

fn key_len(&self) -> usize

The key size in bytes to be used with the block cipher.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§