File tree 3 files changed +11
-9
lines changed
3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: aes
3
3
on :
4
4
pull_request :
5
5
paths :
6
+ - " .github/workflows/aes.yml"
6
7
- " aes/**"
7
8
- " Cargo.*"
8
9
push :
39
40
override : true
40
41
- run : cargo check
41
42
- 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
44
45
- env :
45
46
RUSTFLAGS : " -Dwarnings --cfg aes_force_soft"
46
47
run : |
@@ -205,8 +206,8 @@ jobs:
205
206
tar -C /tmp -xzf /tmp/binaries.tar.gz
206
207
mv /tmp/cross ~/.cargo/bin
207
208
- 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
210
211
- env :
211
212
RUSTFLAGS : " -Dwarnings --cfg aes_force_soft"
212
213
run : |
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: kuznyechik
3
3
on :
4
4
pull_request :
5
5
paths :
6
+ - " .github/workflows/kuznyechik.yml"
6
7
- " kuznyechik/**"
7
8
- " Cargo.*"
8
9
push :
62
63
override : true
63
64
profile : minimal
64
65
- run : |
65
- cargo test
66
- cargo test --all-features
66
+ cargo test
67
+ cargo test --all-features
67
68
- env :
68
69
RUSTFLAGS : " -Dwarnings --cfg kuznyechik_force_soft"
69
70
run : |
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ impl AlgorithmName for Kuznyechik {
81
81
#[ cfg_attr( docsrs, doc( cfg( feature = "zeroize" ) ) ) ]
82
82
impl Drop for Kuznyechik {
83
83
fn drop ( & mut self ) {
84
- self . keys . zeroize ( ) ;
84
+ self . keys . iter_mut ( ) . for_each ( |key| key . zeroize ( ) ) ;
85
85
}
86
86
}
87
87
@@ -135,7 +135,7 @@ impl AlgorithmName for KuznyechikEnc {
135
135
#[ cfg_attr( docsrs, doc( cfg( feature = "zeroize" ) ) ) ]
136
136
impl Drop for KuznyechikEnc {
137
137
fn drop ( & mut self ) {
138
- self . keys . zeroize ( ) ;
138
+ self . keys . iter_mut ( ) . for_each ( |key| key . zeroize ( ) ) ;
139
139
}
140
140
}
141
141
@@ -205,7 +205,7 @@ impl AlgorithmName for KuznyechikDec {
205
205
#[ cfg_attr( docsrs, doc( cfg( feature = "zeroize" ) ) ) ]
206
206
impl Drop for KuznyechikDec {
207
207
fn drop ( & mut self ) {
208
- self . keys . zeroize ( ) ;
208
+ self . keys . iter_mut ( ) . for_each ( |key| key . zeroize ( ) ) ;
209
209
}
210
210
}
211
211
You can’t perform that action at this time.
0 commit comments