[package]
edition = "2024"
rust-version = "1.85"
name = "gmcrypto-simd"
version = "1.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SIMD backends for gmcrypto-core — AVX2 (x86_64) and NEON (aarch64) packed bitsliced SM4 S-box, quarantined to keep `gmcrypto-core` `unsafe_code = forbid`"
readme = "README.md"
keywords = [
"sm4",
"simd",
"avx2",
"bitsliced",
]
categories = [
"cryptography",
"no-std",
]
license = "Apache-2.0"
repository = "https://github.com/frankxue831/gm-crypto-rs"
resolver = "2"
[lib]
name = "gmcrypto_simd"
crate-type = ["rlib"]
path = "src/lib.rs"
[[test]]
name = "ghash_kat"
path = "tests/ghash_kat.rs"
[[test]]
name = "ghash_lane_equivalence"
path = "tests/ghash_lane_equivalence.rs"
[[test]]
name = "internal_surface"
path = "tests/internal_surface.rs"
[[test]]
name = "lane_equivalence"
path = "tests/lane_equivalence.rs"
[[test]]
name = "lane_position_x16"
path = "tests/lane_position_x16.rs"
[[test]]
name = "lane_position_x32"
path = "tests/lane_position_x32.rs"
[dependencies]
[target.'cfg(target_arch = "aarch64")'.dependencies.cpufeatures]
version = "0.2"
[target.'cfg(target_arch = "x86_64")'.dependencies.cpufeatures]
version = "0.2"
[lints.clippy]
doc_markdown = "allow"
missing_const_for_fn = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
shadow_unrelated = "allow"
similar_names = "allow"
too_many_lines = "allow"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "warn"