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§
Provided Methods§
Sourcefn bit_length(&self) -> usize
fn bit_length(&self) -> usize
Length in bits.
Sourcefn cipher_text_block_size(&self) -> usize
fn cipher_text_block_size(&self) -> usize
Get the cipher text block size.