pub struct RsaCipher { /* private fields */ }Implementations§
Source§impl RsaCipher
impl RsaCipher
pub fn new(key: &CPointer<EVP_PKEY>) -> Result<RsaCipher, RlsError>
pub fn from_rsa_key(key: &RsaKey) -> Result<RsaCipher, RlsError>
pub fn encrypt(&self, data: impl AsRef<[u8]>) -> Result<Vec<u8>, RlsError>
pub fn decrypt(&self, data: impl AsRef<[u8]>) -> Result<Vec<u8>, RlsError>
Auto Trait Implementations§
impl Freeze for RsaCipher
impl RefUnwindSafe for RsaCipher
impl Send for RsaCipher
impl Sync for RsaCipher
impl Unpin for RsaCipher
impl UnsafeUnpin for RsaCipher
impl UnwindSafe for RsaCipher
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