pub fn decrypt(&self, raw: RawIsolationPayload<'_>) -> Result<String, Error> {
    let RawIsolationPayload { nonce, payload } = raw;
    let nonce: [u8; 12] = nonce.as_ref().try_into()?;
    let bytes = self
      .aes_gcm
      .key
      .decrypt(Nonce::from_slice(&nonce), payload.as_ref())
      .map_err(|_| self::Error::Aes)?;

    String::from_utf8(bytes).map_err(Into::into)
  }
/// Decrypts a message using the generated keys.
Decrypts a message using the generated keys.
Decrypts a message using the generated keys .
pub fn decrypt(&self, raw: RawIsolationPayload<'_>) -> Result<String, Error> {
    let RawIsolationPayload { nonce, payload } = raw;
    let nonce: [u8; 12] = nonce.as_ref().try_into()?;
    let bytes = self
      .aes_gcm
      .key
      .decrypt(Nonce::from_slice(&nonce), payload.as_ref())
      .map_err(|_| self::Error::Aes)?;
    String::from_utf8(bytes).map_err(Into::into)
  }
pub fn decrypt ( & self , raw : RawIsolationPayload < ' _ > ) -> Result < String , Error > { let RawIsolationPayload { nonce , payload } = raw ; let nonce : [ u8 ; 12 ] = nonce . as_ref ( ) . try_into ( ) ? ; let bytes = self . aes_gcm . key . decrypt ( Nonce :: from_slice ( & nonce ) , payload . as_ref ( ) ) . map_err ( | _ | self :: Error :: Aes ) ? ; String :: from_utf8 ( bytes ) . map_err ( Into :: into ) }
Decrypts a message using the generated keys.
Decrypts a message using the generated keys .
&self
raw
RawIsolationPayload<'_>
&self
raw
RawIsolationPayload<'_>