[−][src]Enum yaca::Padding
Enumeration of YACA paddings
Variants
No padding at all. This method assumes that the input data
already has a proper length for a given cryptographic
operation (e.g. it has been padded by the client). Suitable
for symmetric Encrypt
/Decrypt
operations as well as low-level
RSA
operations.
X9.31 padding. Suitable for RSA
Sign
/Verify
operation. Not
supported in low-level RSA
operations.
PKCS #1 v1.5 padding. Suitable for RSA
Sign
/Verify
and
low-level RSA
operations. For low-level operations the input
must be at least 11 bytes shorter than the key length.
PKCS #1 PSS padding. Suitable for RSA
Sign
/Verify
operations. Not supported in low-level RSA
operations.
EME-OAEP as defined in PKCS #1 v2.0 with SHA-1, MGF1 and an
empty encoding parameter. Suitable for low-level RSA
public_encrypt
/private_decrypt
operations. For low-level
operations the input must be at least 42 bytes shorter than
the key length.
PKCS #1 v1.5 padding with an SSL-specific modification that
denotes that the party is SSL3 capable. It is used for
rollback attack detection in SSLv3. If during decryption it
turns out that both parties are using Pkcs1SslV23
(both are
communicating using SSL2 and both are SSL3 capable) it is
treated as a rollback attack and an error is
returned. Suitable for low-level RSA
public_encrypt
/private_decrypt
operations. For low-level
operations the input must be at least 11 bytes shorter than
the key length.
PKCS #7 padding. Suitable for symmetric Encrypt
/Decrypt
operation.
Trait Implementations
impl Debug for Padding
[src]
impl PartialEq<Padding> for Padding
[src]
pub fn eq(&self, other: &Padding) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for Padding
[src]
Auto Trait Implementations
impl RefUnwindSafe for Padding
impl Send for Padding
impl Sync for Padding
impl Unpin for Padding
impl UnwindSafe for Padding
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,