#[repr(u16)]pub enum DataType {
None = 0,
Key = 1,
Ciphertext = 2,
PasswordHash = 3,
Share = 4,
SigningKey = 5,
Signature = 6,
OnlineCiphertext = 7,
KeyDerivation = 8,
KdfEncryptedData = 9,
}Expand description
The different data types.
Variants§
None = 0
No data type. Only used as a default value.
Key = 1
A wrapped key.
Ciphertext = 2
A wrapped ciphertext. Can be either symmetric or asymmetric.
PasswordHash = 3
A wrapped password hash. Used to verify a password.
A wrapped share. Used for secret sharing scheme.
SigningKey = 5
A wrapped key used to sign data.
Signature = 6
A wrapped signature.
OnlineCiphertext = 7
A wrapped online ciphertext that can be encrypted/decrypted chunk by chunk
KeyDerivation = 8
Serialized key derivation parameters.
KdfEncryptedData = 9
A wrapped payload combining key derivation parameters and ciphertext.
Trait Implementations§
impl Copy for DataType
impl Eq for DataType
impl StructuralPartialEq for DataType
Source§impl TryFromPrimitive for DataType
impl TryFromPrimitive for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnsafeUnpin for DataType
impl UnwindSafe for DataType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.