diff --git a/src/stream/sink.rs b/src/stream/sink.rs index baa124e..50383af 100644 --- a/src/stream/sink.rs +++ b/src/stream/sink.rs @@ -39,7 +39,7 @@ use super::*; pub struct Sink { crypter: Crypter, // for chacha, finalize does nothing it seems. we can also call it multiple times. - buffer: BufferVec, // used to buffer the operation + pub(super) buffer: BufferVec, // used to buffer the operation stream: W, } diff --git a/src/stream/source.rs b/src/stream/source.rs index 37c3641..384418f 100644 --- a/src/stream/source.rs +++ b/src/stream/source.rs @@ -110,7 +110,7 @@ pub type DefaultBuffer = UseBufferExternal; pub struct Source { crypter: Crypter, - buffer: Buffer::InternalBuffer, // When `ad-hoc-buffer` is enabled, this isn't needed. We re-use the output buffer for the initial read of untransformed data from `stream` and the actual transformation of the read bytes. + pub(super) buffer: Buffer::InternalBuffer, // When `ad-hoc-buffer` is enabled, this isn't needed. We re-use the output buffer for the initial read of untransformed data from `stream` and the actual transformation of the read bytes. stream: R }