Skip to content

Commit 3fa2974

Browse files
authored
Merge pull request #4360 from Abeeujah/switch-chacha
Switch chacha
2 parents b1ea3f9 + 964a84f commit 3fa2974

17 files changed

Lines changed: 200 additions & 1352 deletions

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ jobs:
225225
- name: Sanity check fuzz targets on Rust ${{ env.TOOLCHAIN }}
226226
run: |
227227
cd fuzz
228-
RUSTFLAGS="--cfg=fuzzing --cfg=secp256k1_fuzz --cfg=hashes_fuzz" cargo test --quiet --color always --lib -j8
229-
RUSTFLAGS="--cfg=fuzzing --cfg=secp256k1_fuzz --cfg=hashes_fuzz" cargo test --manifest-path fuzz-fake-hashes/Cargo.toml --quiet --color always --bins -j8
230-
RUSTFLAGS="--cfg=fuzzing --cfg=secp256k1_fuzz" cargo test --manifest-path fuzz-real-hashes/Cargo.toml --quiet --color always --bins -j8
228+
RUSTFLAGS="--cfg=fuzzing --cfg=secp256k1_fuzz --cfg=hashes_fuzz --cfg=chacha20_poly1305_fuzz" cargo test --quiet --color always --lib -j8
229+
RUSTFLAGS="--cfg=fuzzing --cfg=secp256k1_fuzz --cfg=hashes_fuzz --cfg=chacha20_poly1305_fuzz" cargo test --manifest-path fuzz-fake-hashes/Cargo.toml --quiet --color always --bins -j8
230+
RUSTFLAGS="--cfg=fuzzing --cfg=secp256k1_fuzz --cfg=chacha20_poly1305_fuzz" cargo test --manifest-path fuzz-real-hashes/Cargo.toml --quiet --color always --bins -j8
231231
232232
fuzz:
233233
runs-on: self-hosted

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ check-cfg = [
5858
"cfg(fuzzing)",
5959
"cfg(secp256k1_fuzz)",
6060
"cfg(hashes_fuzz)",
61+
"cfg(chacha20_poly1305_fuzz)",
6162
"cfg(test)",
6263
"cfg(debug_assertions)",
6364
"cfg(c_bindings)",

ci/check-compiles.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ cargo check
66
cargo doc
77
cargo doc --document-private-items
88
cd fuzz
9-
RUSTFLAGS="--cfg=fuzzing --cfg=secp256k1_fuzz --cfg=hashes_fuzz" \
9+
RUSTFLAGS="--cfg=fuzzing --cfg=secp256k1_fuzz --cfg=hashes_fuzz --cfg=chacha20_poly1305_fuzz" \
1010
cargo check --manifest-path fuzz-fake-hashes/Cargo.toml --features=stdin_fuzz
11-
RUSTFLAGS="--cfg=fuzzing --cfg=secp256k1_fuzz" \
11+
RUSTFLAGS="--cfg=fuzzing --cfg=secp256k1_fuzz --cfg=chacha20_poly1305_fuzz" \
1212
cargo check --manifest-path fuzz-real-hashes/Cargo.toml --features=stdin_fuzz
1313
cd ../lightning && cargo check --no-default-features
1414
cd .. && RUSTC_BOOTSTRAP=1 RUSTFLAGS="--cfg=c_bindings" cargo check -Z avoid-dev-deps

fuzz/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ check-cfg = [
4444
"cfg(secp256k1_fuzz)",
4545
"cfg(hashes_fuzz)",
4646
"cfg(splicing)",
47+
"cfg(chacha20_poly1305_fuzz)"
4748
]

lightning/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ lightning-macros = { version = "0.2", path = "../lightning-macros" }
4040

4141
bech32 = { version = "0.11.0", default-features = false }
4242
bitcoin = { version = "0.32.4", default-features = false, features = ["secp-recovery"] }
43+
chacha20-poly1305 = { version = "0.2.0", default-features = false }
4344

4445
dnssec-prover = { version = "0.6", default-features = false }
4546
hashbrown = { version = "0.13", default-features = false }

0 commit comments

Comments
 (0)