Struct ring::rsa::padding::pkcs1::PKCS1

source ·
pub struct PKCS1 {
    digest_alg: &'static Algorithm,
    digestinfo_prefix: &'static [u8],
}
Expand description

PKCS#1 1.5 padding as described in RFC 3447 Section 8.2.

See “RSA_PSS_* Details" in ring::signature’s module-level documentation for more details.

Fields§

§digest_alg: &'static Algorithm§digestinfo_prefix: &'static [u8]

Trait Implementations§

source§

impl Debug for PKCS1

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Padding for PKCS1

source§

fn digest_alg(&self) -> &'static Algorithm

source§

impl Verification for PKCS1

source§

fn verify( &self, m_hash: Digest, m: &mut Reader<'_>, mod_bits: BitLength, ) -> Result<(), Unspecified>

source§

impl RsaEncoding for PKCS1

source§

impl Sealed for PKCS1

Auto Trait Implementations§

§

impl Freeze for PKCS1

§

impl RefUnwindSafe for PKCS1

§

impl Send for PKCS1

§

impl Sync for PKCS1

§

impl Unpin for PKCS1

§

impl UnwindSafe for PKCS1

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.