pub struct EncryptedFragment {
pub ciphertext: Vec<u8>,
pub nonce: Vec<u8>,
}Expand description
Encrypted data fragment containing ciphertext and nonce.
Used for storing encrypted metadata (e.g., the wrapped store’s configuration
in PasswordStoreConfig::wrapped_config). This is a storage container
with no CRDT semantics.
Fields§
§ciphertext: Vec<u8>AES-256-GCM encrypted ciphertext.
nonce: Vec<u8>12-byte nonce for AES-GCM (must be unique per encryption).
Trait Implementations§
Source§impl Clone for EncryptedFragment
impl Clone for EncryptedFragment
Source§fn clone(&self) -> EncryptedFragment
fn clone(&self) -> EncryptedFragment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncryptedFragment
impl Debug for EncryptedFragment
Source§impl<'de> Deserialize<'de> for EncryptedFragment
impl<'de> Deserialize<'de> for EncryptedFragment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<EncryptedFragment> for Doc
impl From<EncryptedFragment> for Doc
Source§fn from(frag: EncryptedFragment) -> Doc
fn from(frag: EncryptedFragment) -> Doc
Converts to this type from the input type.
Source§impl PartialEq for EncryptedFragment
impl PartialEq for EncryptedFragment
Source§impl Serialize for EncryptedFragment
impl Serialize for EncryptedFragment
Source§impl TryFrom<&Doc> for EncryptedFragment
impl TryFrom<&Doc> for EncryptedFragment
impl Eq for EncryptedFragment
impl StructuralPartialEq for EncryptedFragment
Auto Trait Implementations§
impl Freeze for EncryptedFragment
impl RefUnwindSafe for EncryptedFragment
impl Send for EncryptedFragment
impl Sync for EncryptedFragment
impl Unpin for EncryptedFragment
impl UnwindSafe for EncryptedFragment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more