Skip to content

zeroize: add Zeroize impls for __m512 types; MSRV 1.72 #1052

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.71.0 # Pinned to prevent breakages
toolchain: 1.72.0 # Pinned to prevent breakages
components: clippy
- run: cargo clippy --all --all-features -- -D warnings

Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/zeroize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
strategy:
matrix:
rust:
- 1.60.0 # MSRV
- 1.72.0 # MSRV
- stable
target:
- armv7a-none-eabi
Expand All @@ -53,7 +53,7 @@ jobs:
# 32-bit Linux
- target: i686-unknown-linux-gnu
platform: ubuntu-latest
rust: 1.60.0 # MSRV
rust: 1.72.0 # MSRV
deps: sudo apt update && sudo apt install gcc-multilib
- target: i686-unknown-linux-gnu
platform: ubuntu-latest
Expand All @@ -63,23 +63,23 @@ jobs:
# 64-bit Linux
- target: x86_64-unknown-linux-gnu
platform: ubuntu-latest
rust: 1.60.0 # MSRV
rust: 1.72.0 # MSRV
- target: x86_64-unknown-linux-gnu
platform: ubuntu-latest
rust: stable

# 64-bit macOS x86_64
- target: x86_64-apple-darwin
platform: macos-latest
rust: 1.60.0 # MSRV
rust: 1.72.0 # MSRV
- target: x86_64-apple-darwin
platform: macos-latest
rust: stable

# 64-bit Windows
- target: x86_64-pc-windows-msvc
platform: windows-latest
rust: 1.60.0 # MSRV
rust: 1.72.0 # MSRV
- target: x86_64-pc-windows-msvc
platform: windows-latest
rust: stable
Expand All @@ -102,7 +102,7 @@ jobs:
include:
# PPC32
- target: powerpc-unknown-linux-gnu
rust: 1.60.0 # MSRV
rust: 1.72.0 # MSRV
- target: powerpc-unknown-linux-gnu
rust: stable
runs-on: ubuntu-latest
Expand All @@ -122,7 +122,7 @@ jobs:
matrix:
include:
- target: aarch64-unknown-linux-gnu
rust: 1.60.0
rust: 1.72.0
- target: aarch64-unknown-linux-gnu
rust: stable
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion zeroize/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ readme = "README.md"
categories = ["cryptography", "memory-management", "no-std", "os"]
keywords = ["memory", "memset", "secure", "volatile", "zero"]
edition = "2021"
rust-version = "1.60"
rust-version = "1.72"

[dependencies]
serde = { version = "1.0", default-features = false, optional = true }
Expand Down
4 changes: 3 additions & 1 deletion zeroize/src/x86.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ macro_rules! impl_zeroize_for_simd_register {
};
}

impl_zeroize_for_simd_register!(__m128, __m128d, __m128i, __m256, __m256d, __m256i);
impl_zeroize_for_simd_register!(
__m128, __m128d, __m128i, __m256, __m256d, __m256i, __m512, __m512d, __m512i
);