pub struct PkeyDecryptCtx { /* private fields */ }Expand description
RSA asymmetric decryption context.
Implementations§
Source§impl PkeyDecryptCtx
impl PkeyDecryptCtx
Sourcepub fn new(
key: &Pkey<Private>,
params: Option<&Params<'_>>,
) -> Result<Self, ErrorStack>
pub fn new( key: &Pkey<Private>, params: Option<&Params<'_>>, ) -> Result<Self, ErrorStack>
Create a decryption context from a private key.
params is applied immediately after init if Some.
§Errors
Sourcepub fn set_params(&mut self, params: &Params<'_>) -> Result<(), ErrorStack>
pub fn set_params(&mut self, params: &Params<'_>) -> Result<(), ErrorStack>
Configure parameters.
§Errors
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PkeyDecryptCtx
impl RefUnwindSafe for PkeyDecryptCtx
impl !Send for PkeyDecryptCtx
impl !Sync for PkeyDecryptCtx
impl Unpin for PkeyDecryptCtx
impl UnsafeUnpin for PkeyDecryptCtx
impl UnwindSafe for PkeyDecryptCtx
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