Closed ghost closed 5 years ago
Could you add new functions to Encryptor/Decryptor which convert themselves into their inner streams?
Encryptor
Decryptor
In Rust way, it could be into_inner(self). But I would suggest to use this one:
into_inner(self)
pub fn finish(self) -> Result<W>;
Inside the functions, they will try to flush() the streams.
flush()
Thank you,
Good idea.
This was ultimately implemented in 6ba6bddf7e3919a7b8317389b4be2633ac3522da and should make it to the next release soon.
Could you add new functions to
Encryptor
/Decryptor
which convert themselves into their inner streams?In Rust way, it could be
into_inner(self)
. But I would suggest to use this one:Inside the functions, they will try to
flush()
the streams.Thank you,