Skip to content

Commit

Permalink
build(deps): update zeroize_derive requirement from <1.4 to 1 (#1687)
Browse files Browse the repository at this point in the history
Updates the requirements on [zeroize_derive](https://github.com/RustCrypto/utils) to permit the latest version.
- [Release notes](https://github.com/RustCrypto/utils/releases)
- [Changelog](https://github.com/RustCrypto/utils/blob/master/zeroize/CHANGELOG.md)
- [Commits](RustCrypto/utils@zeroize_derive-v1.2.1...zeroize_derive-v1.4.1)

---
updated-dependencies:
- dependency-name: zeroize_derive
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Mar 31, 2023
1 parent 45b93d4 commit 6f9cda5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 1 addition & 4 deletions quic/s2n-quic-crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ lazy_static = "1"
ring = { version = "0.16", default-features = false }
s2n-codec = { version = "=0.4.0", path = "../../common/s2n-codec", default-features = false }
s2n-quic-core = { version = "=0.18.1", path = "../s2n-quic-core", default-features = false }
zeroize = { version = "1.5", default-features = false, features = ["zeroize_derive"] }
# 1.4 broke derive bounds; see https://github.com/RustCrypto/utils/issues/878#issuecomment-1488918669
# TODO remove this dependency once the issue is resolved
zeroize_derive = { version = "<1.4" }
zeroize = { version = "1", default-features = false, features = ["derive"] }

[dev-dependencies]
aes = "0.8"
Expand Down
5 changes: 3 additions & 2 deletions quic/s2n-quic-crypto/src/aes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

use crate::block::BatchMut;
use zeroize::Zeroize;

#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
pub mod x86;
Expand Down Expand Up @@ -74,7 +75,7 @@ pub mod aes128 {
// mov \$9,$bits # 10 rounds for 128-bit key
pub const ROUNDS: usize = 10;

#[derive(zeroize::Zeroize)]
#[derive(Zeroize)]
pub struct Key<T>(pub T);

impl<Blk, T> Encrypt for Key<T>
Expand Down Expand Up @@ -196,7 +197,7 @@ pub mod aes256 {
// mov \$13,$bits # 14 rounds for 256
pub const ROUNDS: usize = 14;

#[derive(zeroize::Zeroize)]
#[derive(Zeroize)]
pub struct Key<T>(pub T);

impl<Blk, T> Encrypt for Key<T>
Expand Down

0 comments on commit 6f9cda5

Please sign in to comment.