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§fn clone(&self) -> RustCryptoRsaPublicKey
fn clone(&self) -> RustCryptoRsaPublicKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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.
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