pub struct XtsInPlaceProcessor<'a> { /* private fields */ }Expand description
To be used with encrypt|decrypt_with_backend for in-place operation. Conforms to IEEE 1619-2007.
Implementations§
Source§impl<'a> XtsInPlaceProcessor<'a>
impl<'a> XtsInPlaceProcessor<'a>
Sourcepub fn new(tweak: Tweak, buf: MutPtrByteSlice<'a>) -> Self
pub fn new(tweak: Tweak, buf: MutPtrByteSlice<'a>) -> Self
Creates an XtsInPlaceProcessor for in-place operation on a single buffer.
Trait Implementations§
Source§impl BlockCipherDecClosure for XtsInPlaceProcessor<'_>
impl BlockCipherDecClosure for XtsInPlaceProcessor<'_>
Source§fn call<B: BlockCipherDecBackend<BlockSize = Self::BlockSize>>(
self,
backend: &B,
)
fn call<B: BlockCipherDecBackend<BlockSize = Self::BlockSize>>( self, backend: &B, )
Execute closure with the provided block cipher backend.
Source§impl BlockCipherEncClosure for XtsInPlaceProcessor<'_>
impl BlockCipherEncClosure for XtsInPlaceProcessor<'_>
Source§fn call<B: BlockCipherEncBackend<BlockSize = Self::BlockSize>>(
self,
backend: &B,
)
fn call<B: BlockCipherEncBackend<BlockSize = Self::BlockSize>>( self, backend: &B, )
Execute closure with the provided block cipher backend.
Auto Trait Implementations§
impl<'a> !UnwindSafe for XtsInPlaceProcessor<'a>
impl<'a> Freeze for XtsInPlaceProcessor<'a>
impl<'a> RefUnwindSafe for XtsInPlaceProcessor<'a>
impl<'a> Send for XtsInPlaceProcessor<'a>
impl<'a> Sync for XtsInPlaceProcessor<'a>
impl<'a> Unpin for XtsInPlaceProcessor<'a>
impl<'a> UnsafeUnpin for XtsInPlaceProcessor<'a>
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