Skip to content

Commit

Permalink
zeroize: add Zeroize impls for __m512 types; MSRV 1.72 (#1052)
Browse files Browse the repository at this point in the history
Co-authored-by: silvanshade <silvanshade@users.noreply.github.com>
  • Loading branch information
silvanshade and silvanshade committed Mar 5, 2024
1 parent 9e1287a commit 4c583ff
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workspace.yml
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
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
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
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
);

0 comments on commit 4c583ff

Please sign in to comment.