pub enum Primitive {
Aead(Box<dyn Aead>),
DeterministicAead(Box<dyn DeterministicAead>),
HybridDecrypt(Box<dyn HybridDecrypt>),
HybridEncrypt(Box<dyn HybridEncrypt>),
Mac(Box<dyn Mac>),
Prf(Box<dyn Prf>),
Signer(Box<dyn Signer>),
StreamingAead(Box<dyn StreamingAead>),
Verifier(Box<dyn Verifier>),
}Expand description
The primitives available in Tink.
Variants§
Aead(Box<dyn Aead>)
DeterministicAead(Box<dyn DeterministicAead>)
HybridDecrypt(Box<dyn HybridDecrypt>)
HybridEncrypt(Box<dyn HybridEncrypt>)
Mac(Box<dyn Mac>)
Prf(Box<dyn Prf>)
Signer(Box<dyn Signer>)
StreamingAead(Box<dyn StreamingAead>)
Verifier(Box<dyn Verifier>)
Trait Implementations§
Source§impl Clone for Primitive
Manual implementation of the Clone trait, which makes use of the trait bounds
on the individual primitive types; specifically that they provide a box_clone()
method.
impl Clone for Primitive
Manual implementation of the Clone trait, which makes use of the trait bounds
on the individual primitive types; specifically that they provide a box_clone()
method.
Auto Trait Implementations§
impl Freeze for Primitive
impl !RefUnwindSafe for Primitive
impl !Send for Primitive
impl !Sync for Primitive
impl Unpin for Primitive
impl UnsafeUnpin for Primitive
impl !UnwindSafe for Primitive
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