Skip to content

Commit

Permalink
Bump cipher to v0.5.0-pre.6
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed Jul 26, 2024
1 parent 299b27d commit c7fbaf6
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 20 deletions.
20 changes: 10 additions & 10 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions chacha20/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ categories = ["cryptography", "no-std"]

[dependencies]
cfg-if = "1"
cipher = { version = "=0.5.0-pre.4", optional = true}
cipher = { version = "=0.5.0-pre.6", optional = true}
rand_core = { version = "0.9.0-alpha.1", optional = true, default-features = false }
serde = { version = "1.0", features = ["derive"], optional = true }
zeroize = { version = "1.8.1", optional = true }
Expand All @@ -29,7 +29,7 @@ zeroize = { version = "1.8.1", optional = true }
cpufeatures = "0.2"

[dev-dependencies]
cipher = { version = "=0.5.0-pre.4", features = ["dev"] }
cipher = { version = "=0.5.0-pre.6", features = ["dev"] }
hex-literal = "0.4"
rand_chacha = "0.3.1"
serde_json = "1.0" # Only to test serde1
Expand Down
2 changes: 1 addition & 1 deletion chacha20/src/xchacha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ mod hchacha20_tests {
"a0f9e4d58a74a853c12ec41326d3ecdc"
);

let actual = hchacha::<R20>(Array::from_slice(&KEY), Array::from_slice(&INPUT));
let actual = hchacha::<R20>(KEY.as_ref(), INPUT.as_ref());
assert_eq!(actual.as_slice(), &OUTPUT);
}
}
4 changes: 2 additions & 2 deletions hc-256/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ keywords = ["crypto", "stream-cipher", "trait"]
categories = ["cryptography", "no-std"]

[dependencies]
cipher = "=0.5.0-pre.4"
cipher = "=0.5.0-pre.6"

[dev-dependencies]
cipher = { version = "=0.5.0-pre.4", features = ["dev"] }
cipher = { version = "=0.5.0-pre.6", features = ["dev"] }
hex-literal = "0.4"

[features]
Expand Down
4 changes: 2 additions & 2 deletions rabbit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ keywords = ["crypto", "rabbit", "stream-cipher", "trait"]
categories = ["cryptography", "no-std"]

[dependencies]
cipher = "=0.5.0-pre.4"
cipher = "=0.5.0-pre.6"

[dev-dependencies]
cipher = { version = "=0.5.0-pre.4", features = ["dev"] }
cipher = { version = "=0.5.0-pre.6", features = ["dev"] }
hex-literal = "0.4"

[features]
Expand Down
2 changes: 1 addition & 1 deletion rc4/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ keywords = ["arc4", "arcfour", "crypto", "stream-cipher", "trait"]
categories = ["cryptography", "no-std"]

[dependencies]
cipher = "=0.5.0-pre.4"
cipher = "=0.5.0-pre.6"

[dev-dependencies]
hex-literal = "0.4"
Expand Down
2 changes: 2 additions & 0 deletions rc4/tests/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! https://datatracker.ietf.org/doc/html/rfc6229#section-2

#![allow(deprecated)] // uses `from_slice`

use hex_literal::hex;
use rc4::{consts::*, KeyInit, StreamCipher};
use rc4::{Key, Rc4};
Expand Down
4 changes: 2 additions & 2 deletions salsa20/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ categories = ["cryptography", "no-std"]

[dependencies]
cfg-if = "1"
cipher = "=0.5.0-pre.4"
cipher = "=0.5.0-pre.6"

[dev-dependencies]
cipher = { version = "=0.5.0-pre.4", features = ["dev"] }
cipher = { version = "=0.5.0-pre.6", features = ["dev"] }
hex-literal = "0.4"

[features]
Expand Down

0 comments on commit c7fbaf6

Please sign in to comment.