Skip to content
Closed
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
24 changes: 23 additions & 1 deletion Cargo.lock

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

1 change: 1 addition & 0 deletions block-buffer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ readme = "README.md"
[dependencies]
crypto-common = "0.2.0-pre"
generic-array = "0.14"
zeroize = { version = "1.4", optional = true, features = ["zeroize_derive"] }

[dev-dependencies]
hex-literal = "0.3.3"
3 changes: 3 additions & 0 deletions block-buffer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ use generic_array::{
typenum::{Add1, B1},
ArrayLength, GenericArray,
};
#[cfg(feature = "zeroize")]
use zeroize::Zeroize;

mod read;
mod sealed;
Expand Down Expand Up @@ -58,6 +60,7 @@ impl fmt::Display for Error {

/// Buffer for block processing of data.
#[derive(Debug)]
#[cfg_attr(feature = "zeroize", derive(Zeroize))]
pub struct BlockBuffer<BS: BlockSizes, K: BufferKind> {
buffer: Block<Self>,
pos: K::Pos,
Expand Down