Skip to content

Commit 4c583ff

Browse files
authored
zeroize: add Zeroize impls for __m512 types; MSRV 1.72 (#1052)
Co-authored-by: silvanshade <[email protected]>
1 parent 9e1287a commit 4c583ff

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

.github/workflows/workspace.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: RustCrypto/actions/cargo-cache@master
2121
- uses: dtolnay/rust-toolchain@master
2222
with:
23-
toolchain: 1.71.0 # Pinned to prevent breakages
23+
toolchain: 1.72.0 # Pinned to prevent breakages
2424
components: clippy
2525
- run: cargo clippy --all --all-features -- -D warnings
2626

.github/workflows/zeroize.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
matrix:
2828
rust:
29-
- 1.60.0 # MSRV
29+
- 1.72.0 # MSRV
3030
- stable
3131
target:
3232
- armv7a-none-eabi
@@ -53,7 +53,7 @@ jobs:
5353
# 32-bit Linux
5454
- target: i686-unknown-linux-gnu
5555
platform: ubuntu-latest
56-
rust: 1.60.0 # MSRV
56+
rust: 1.72.0 # MSRV
5757
deps: sudo apt update && sudo apt install gcc-multilib
5858
- target: i686-unknown-linux-gnu
5959
platform: ubuntu-latest
@@ -63,23 +63,23 @@ jobs:
6363
# 64-bit Linux
6464
- target: x86_64-unknown-linux-gnu
6565
platform: ubuntu-latest
66-
rust: 1.60.0 # MSRV
66+
rust: 1.72.0 # MSRV
6767
- target: x86_64-unknown-linux-gnu
6868
platform: ubuntu-latest
6969
rust: stable
7070

7171
# 64-bit macOS x86_64
7272
- target: x86_64-apple-darwin
7373
platform: macos-latest
74-
rust: 1.60.0 # MSRV
74+
rust: 1.72.0 # MSRV
7575
- target: x86_64-apple-darwin
7676
platform: macos-latest
7777
rust: stable
7878

7979
# 64-bit Windows
8080
- target: x86_64-pc-windows-msvc
8181
platform: windows-latest
82-
rust: 1.60.0 # MSRV
82+
rust: 1.72.0 # MSRV
8383
- target: x86_64-pc-windows-msvc
8484
platform: windows-latest
8585
rust: stable
@@ -102,7 +102,7 @@ jobs:
102102
include:
103103
# PPC32
104104
- target: powerpc-unknown-linux-gnu
105-
rust: 1.60.0 # MSRV
105+
rust: 1.72.0 # MSRV
106106
- target: powerpc-unknown-linux-gnu
107107
rust: stable
108108
runs-on: ubuntu-latest
@@ -122,7 +122,7 @@ jobs:
122122
matrix:
123123
include:
124124
- target: aarch64-unknown-linux-gnu
125-
rust: 1.60.0
125+
rust: 1.72.0
126126
- target: aarch64-unknown-linux-gnu
127127
rust: stable
128128
runs-on: ubuntu-latest

zeroize/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ readme = "README.md"
1515
categories = ["cryptography", "memory-management", "no-std", "os"]
1616
keywords = ["memory", "memset", "secure", "volatile", "zero"]
1717
edition = "2021"
18-
rust-version = "1.60"
18+
rust-version = "1.72"
1919

2020
[dependencies]
2121
serde = { version = "1.0", default-features = false, optional = true }

zeroize/src/x86.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ macro_rules! impl_zeroize_for_simd_register {
2323
};
2424
}
2525

26-
impl_zeroize_for_simd_register!(__m128, __m128d, __m128i, __m256, __m256d, __m256i);
26+
impl_zeroize_for_simd_register!(
27+
__m128, __m128d, __m128i, __m256, __m256d, __m256i, __m512, __m512d, __m512i
28+
);

0 commit comments

Comments
 (0)