pub struct RsaParameters(/* private fields */);
Expand description
Parameters for RSA verification.
Implementations§
Source§impl RsaParameters
impl RsaParameters
Sourcepub fn public_modulus_len(public_key: &[u8]) -> Result<u32, Unspecified>
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.
Sourcepub fn min_modulus_len(&self) -> u32
pub fn min_modulus_len(&self) -> u32
Minimum modulus length in bits.
Sourcepub fn max_modulus_len(&self) -> u32
pub fn max_modulus_len(&self) -> u32
Maximum modulus length in bits.
Trait Implementations§
Source§impl Debug for RsaParameters
impl Debug for RsaParameters
Source§impl VerificationAlgorithm for RsaParameters
impl VerificationAlgorithm for RsaParameters
Source§fn verify(
&self,
public_key: Input<'_>,
msg: Input<'_>,
signature: Input<'_>,
) -> Result<(), Unspecified>
fn verify( &self, public_key: Input<'_>, msg: Input<'_>, signature: Input<'_>, ) -> Result<(), Unspecified>
👎Deprecated: please use
VerificationAlgorithm::verify_sig
insteadAvailable on crate feature
ring-sig-verify
only.Source§fn verify_sig(
&self,
public_key: &[u8],
msg: &[u8],
signature: &[u8],
) -> Result<(), Unspecified>
fn verify_sig( &self, public_key: &[u8], msg: &[u8], signature: &[u8], ) -> Result<(), Unspecified>
Auto Trait Implementations§
impl Freeze for RsaParameters
impl RefUnwindSafe for RsaParameters
impl Send for RsaParameters
impl Sync for RsaParameters
impl Unpin for RsaParameters
impl UnwindSafe for RsaParameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more