fn aead_aes_gcm_encrypt(
        &mut self,
        context: &Box<dyn Secret>,
        plaintext: &[u8],
        nonce: &[u8],
        aad: &[u8],
    ) -> OckamResult<Vec<u8>> {
        let context = Self::get_entry_map(&self.map, context)?;
        self.v.aead_aes_gcm_encrypt(context, plaintext, nonce, aad)
    }
/// Encrypt a payload using AES-GCM
Encrypt a payload using AES-GCM
Encrypt a payload using AES - GCM
fn aead_aes_gcm_encrypt(
        &mut self,
        context: &Box<dyn Secret>,
        plaintext: &[u8],
        nonce: &[u8],
        aad: &[u8],
    ) -> OckamResult<Vec<u8>> {
        let context = Self::get_entry_map(&self.map, context)?;
        self.v.aead_aes_gcm_encrypt(context, plaintext, nonce, aad)
    }
fn aead_aes_gcm_encrypt ( & mut self , context : & Box < dyn Secret > , plaintext : & [ u8 ] , nonce : & [ u8 ] , aad : & [ u8 ] , ) -> OckamResult < Vec < u8 > > { let context = Self :: get_entry_map ( & self . map , context ) ? ; self . v . aead_aes_gcm_encrypt ( context , plaintext , nonce , aad ) }
Encrypt a payload using AES-GCM
Encrypt a payload using AES - GCM
&mut self
context
&Box<dyn Secret>
plaintext
&[u8]
nonce
&[u8]
aad
&[u8]
&mut self
context
&Box<dyn Secret>
plaintext
&[u8]
nonce
&[u8]
aad
&[u8]