Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ signature = { path = "signature" }
blobby = { git = "https://github.com/RustCrypto/utils" }
# https://github.com/RustCrypto/utils/pull/1192
# https://github.com/RustCrypto/utils/pull/1200
block-buffer = { git = "https://github.com/RustCrypto/utils" }
# https://github.com/RustCrypto/utils/pull/1201
block-buffer = { git = "https://github.com/RustCrypto/utils", branch = "block-buffer/read-buf" }
4 changes: 3 additions & 1 deletion cipher/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@ inout = "0.2.0-rc.4"

# optional dependencies
blobby = { version = "0.4.0-pre.0", optional = true }
block-buffer = { version = "0.11.0-rc.4", optional = true}
zeroize = { version = "1.8", optional = true, default-features = false }

[features]
alloc = []
block-padding = ["inout/block-padding"]
stream-wrapper = ["block-buffer"]
# Enable random key and IV generation methods
rand_core = ["crypto-common/rand_core"]
os_rng = ["crypto-common/os_rng", "rand_core"]
dev = ["blobby"]
zeroize = ["dep:zeroize", "crypto-common/zeroize"]
zeroize = ["dep:zeroize", "crypto-common/zeroize", "block-buffer?/zeroize"]

[package.metadata.docs.rs]
all-features = true
4 changes: 2 additions & 2 deletions cipher/src/dev/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ macro_rules! stream_cipher_test {
);

for (i, tv) in TEST_VECTORS.iter().enumerate() {
let res = $crate::dev::stream::stream_cipher_test(tv);
if Err(reason) = res {
let res = $crate::dev::stream::stream_cipher_test::<$cipher>(tv);
if let Err(reason) = res {
panic!(
"\n\
Failed test #{i}\n\
Expand Down
1 change: 1 addition & 0 deletions cipher/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
unused_lifetimes,
missing_debug_implementations
)]
#![forbid(unsafe_code)]

#[cfg(feature = "alloc")]
extern crate alloc;
Expand Down
2 changes: 2 additions & 0 deletions cipher/src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ use inout::{InOutBuf, NotEqualError};

mod core_api;
mod errors;
#[cfg(feature = "stream-wrapper")]
mod wrapper;

pub use core_api::{
StreamCipherBackend, StreamCipherClosure, StreamCipherCore, StreamCipherCounter,
StreamCipherSeekCore,
};
pub use errors::{OverflowError, StreamCipherError};
#[cfg(feature = "stream-wrapper")]
pub use wrapper::StreamCipherCoreWrapper;

/// Marker trait for block-level asynchronous stream ciphers
Expand Down
Loading