pub struct QuantumEncryptionMetadata {
pub security_level: SecurityLevel,
pub encapsulated_secret: Vec<u8>,
pub nonce: [u8; 12],
pub key_derivation: QuantumKeyDerivation,
pub convergence_secret_id: Option<[u8; 32]>,
}Fields§
§security_level: SecurityLevelSecurity level used
encapsulated_secret: Vec<u8>Encapsulated shared secret (from ML-KEM)
nonce: [u8; 12]Nonce used for ChaCha20Poly1305
key_derivation: QuantumKeyDerivationKey derivation method for convergent encryption
convergence_secret_id: Option<[u8; 32]>Optional convergence secret identifier
Trait Implementations§
Source§impl Clone for QuantumEncryptionMetadata
impl Clone for QuantumEncryptionMetadata
Source§fn clone(&self) -> QuantumEncryptionMetadata
fn clone(&self) -> QuantumEncryptionMetadata
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 QuantumEncryptionMetadata
impl Debug for QuantumEncryptionMetadata
Source§impl<'de> Deserialize<'de> for QuantumEncryptionMetadata
impl<'de> Deserialize<'de> for QuantumEncryptionMetadata
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
Auto Trait Implementations§
impl Freeze for QuantumEncryptionMetadata
impl RefUnwindSafe for QuantumEncryptionMetadata
impl Send for QuantumEncryptionMetadata
impl Sync for QuantumEncryptionMetadata
impl Unpin for QuantumEncryptionMetadata
impl UnwindSafe for QuantumEncryptionMetadata
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