fn create_cipher(entropy_pool: &mut File) -> Result<Aes256Gcm, Error> {
        // Randomly generate a 256-bit key to be used for encryption/decryption purposes.
        let mut key = [0u8; KEY_LEN];
        entropy_pool
            .read_exact(&mut key)
            .map_err(Error::EntropyPool)?;

        // Create cipher entity to handle encryption/decryption.
        Ok(Aes256Gcm::new(Key::from_slice(&key)))
    }
/// Create a new AES-GCM cipher entity.
Create a new AES-GCM cipher entity.
Create a new AES - GCM cipher entity .
fn create_cipher(entropy_pool: &mut File) -> Result<Aes256Gcm, Error> {
        // Randomly generate a 256-bit key to be used for encryption/decryption purposes.
        let mut key = [0u8; KEY_LEN];
        entropy_pool
            .read_exact(&mut key)
            .map_err(Error::EntropyPool)?;
        // Create cipher entity to handle encryption/decryption.
        Ok(Aes256Gcm::new(Key::from_slice(&key)))
    }
fn create_cipher ( entropy_pool : & mut File ) -> Result < Aes256Gcm , Error > { // Randomly generate a 256-bit key to be used for encryption/decryption purposes. let mut key = [ 0u8 ; KEY_LEN ] ; entropy_pool . read_exact ( & mut key ) . map_err ( Error :: EntropyPool ) ? ; // Create cipher entity to handle encryption/decryption. Ok ( Aes256Gcm :: new ( Key :: from_slice ( & key ) ) ) }
Create a new AES-GCM cipher entity.
Create a new AES - GCM cipher entity .
entropy_pool
&mut File
entropy_pool
&mut File