pub struct RustCryptoRsaPublicKey { /* private fields */ }Expand description
Opaque RSA public-key handle for the built-in RustCrypto provider.
Implementations§
Source§impl RustCryptoRsaPublicKey
impl RustCryptoRsaPublicKey
Sourcepub fn new(key: RsaPublicKey) -> Self
pub fn new(key: RsaPublicKey) -> Self
Wrap an already parsed RustCrypto RSA public key.
Trait Implementations§
Source§impl Clone for RustCryptoRsaPublicKey
impl Clone for RustCryptoRsaPublicKey
Source§impl From<RsaPublicKey> for RustCryptoRsaPublicKey
Available on crate feature xmlenc only.
impl From<RsaPublicKey> for RustCryptoRsaPublicKey
Available on crate feature
xmlenc only.Source§fn from(key: RsaPublicKey) -> Self
fn from(key: RsaPublicKey) -> Self
Converts to this type from the input type.
Source§impl KeyTransportKey for RustCryptoRsaPublicKey
Available on crate feature xmlenc only.
impl KeyTransportKey for RustCryptoRsaPublicKey
Available on crate feature
xmlenc only.Source§fn rsa_modulus(&self) -> Cow<'_, [u8]>
fn rsa_modulus(&self) -> Cow<'_, [u8]>
RSA modulus bytes without redundant leading zero octets. Read more
Source§fn rsa_exponent(&self) -> Cow<'_, [u8]>
fn rsa_exponent(&self) -> Cow<'_, [u8]>
RSA public exponent bytes without redundant leading zero octets.
Source§fn transport_with_provider(
&self,
provider: &dyn CryptoProvider,
parameters: &RsaOaepParameters,
plaintext: &[u8],
) -> Result<Vec<u8>, ProviderError>
fn transport_with_provider( &self, provider: &dyn CryptoProvider, parameters: &RsaOaepParameters, plaintext: &[u8], ) -> Result<Vec<u8>, ProviderError>
Execute OAEP key transport using the selected provider’s randomness.
Source§fn provider_binding(&self) -> Option<&ProviderBinding>
fn provider_binding(&self) -> Option<&ProviderBinding>
External execution domain, or
None for software-owned public keys.Auto Trait Implementations§
impl Freeze for RustCryptoRsaPublicKey
impl RefUnwindSafe for RustCryptoRsaPublicKey
impl Send for RustCryptoRsaPublicKey
impl Sync for RustCryptoRsaPublicKey
impl Unpin for RustCryptoRsaPublicKey
impl UnsafeUnpin for RustCryptoRsaPublicKey
impl UnwindSafe for RustCryptoRsaPublicKey
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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