Skip to content

Commit add5ccb

Browse files
authored
chacha20: add *Rng equivalence proptests with rand_core (#435)
This adds a proptest which generates a random seed and performs a sequence of 16 random-sized reads from both RNGs, comparing them for equivalence and ensuring they generate the same outputs.
1 parent a4509a5 commit add5ccb

File tree

5 files changed

+367
-0
lines changed

5 files changed

+367
-0
lines changed

.github/workflows/chacha20.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
- run: cargo check --target ${{ matrix.target }} --all-features
7676
- run: cargo test --target ${{ matrix.target }}
7777
- run: cargo test --target ${{ matrix.target }} --features zeroize
78+
- run: cargo test --target ${{ matrix.target }} --all-features
7879

7980
# Tests for the AVX2 backend
8081
avx2:
@@ -108,6 +109,7 @@ jobs:
108109
- run: cargo check --target ${{ matrix.target }} --all-features
109110
- run: cargo test --target ${{ matrix.target }}
110111
- run: cargo test --target ${{ matrix.target }} --features zeroize
112+
- run: cargo test --target ${{ matrix.target }} --all-features
111113

112114
# Tests for the SSE2 backend
113115
sse2:
@@ -141,6 +143,7 @@ jobs:
141143
- run: cargo check --target ${{ matrix.target }} --all-features
142144
- run: cargo test --target ${{ matrix.target }}
143145
- run: cargo test --target ${{ matrix.target }} --features zeroize
146+
- run: cargo test --target ${{ matrix.target }} --all-features
144147

145148
# Tests for the portable software backend
146149
soft:
@@ -174,6 +177,7 @@ jobs:
174177
- run: cargo check --target ${{ matrix.target }} --all-features
175178
- run: cargo test --target ${{ matrix.target }}
176179
- run: cargo test --target ${{ matrix.target }} --features zeroize
180+
- run: cargo test --target ${{ matrix.target }} --all-features
177181

178182
# Cross-compiled tests
179183
cross:

0 commit comments

Comments
 (0)