[−][src]Struct vault_rs::secrets::transit::EncryptPayload
A single item to be encrypted
Fields
plaintext: &'a [u8]
Plaintext to be encrypted
nonce: Option<&'b [u8]>
Nonce, if any. This must be provided if convergent encryption is enabled for this key and the key was generated with Vault 0.6.1. Not required for keys created in 0.6.2+. The value must be exactly 96 bits (12 bytes) long and the user must ensure that for any given context (and thus, any given encryption key) this nonce value is never reused.
context: Option<&'c [u8]>
Context, if any. This is required if key derivation is enabled for this key.
Trait Implementations
impl<'a, 'b, 'c> Debug for EncryptPayload<'a, 'b, 'c>
[src]
impl<'a, 'b, 'c> Default for EncryptPayload<'a, 'b, 'c>
[src]
fn default() -> EncryptPayload<'a, 'b, 'c>
[src]
impl<'a, 'b, 'c> Eq for EncryptPayload<'a, 'b, 'c>
[src]
impl<'a, 'b, 'c> PartialEq<EncryptPayload<'a, 'b, 'c>> for EncryptPayload<'a, 'b, 'c>
[src]
fn eq(&self, other: &EncryptPayload<'a, 'b, 'c>) -> bool
[src]
fn ne(&self, other: &EncryptPayload<'a, 'b, 'c>) -> bool
[src]
impl<'a, 'b, 'c> Serialize for EncryptPayload<'a, 'b, 'c>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'a, 'b, 'c> StructuralEq for EncryptPayload<'a, 'b, 'c>
[src]
impl<'a, 'b, 'c> StructuralPartialEq for EncryptPayload<'a, 'b, 'c>
[src]
Auto Trait Implementations
impl<'a, 'b, 'c> RefUnwindSafe for EncryptPayload<'a, 'b, 'c>
impl<'a, 'b, 'c> Send for EncryptPayload<'a, 'b, 'c>
impl<'a, 'b, 'c> Sync for EncryptPayload<'a, 'b, 'c>
impl<'a, 'b, 'c> Unpin for EncryptPayload<'a, 'b, 'c>
impl<'a, 'b, 'c> UnwindSafe for EncryptPayload<'a, 'b, 'c>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,