Skip to content

Commit ffdbbee

Browse files
authored
Migrate to new version of cipher (#436)
1 parent add5ccb commit ffdbbee

File tree

13 files changed

+59
-64
lines changed

13 files changed

+59
-64
lines changed

.github/workflows/chacha20.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
- run: cargo build --target ${{ matrix.target }} --features zeroize
4242

4343
minimal-versions:
44+
if: false # TODO: temp disabled due to unpublished prerelease dependencies
4445
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
4546
with:
4647
working-directory: ${{ github.workflow }}

.github/workflows/hc-256.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
- run: cargo build --target ${{ matrix.target }} --features zeroize
4040

4141
minimal-versions:
42+
if: false # TODO: temp disabled due to unpublished prerelease dependencies
4243
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
4344
with:
4445
working-directory: ${{ github.workflow }}

.github/workflows/rabbit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
- run: cargo build --target ${{ matrix.target }} --features zeroize
3939

4040
minimal-versions:
41+
if: false # TODO: temp disabled due to unpublished prerelease dependencies
4142
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
4243
with:
4344
working-directory: ${{ github.workflow }}

.github/workflows/rc4.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
- run: cargo build --target ${{ matrix.target }} --features zeroize
3939

4040
minimal-versions:
41+
if: false # TODO: temp disabled due to unpublished prerelease dependencies
4142
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
4243
with:
4344
working-directory: ${{ github.workflow }}

.github/workflows/salsa20.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
- run: cargo build --target ${{ matrix.target }} --features zeroize
3939

4040
minimal-versions:
41+
if: false # TODO: temp disabled due to unpublished prerelease dependencies
4142
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
4243
with:
4344
working-directory: ${{ github.workflow }}

Cargo.lock

Lines changed: 29 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,11 @@ members = [
1010

1111
[profile.dev]
1212
opt-level = 2
13+
14+
[patch.crates-io]
15+
# https://github.com/RustCrypto/utils/pull/1187
16+
blobby = { git = "https://github.com/RustCrypto/utils" }
17+
# https://github.com/RustCrypto/traits/pull/1959
18+
cipher = { git = "https://github.com/RustCrypto/traits" }
19+
# https://github.com/RustCrypto/utils/pull/1201
20+
block-buffer = { git = "https://github.com/RustCrypto/utils" }

chacha20/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ rand_core-compatible RNGs based on those ciphers.
2020

2121
[dependencies]
2222
cfg-if = "1"
23-
cipher = { version = "0.5.0-rc.0", optional = true }
23+
cipher = { version = "0.5.0-rc.0", optional = true, features = ["stream-wrapper"] }
2424
rand_core = { version = "0.9", optional = true, default-features = false }
2525
serde = { version = "1.0", features = ["derive"], optional = true }
2626

hc-256/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ categories = ["cryptography", "no-std"]
1313
description = "Pure Rust implementation of the HC-256 stream cipher"
1414

1515
[dependencies]
16-
cipher = "0.5.0-rc.0"
16+
cipher = { version = "0.5.0-rc.0", features = ["stream-wrapper"] }
1717

1818
[dev-dependencies]
1919
cipher = { version = "0.5.0-rc.0", features = ["dev"] }

rabbit/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ categories = ["cryptography", "no-std"]
1313
description = "Pure Rust implementation of the Rabbit stream cipher"
1414

1515
[dependencies]
16-
cipher = "0.5.0-rc.0"
16+
cipher = { version = "0.5.0-rc.0", features = ["stream-wrapper"] }
1717

1818
[dev-dependencies]
1919
cipher = { version = "0.5.0-rc.0", features = ["dev"] }

0 commit comments

Comments
 (0)