pub struct EncryptingKey {
pub(super) inner: PublicKey,
}Expand description
Encryption key for PKCS#1 v1.5 encryption as described in RFC8017 § 7.2.
Fields§
§inner: PublicKeyImplementations§
Trait Implementations§
Source§impl Clone for EncryptingKey
impl Clone for EncryptingKey
Source§fn clone(&self) -> EncryptingKey
fn clone(&self) -> EncryptingKey
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 Debug for EncryptingKey
impl Debug for EncryptingKey
Source§impl PartialEq for EncryptingKey
impl PartialEq for EncryptingKey
Source§impl RandomizedEncryptor for EncryptingKey
impl RandomizedEncryptor for EncryptingKey
Source§fn encrypt_with_rng<R: TryCryptoRng + ?Sized>(
&self,
rng: &mut R,
msg: &[u8],
) -> Result<Vec<u8>>
fn encrypt_with_rng<R: TryCryptoRng + ?Sized>( &self, rng: &mut R, msg: &[u8], ) -> Result<Vec<u8>>
Encrypt the given message.
impl StructuralPartialEq for EncryptingKey
Auto Trait Implementations§
impl Freeze for EncryptingKey
impl RefUnwindSafe for EncryptingKey
impl Send for EncryptingKey
impl Sync for EncryptingKey
impl Unpin for EncryptingKey
impl UnsafeUnpin for EncryptingKey
impl UnwindSafe for EncryptingKey
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