pub struct BoxDynCipher(pub Box<dyn DynCipher>);Expand description
Wraps a Box<dyn DynCipher> and also provides a CipherFactory which dynamically
selects the cipher implementation based on the provided name.
Tuple Fields§
§0: Box<dyn DynCipher>Trait Implementations§
Source§impl DynCipherCore for BoxDynCipher
impl DynCipherCore for BoxDynCipher
Source§impl StreamCipher for BoxDynCipher
impl StreamCipher for BoxDynCipher
Source§fn try_apply_keystream_inout(
&mut self,
buf: InOutBuf<'_, '_, u8>,
) -> Result<(), StreamCipherError>
fn try_apply_keystream_inout( &mut self, buf: InOutBuf<'_, '_, u8>, ) -> Result<(), StreamCipherError>
Apply keystream to
inout data. Read moreSource§fn try_apply_keystream(
&mut self,
buf: &mut [u8],
) -> Result<(), StreamCipherError>
fn try_apply_keystream( &mut self, buf: &mut [u8], ) -> Result<(), StreamCipherError>
Apply keystream to data behind
buf. Read moreSource§fn apply_keystream_inout(&mut self, buf: InOutBuf<'_, '_, u8>)
fn apply_keystream_inout(&mut self, buf: InOutBuf<'_, '_, u8>)
Apply keystream to
inout data. Read moreSource§fn apply_keystream(&mut self, buf: &mut [u8])
fn apply_keystream(&mut self, buf: &mut [u8])
Apply keystream to data in-place. Read more
Source§fn apply_keystream_b2b(
&mut self,
input: &[u8],
output: &mut [u8],
) -> Result<(), StreamCipherError>
fn apply_keystream_b2b( &mut self, input: &[u8], output: &mut [u8], ) -> Result<(), StreamCipherError>
Apply keystream to data buffer-to-buffer. Read more
Auto Trait Implementations§
impl Freeze for BoxDynCipher
impl !RefUnwindSafe for BoxDynCipher
impl Send for BoxDynCipher
impl !Sync for BoxDynCipher
impl Unpin for BoxDynCipher
impl !UnwindSafe for BoxDynCipher
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