Enum rsa::padding::PaddingScheme [−][src]
pub enum PaddingScheme { PKCS1v15Encrypt, PKCS1v15Sign { hash: Option<Hash>, }, OAEP { digest: Box<dyn DynDigest>, label: Option<String>, }, PSS { salt_rng: Box<dyn RngCore>, digest: Box<dyn DynDigest>, salt_len: Option<usize>, }, }
Expand description
Available padding schemes.
Variants
Expand description
Encryption and Decryption using PKCS1v15 padding.
Expand description
Sign and Verify using PKCS1v15 padding.
Expand description
Encryption and Decryption using OAEP padding.
Expand description
Sign and Verify using PSS padding.
Implementations
impl PaddingScheme
[src]
impl PaddingScheme
[src]pub fn new_pkcs1v15_encrypt() -> Self
[src]
pub fn new_pkcs1v15_sign(hash: Option<Hash>) -> Self
[src]
pub fn new_oaep<T: 'static + Digest + DynDigest>() -> Self
[src]
pub fn new_oaep_with_label<T: 'static + Digest + DynDigest, S: AsRef<str>>(
label: S
) -> Self
[src]
label: S
) -> Self
pub fn new_pss<T: 'static + Digest + DynDigest, S: 'static + RngCore>(
rng: S
) -> Self
[src]
rng: S
) -> Self
pub fn new_pss_with_salt<T: 'static + Digest + DynDigest, S: 'static + RngCore>(
rng: S,
len: usize
) -> Self
[src]
rng: S,
len: usize
) -> Self
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PaddingScheme
impl !Send for PaddingScheme
impl !Sync for PaddingScheme
impl Unpin for PaddingScheme
impl !UnwindSafe for PaddingScheme
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more