diff --git a/src/streaming/mod.rs b/src/streaming/mod.rs index f8277e7..324be8f 100644 --- a/src/streaming/mod.rs +++ b/src/streaming/mod.rs @@ -660,9 +660,8 @@ impl ExtensionImpl for super::StagingBackend { )?; let nonce: Bytes = filestore.read(&request.path, request.location)?; - let nonce: &StreamNonce> = (&**nonce) - .try_into() - .map_err(|_| Error::WrongMessageLength)?; + let nonce: &StreamNonce> = + (&**nonce).into(); let aead = ChaCha8Poly1305::new((&*key.material).into()); let decryptor = DecryptorLE31::::from_aead(aead, nonce); backend_ctx.chunked_io_state =