mysql_common::crypto::rsa

Trait Padding

Source
pub trait Padding {
    // Required method
    fn pub_pad(&mut self, input: impl AsRef<[u8]>, k: usize) -> Vec<u8> ;
}
Expand description

Padding operation trait.

Required Methods§

Source

fn pub_pad(&mut self, input: impl AsRef<[u8]>, k: usize) -> Vec<u8>

Padding operation for input bytes, where k is the length of modulus in octets.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§