fn update_cek_algorithm(&mut self, encrypted: &EncryptionResult) {
        if !encrypted.nonce.is_empty() {
            self.cek_algorithm.nonce = Some(encrypted.nonce.clone());
        }

        if !encrypted.tag.is_empty() {
            self.cek_algorithm.tag = Some(encrypted.tag.clone());
        }
    }
/// Update CEK algorithm specific header fields based on a CEK encryption result
Update CEK algorithm specific header fields based on a CEK encryption result
Update CEK algorithm specific header fields based on a CEK encryption result
fn update_cek_algorithm(&mut self, encrypted: &EncryptionResult) {
        if !encrypted.nonce.is_empty() {
            self.cek_algorithm.nonce = Some(encrypted.nonce.clone());
        }
        if !encrypted.tag.is_empty() {
            self.cek_algorithm.tag = Some(encrypted.tag.clone());
        }
    }
fn update_cek_algorithm ( & mut self , encrypted : & EncryptionResult ) { if ! encrypted . nonce . is_empty ( ) { self . cek_algorithm . nonce = Some ( encrypted . nonce . clone ( ) ) ; } if ! encrypted . tag . is_empty ( ) { self . cek_algorithm . tag = Some ( encrypted . tag . clone ( ) ) ; } }
Update CEK algorithm specific header fields based on a CEK encryption result
Update CEK algorithm specific header fields based on a CEK encryption result
&mut self
encrypted
&EncryptionResult
&mut self
encrypted
&EncryptionResult