pub fn decrypt_from_input(
ctx: &Context,
ciphertext: &Input,
output: &mut Output,
) -> Result<()>👎Deprecated since 0.2.0:
pass the Input to decrypt_to; it accepts both
Expand description
Decrypt a caller-built Input (e.g. from
Input::from_reader) and write the
plaintext to output — the streaming counterpart of decrypt_to.
Unlike Decryptor, this is single-pass: the input is consumed exactly
once, which is what a non-seekable reader can support. If the reader
fails mid-operation, the original std::io::Error is available via
Input::io_error.
Deprecated: pass the Input to decrypt_to — it accepts both
bytes and inputs.