Skip to main content

BlockCipher

Trait BlockCipher 

Source
pub trait BlockCipher:
    'static
    + Debug
    + Sealed {
    // Required methods
    fn id(&self) -> BlockCipherId;
    fn key_len(&self) -> usize;
}
Expand description

A key wrap block cipher.

Required Methods§

Source

fn id(&self) -> BlockCipherId

The block cipher identifier.

Source

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§