Compare commits

..

No commits in common. 'master' and 'read-stream-wrapper-async' have entirely different histories.

@ -1,6 +1,6 @@
[package] [package]
name = "chacha20stream" name = "chacha20stream"
version = "2.2.1" version = "1.2.0"
keywords = ["chacha20_poly1305", "stream", "wrapper", "encryption", "decryption"] keywords = ["chacha20_poly1305", "stream", "wrapper", "encryption", "decryption"]
description = "A writable wrapper stream for encryption and decryption with the stream cipher chacha20_poly1305" description = "A writable wrapper stream for encryption and decryption with the stream cipher chacha20_poly1305"
homepage = "https://git.flanchan.moe/flanchan/chacha20stream" homepage = "https://git.flanchan.moe/flanchan/chacha20stream"

@ -57,7 +57,7 @@ mod private
} }
pub mod key; pub mod key;
pub mod cha; mod cha;
mod stream; mod stream;
mod bytes; mod bytes;

@ -144,15 +144,6 @@ where W: Write
{ {
(self.stream, self.crypter) (self.stream, self.crypter)
} }
/// Create a sink from a stream and a crypter
///
/// The counterpart to `into_parts()`.
#[inline] pub fn from_parts(stream: W, crypter: Crypter) -> Self
{
Self::new(stream, crypter)
}
} }

@ -242,14 +242,6 @@ where R: Read
{ {
(self.stream, self.crypter) (self.stream, self.crypter)
} }
/// Create a source from a stream and a crypter
///
/// The counterpart to `into_parts()`.
#[inline] pub fn from_parts(stream: R, crypter: Crypter) -> Self
{
Self::new(stream, crypter)
}
} }

@ -109,14 +109,6 @@ impl<W: AsyncWrite> Sink<W>
(self.stream, self.crypter) (self.stream, self.crypter)
} }
/// Create a sink from a stream and a crypter
///
/// The counterpart to `into_parts()`.
#[inline] pub fn from_parts(stream: W, crypter: Crypter) -> Self
{
Self::new(stream, crypter)
}
/// The crypter of this instance /// The crypter of this instance
#[inline] pub fn crypter(&self) -> &Crypter #[inline] pub fn crypter(&self) -> &Crypter
{ {

@ -74,15 +74,6 @@ impl<R: AsyncRead> Source<R>
(self.stream, self.crypter) (self.stream, self.crypter)
} }
/// Create a source from a stream and a crypter
///
/// The counterpart to `into_parts()`.
#[inline] pub fn from_parts(stream: R, crypter: Crypter) -> Self
{
Self::new(stream, crypter)
}
/// The crypter of this instance /// The crypter of this instance
#[inline] pub fn crypter(&self) -> &Crypter #[inline] pub fn crypter(&self) -> &Crypter
{ {

Loading…
Cancel
Save