pub struct Cipher { /* private fields */ }
Implementations§
Source§impl Cipher
impl Cipher
pub fn get_instance(env: &mut JNIEnv<'_>, transformation: &str) -> JResult<Self>
pub fn init(&self, env: &mut JNIEnv<'_>, mode: i32, key: &Key) -> JResult<()>
pub fn init2( &self, env: &mut JNIEnv<'_>, mode: i32, key: &Key, spec: AlgorithmParameterSpec, ) -> JResult<()>
pub fn get_iv(&self, env: &mut JNIEnv<'_>) -> JResult<Vec<u8>>
pub fn do_final(&self, env: &mut JNIEnv<'_>, input: &[u8]) -> JResult<Vec<u8>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cipher
impl RefUnwindSafe for Cipher
impl Send for Cipher
impl Sync for Cipher
impl Unpin for Cipher
impl UnwindSafe for Cipher
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