pub struct RsaOaepKeyWrapper { /* private fields */ }Available on crate features
signatures and key-wrapping-rsa only.Expand description
RSA-OAEP-256 key wrapper (sender side).
Encrypts a content encryption key using the recipient’s RSA public key with OAEP padding and SHA-256 as the hash function.
Implementations§
Source§impl RsaOaepKeyWrapper
impl RsaOaepKeyWrapper
Sourcepub fn new(recipient_public_key: RsaPublicKey) -> Self
pub fn new(recipient_public_key: RsaPublicKey) -> Self
Create a key wrapper for the given recipient RSA public key.
Auto Trait Implementations§
impl Freeze for RsaOaepKeyWrapper
impl RefUnwindSafe for RsaOaepKeyWrapper
impl Send for RsaOaepKeyWrapper
impl Sync for RsaOaepKeyWrapper
impl Unpin for RsaOaepKeyWrapper
impl UnsafeUnpin for RsaOaepKeyWrapper
impl UnwindSafe for RsaOaepKeyWrapper
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