Trait rsa_cortex_m4::padding::EncryptionPadding[][src]

pub trait EncryptionPadding<const D: usize> {
    fn pad(msg: &[u8], rng: impl CryptoRng + RngCore) -> Result<Long<D>>;
fn unpad(padded: &Long<D>) -> Result<Unpadded<D>>; }

Padding usable for encryption and decryption.

Required methods

fn pad(msg: &[u8], rng: impl CryptoRng + RngCore) -> Result<Long<D>>[src]

fn unpad(padded: &Long<D>) -> Result<Unpadded<D>>[src]

Loading content...

Implementors

impl<H: Digest, const D: usize> EncryptionPadding<D> for Oaep<H>[src]

impl<H: Digest, const D: usize> EncryptionPadding<D> for Pkcs1<H>[src]

Loading content...