pub fn open_owned<P, C>(
input: Vec<u8>,
key_provider: &P,
codec: &C,
options: &DntOpenOptions,
) -> DntResult<OpenedDnt>where
P: DntKeyProvider,
C: DntCodec,Expand description
Opens an owned envelope, allowing in-place decryption of the file buffer.
Prefer this API after reading a complete DNT file into a Vec<u8>.
It preserves the same authentication and context checks as open while
avoiding an extra plaintext allocation in the read path.