Skip to main content

KeySize

Trait KeySize 

Source
pub trait KeySize {
    // Required method
    fn size(&self) -> usize;

    // Provided methods
    fn bit_length(&self) -> usize { ... }
    fn cipher_text_block_size(&self) -> usize { ... }
}
Expand description

Trait for computing the key size of a private key.

Required Methods§

Source

fn size(&self) -> usize

Length in bytes.

Provided Methods§

Source

fn bit_length(&self) -> usize

Length in bits.

Source

fn cipher_text_block_size(&self) -> usize

Get the cipher text block size.

Implementors§