Skip to content

Commit 7fcdd7c

Browse files
authored
Fix aes and kuznyechik CI workflows (#311)
Looks like they were broken in #284
1 parent 423945d commit 7fcdd7c

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

.github/workflows/aes.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: aes
33
on:
44
pull_request:
55
paths:
6+
- ".github/workflows/aes.yml"
67
- "aes/**"
78
- "Cargo.*"
89
push:
@@ -39,8 +40,8 @@ jobs:
3940
override: true
4041
- run: cargo check
4142
- run: |
42-
cargo build --target ${{ matrix.target }}
43-
cargo build --target ${{ matrix.target }} --features hazmat
43+
cargo build --target ${{ matrix.target }}
44+
cargo build --target ${{ matrix.target }} --features hazmat
4445
- env:
4546
RUSTFLAGS: "-Dwarnings --cfg aes_force_soft"
4647
run: |
@@ -205,8 +206,8 @@ jobs:
205206
tar -C /tmp -xzf /tmp/binaries.tar.gz
206207
mv /tmp/cross ~/.cargo/bin
207208
- run: |
208-
cross test --package aes --target ${{ matrix.target }}
209-
cross test --package aes --target ${{ matrix.target }} --features hazmat
209+
cross test --package aes --target ${{ matrix.target }}
210+
cross test --package aes --target ${{ matrix.target }} --features hazmat
210211
- env:
211212
RUSTFLAGS: "-Dwarnings --cfg aes_force_soft"
212213
run: |

.github/workflows/kuznyechik.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: kuznyechik
33
on:
44
pull_request:
55
paths:
6+
- ".github/workflows/kuznyechik.yml"
67
- "kuznyechik/**"
78
- "Cargo.*"
89
push:
@@ -62,8 +63,8 @@ jobs:
6263
override: true
6364
profile: minimal
6465
- run: |
65-
cargo test
66-
cargo test --all-features
66+
cargo test
67+
cargo test --all-features
6768
- env:
6869
RUSTFLAGS: "-Dwarnings --cfg kuznyechik_force_soft"
6970
run: |

kuznyechik/src/soft/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl AlgorithmName for Kuznyechik {
8181
#[cfg_attr(docsrs, doc(cfg(feature = "zeroize")))]
8282
impl Drop for Kuznyechik {
8383
fn drop(&mut self) {
84-
self.keys.zeroize();
84+
self.keys.iter_mut().for_each(|key| key.zeroize());
8585
}
8686
}
8787

@@ -135,7 +135,7 @@ impl AlgorithmName for KuznyechikEnc {
135135
#[cfg_attr(docsrs, doc(cfg(feature = "zeroize")))]
136136
impl Drop for KuznyechikEnc {
137137
fn drop(&mut self) {
138-
self.keys.zeroize();
138+
self.keys.iter_mut().for_each(|key| key.zeroize());
139139
}
140140
}
141141

@@ -205,7 +205,7 @@ impl AlgorithmName for KuznyechikDec {
205205
#[cfg_attr(docsrs, doc(cfg(feature = "zeroize")))]
206206
impl Drop for KuznyechikDec {
207207
fn drop(&mut self) {
208-
self.keys.zeroize();
208+
self.keys.iter_mut().for_each(|key| key.zeroize());
209209
}
210210
}
211211

0 commit comments

Comments
 (0)