pub struct DefaultFactory;
Available on crate feature
default-crypto
only.Expand description
Provides a default implementation for build object for using the crypto functions.
Trait Implementations§
Source§impl CryptoFactory for DefaultFactory
impl CryptoFactory for DefaultFactory
type E = Aes128
type D = Aes128
type M = CoreWrapper<CmacCore<Aes128>>
Source§fn new_enc(&self, key: &AES128) -> <DefaultFactory as CryptoFactory>::E
fn new_enc(&self, key: &AES128) -> <DefaultFactory as CryptoFactory>::E
Method that creates an Encrypter.
Source§fn new_dec(&self, key: &AES128) -> <DefaultFactory as CryptoFactory>::D
fn new_dec(&self, key: &AES128) -> <DefaultFactory as CryptoFactory>::D
Method that creates a Decrypter.
Source§fn new_mac(&self, key: &AES128) -> <DefaultFactory as CryptoFactory>::M
fn new_mac(&self, key: &AES128) -> <DefaultFactory as CryptoFactory>::M
Method that creates a MAC calculator.
Source§impl Debug for DefaultFactory
impl Debug for DefaultFactory
Source§impl Default for DefaultFactory
impl Default for DefaultFactory
Source§fn default() -> DefaultFactory
fn default() -> DefaultFactory
Returns the “default value” for a type. Read more
Source§impl PartialEq for DefaultFactory
impl PartialEq for DefaultFactory
impl Eq for DefaultFactory
impl StructuralPartialEq for DefaultFactory
Auto Trait Implementations§
impl Freeze for DefaultFactory
impl RefUnwindSafe for DefaultFactory
impl Send for DefaultFactory
impl Sync for DefaultFactory
impl Unpin for DefaultFactory
impl UnwindSafe for DefaultFactory
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