diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2021-11-03 12:19:59 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2021-11-03 12:19:59 +0100 |
commit | 478d57a0a31e2981b29b735bc643d3ebfcc06164 (patch) | |
tree | 555e57965af12053bed164a33e0a1ef425e61ec4 /openpgp/src/crypto/aead.rs | |
parent | 028ca6e0aeb3120cfdfdbf0cc6bf546cd6465171 (diff) |
openpgp: Avoid wrapping the reader again.
Diffstat (limited to 'openpgp/src/crypto/aead.rs')
-rw-r--r-- | openpgp/src/crypto/aead.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/crypto/aead.rs b/openpgp/src/crypto/aead.rs index 95c172c1..4ef774a4 100644 --- a/openpgp/src/crypto/aead.rs +++ b/openpgp/src/crypto/aead.rs @@ -441,8 +441,8 @@ impl<'a> BufferedReaderDecryptor<'a> { { Ok(BufferedReaderDecryptor { reader: buffered_reader::Generic::with_cookie( - Decryptor::new(version, sym_algo, aead, chunk_size, iv, key, - source)?, + Decryptor::from_buffered_reader( + version, sym_algo, aead, chunk_size, iv, key, source)?, None, cookie), }) } |