fn extract_cek_encryption_result(&mut self, encrypted_payload: &[u8]) -> EncryptionResult {
        let result = EncryptionResult {
            encrypted: encrypted_payload.to_vec(),
            nonce: self.cek_algorithm.nonce.clone().unwrap_or_default(),
            tag: self.cek_algorithm.tag.clone().unwrap_or_default(),
            ..Default::default()
        };

        self.cek_algorithm = Default::default();
        result
    }
/// Extract the relevant fields from the header to build an `EncryptionResult` and strip them from the header
Extract the relevant fields from the header to build an `EncryptionResult` and strip them from the header
Extract the relevant fields from the header to build an ` EncryptionResult ` and strip them from the header
fn extract_cek_encryption_result(&mut self, encrypted_payload: &[u8]) -> EncryptionResult {
        let result = EncryptionResult {
            encrypted: encrypted_payload.to_vec(),
            nonce: self.cek_algorithm.nonce.clone().unwrap_or_default(),
            tag: self.cek_algorithm.tag.clone().unwrap_or_default(),
            ..Default::default()
        };
        self.cek_algorithm = Default::default();
        result
    }
fn extract_cek_encryption_result ( & mut self , encrypted_payload : & [ u8 ] ) -> EncryptionResult { let result = EncryptionResult { encrypted : encrypted_payload . to_vec ( ) , nonce : self . cek_algorithm . nonce . clone ( ) . unwrap_or_default ( ) , tag : self . cek_algorithm . tag . clone ( ) . unwrap_or_default ( ) , .. Default :: default ( ) } ; self . cek_algorithm = Default :: default ( ) ; result }
Extract the relevant fields from the header to build an `EncryptionResult` and strip them from the header
Extract the relevant fields from the header to build an ` EncryptionResult ` and strip them from the header
&mut self
encrypted_payload
&[u8]
&mut self
encrypted_payload
&[u8]