pub enum GroupKeyInfo {
ChaCha20Poly1305 {
key_id: Vec<u8>,
derivation_info: KeyDerivationInfo,
},
}Expand description
Information about the group’s encryption key (not the key itself)
This enum contains typed information about different encryption algorithms and their key derivation methods, without exposing the key material itself.
Variants§
ChaCha20Poly1305
ChaCha20-Poly1305 encryption with BIP39+Argon2 key derivation
This is the standard encryption method for groups, using ChaCha20-Poly1305 for encryption and BIP39 mnemonics with Argon2 for key derivation.
Fields
§
derivation_info: KeyDerivationInfoKey derivation information for recreating the key from a mnemonic
Implementations§
Source§impl GroupKeyInfo
impl GroupKeyInfo
Sourcepub fn new_chacha20_poly1305(
key_id: Vec<u8>,
derivation_info: KeyDerivationInfo,
) -> Self
pub fn new_chacha20_poly1305( key_id: Vec<u8>, derivation_info: KeyDerivationInfo, ) -> Self
Create a new ChaCha20-Poly1305 GroupKeyInfo
Sourcepub fn derivation_info(&self) -> Option<&KeyDerivationInfo>
pub fn derivation_info(&self) -> Option<&KeyDerivationInfo>
Get the derivation info if available
Sourcepub fn matches_key_id(&self, other_key_id: &[u8]) -> bool
pub fn matches_key_id(&self, other_key_id: &[u8]) -> bool
Check if this key info matches a given key ID
Trait Implementations§
Source§impl Clone for GroupKeyInfo
impl Clone for GroupKeyInfo
Source§fn clone(&self) -> GroupKeyInfo
fn clone(&self) -> GroupKeyInfo
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 GroupKeyInfo
impl Debug for GroupKeyInfo
Source§impl<'de> Deserialize<'de> for GroupKeyInfo
impl<'de> Deserialize<'de> for GroupKeyInfo
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 PartialEq for GroupKeyInfo
impl PartialEq for GroupKeyInfo
Source§impl Serialize for GroupKeyInfo
impl Serialize for GroupKeyInfo
impl Eq for GroupKeyInfo
impl StructuralPartialEq for GroupKeyInfo
Auto Trait Implementations§
impl Freeze for GroupKeyInfo
impl RefUnwindSafe for GroupKeyInfo
impl Send for GroupKeyInfo
impl Sync for GroupKeyInfo
impl Unpin for GroupKeyInfo
impl UnwindSafe for GroupKeyInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> 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