aws_lc_rs::rsa

Struct RsaParameters

Source
pub struct RsaParameters(/* private fields */);
Expand description

Parameters for RSA verification.

Implementations§

Source§

impl RsaParameters

Source

pub fn public_modulus_len(public_key: &[u8]) -> Result<u32, Unspecified>

Parses a DER-encoded RSAPublicKey structure (RFC 8017) to determine its size in bits.

§Errors

error::Unspecified on parse error.

Source

pub fn min_modulus_len(&self) -> u32

Minimum modulus length in bits.

Source

pub fn max_modulus_len(&self) -> u32

Maximum modulus length in bits.

Trait Implementations§

Source§

impl Debug for RsaParameters

Source§

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

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

impl VerificationAlgorithm for RsaParameters

Source§

fn verify( &self, public_key: Input<'_>, msg: Input<'_>, signature: Input<'_>, ) -> Result<(), Unspecified>

👎Deprecated: please use VerificationAlgorithm::verify_sig instead
Available on crate feature ring-sig-verify only.
Verify the signature signature of message msg with the public key public_key. Read more
Source§

fn verify_sig( &self, public_key: &[u8], msg: &[u8], signature: &[u8], ) -> Result<(), Unspecified>

Verify the signature signature of message msg with the public key public_key. Read more

Auto Trait Implementations§

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>,

Source§

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>,

Source§

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.