pub struct AeadDecryptCtx(/* private fields */);Expand description
AEAD decryption context.
Implementations§
Source§impl AeadDecryptCtx
impl AeadDecryptCtx
Sourcepub fn new(
alg: &CipherAlg,
key: &[u8],
iv: &[u8],
params: Option<&Params<'_>>,
) -> Result<Self, ErrorStack>
pub fn new( alg: &CipherAlg, key: &[u8], iv: &[u8], params: Option<&Params<'_>>, ) -> Result<Self, ErrorStack>
Sourcepub fn update(
&mut self,
input: &[u8],
output: &mut [u8],
) -> Result<usize, ErrorStack>
pub fn update( &mut self, input: &[u8], output: &mut [u8], ) -> Result<usize, ErrorStack>
Feed input into the cipher; write to output.
§Errors
Auto Trait Implementations§
impl Freeze for AeadDecryptCtx
impl RefUnwindSafe for AeadDecryptCtx
impl Send for AeadDecryptCtx
impl !Sync for AeadDecryptCtx
impl Unpin for AeadDecryptCtx
impl UnsafeUnpin for AeadDecryptCtx
impl UnwindSafe for AeadDecryptCtx
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