Skip to content

Commit

Permalink
Bump cipher to v0.5.0-pre.2 (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri authored Jan 10, 2024
1 parent 4b63ec3 commit 521d874
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 35 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,13 +20,13 @@ categories = ["cryptography", "no-std"]

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

[target.'cfg(any(target_arch = "x86_64", target_arch = "x86"))'.dependencies]
cpufeatures = "0.2"

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

[features]
Expand Down
2 changes: 1 addition & 1 deletion chacha20/src/xchacha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ mod hchacha20_tests {
"a0f9e4d58a74a853c12ec41326d3ecdc"
);

let actual = hchacha::<U10>(Array::ref_from_slice(&KEY), Array::ref_from_slice(&INPUT));
let actual = hchacha::<U10>(Array::from_slice(&KEY), Array::from_slice(&INPUT));
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.1"
cipher = "=0.5.0-pre.2"

[dev-dependencies]
cipher = { version = "=0.5.0-pre.1", features = ["dev"] }
cipher = { version = "=0.5.0-pre.2", 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.1"
cipher = "=0.5.0-pre.2"

[dev-dependencies]
cipher = { version = "=0.5.0-pre.1", features = ["dev"] }
cipher = { version = "=0.5.0-pre.2", 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.1"
cipher = "=0.5.0-pre.2"

[dev-dependencies]
hex-literal = "0.4"
Expand Down
2 changes: 1 addition & 1 deletion rc4/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
//! rc4.apply_keystream(&mut data);
//! assert_eq!(data, [0x10, 0x21, 0xBF, 0x04, 0x20]);
//!
//! let key = Key::<U6>::ref_from_slice(b"Secret");
//! let key = Key::<U6>::from_slice(b"Secret");
//! let mut rc4 = Rc4::<_>::new(key);
//! let mut data = b"Attack at dawn".to_vec();
//! rc4.apply_keystream(&mut data);
Expand Down
28 changes: 14 additions & 14 deletions rc4/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn test_rfc6229_length_40_bits_key1() {
"
);

let key = Key::<U5>::ref_from_slice(&KEY);
let key = Key::<U5>::from_slice(&KEY);
let mut cipher = Rc4::<_>::new(key);

let mut data = [0u8; 0x1010];
Expand Down Expand Up @@ -74,7 +74,7 @@ fn test_rfc6229_length_56_bits_key1() {
"
);

let key = Key::<U7>::ref_from_slice(&KEY);
let key = Key::<U7>::from_slice(&KEY);
let mut cipher = Rc4::<_>::new(key);

let mut data = [0u8; 0x1010];
Expand Down Expand Up @@ -116,7 +116,7 @@ fn test_rfc6229_length_64_bits_key1() {
"
);

let key = Key::<U8>::ref_from_slice(&KEY);
let key = Key::<U8>::from_slice(&KEY);
let mut cipher = Rc4::<_>::new(key);

let mut data = [0u8; 0x1010];
Expand Down Expand Up @@ -158,7 +158,7 @@ fn test_rfc6229_length_80_bits_key1() {
"
);

let key = Key::<U10>::ref_from_slice(&KEY);
let key = Key::<U10>::from_slice(&KEY);
let mut cipher = Rc4::<_>::new(key);

let mut data = [0u8; 0x1010];
Expand Down Expand Up @@ -201,7 +201,7 @@ fn test_rfc6229_length_128_bits_key1() {
"
);

let key = Key::<U16>::ref_from_slice(&KEY);
let key = Key::<U16>::from_slice(&KEY);
let mut cipher = Rc4::<_>::new(key);

let mut data = [0u8; 0x1010];
Expand Down Expand Up @@ -243,7 +243,7 @@ fn test_rfc6229_length_192_bits_key1() {
"
);

let key = Key::<U24>::ref_from_slice(&KEY);
let key = Key::<U24>::from_slice(&KEY);
let mut cipher = Rc4::<_>::new(key);

let mut data = [0u8; 0x1010];
Expand Down Expand Up @@ -286,7 +286,7 @@ fn test_rfc6229_length_256_bits_key1() {
"
);

let key = Key::<U32>::ref_from_slice(&KEY);
let key = Key::<U32>::from_slice(&KEY);
let mut cipher = Rc4::<_>::new(key);

let mut data = [0u8; 0x1010];
Expand Down Expand Up @@ -328,7 +328,7 @@ fn test_rfc6229_length_40_bits_key2() {
"
);

let key = Key::<U5>::ref_from_slice(&KEY);
let key = Key::<U5>::from_slice(&KEY);
let mut cipher = Rc4::<_>::new(key);

let mut data = [0u8; 0x1010];
Expand Down Expand Up @@ -370,7 +370,7 @@ fn test_rfc6229_length_56_bits_key2() {
"
);

let key = Key::<U7>::ref_from_slice(&KEY);
let key = Key::<U7>::from_slice(&KEY);
let mut cipher = Rc4::<_>::new(key);

let mut data = [0u8; 0x1010];
Expand Down Expand Up @@ -412,7 +412,7 @@ fn test_rfc6229_length_64_bits_key2() {
"
);

let key = Key::<U8>::ref_from_slice(&KEY);
let key = Key::<U8>::from_slice(&KEY);
let mut cipher = Rc4::<_>::new(key);

let mut data = [0u8; 0x1010];
Expand Down Expand Up @@ -454,7 +454,7 @@ fn test_rfc6229_length_80_bits_key2() {
"
);

let key = Key::<U10>::ref_from_slice(&KEY);
let key = Key::<U10>::from_slice(&KEY);
let mut cipher = Rc4::<_>::new(key);

let mut data = [0u8; 0x1010];
Expand Down Expand Up @@ -497,7 +497,7 @@ fn test_rfc6229_length_128_bits_key2() {
"
);

let key = Key::<U16>::ref_from_slice(&KEY);
let key = Key::<U16>::from_slice(&KEY);
let mut cipher = Rc4::<_>::new(key);

let mut data = [0u8; 0x1010];
Expand Down Expand Up @@ -539,7 +539,7 @@ fn test_rfc6229_length_192_bits_key2() {
"
);

let key = Key::<U24>::ref_from_slice(&KEY);
let key = Key::<U24>::from_slice(&KEY);
let mut cipher = Rc4::<_>::new(key);

let mut data = [0u8; 0x1010];
Expand Down Expand Up @@ -582,7 +582,7 @@ fn test_rfc6229_length_256_bits_key2() {
"
);

let key = Key::<U32>::ref_from_slice(&KEY);
let key = Key::<U32>::from_slice(&KEY);
let mut cipher = Rc4::<_>::new(key);

let mut data = [0u8; 0x1010];
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.1"
cipher = "=0.5.0-pre.2"

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

[features]
Expand Down

0 comments on commit 521d874

Please sign in to comment.