Skip to content

Commit df664d4

Browse files
committed
cmov: description fixups
1 parent e13fd9e commit df664d4

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

cmov/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ license = "Apache-2.0 OR MIT"
1111
keywords = ["constant-time", "crypto", "intrinsics"]
1212
categories = ["cryptography", "hardware-support", "no-std"]
1313
description = """
14-
Conditional move CPU intrinsics which are guaranteed on major platforms (ARM32/ARM64, x86/x86_64) to execute in
15-
constant-time and not be rewritten as branches by the compiler. Provides wrappers for the CMOV family of
16-
instructions on x86/x86_64 and CSEL on AArch64, along with a portable "best-effort" pure Rust fallback.
14+
Conditional move CPU intrinsics which are guaranteed on major platforms (ARM32/ARM64, x86/x86_64,
15+
RISC-V) to execute in constant-time and not be rewritten as branches by the compiler. Provides
16+
wrappers for the CMOV family of instructions on x86/x86_64 and CSEL on AArch64, along with a
17+
portable "best-effort" pure Rust fallback implementation.
1718
"""
1819

1920
[dev-dependencies]

cmov/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
Conditional move CPU intrinsics which are guaranteed on major platforms to execute in constant-time
1111
and not be rewritten as branches by the compiler.
1212

13-
Provides wrappers for the [CMOV family] of instructions on x86/x86_64 and the [CSEL] instruction on
14-
AArch64 CPUs, along with a portable fallback implementation for other CPU architectures.
13+
Provides wrappers for the [CMOV family] of instructions on `x86`/`x86_64` and the [CSEL]
14+
instruction on `aarch64` CPUs, along with a portable fallback implementation for other CPU
15+
architectures.
1516

1617
## About
1718

@@ -32,8 +33,7 @@ rewritten by e.g. LLVM's architecture-specific lowerings, such as the
3233
This crate provides guaranteed constant-time operation using inline `asm!`
3334
on the following CPU architectures:
3435

35-
- [x] `x86` (`CMOVZ`, `CMOVNZ`)
36-
- [x] `x86_64` (`CMOVZ`, `CMOVNZ`)
36+
- [x] `x86`/`x86_64` (`CMOVZ`, `CMOVNZ`)
3737
- [x] `arm` (mask generation only)
3838
- [x] `aarch64` (`CSEL`)
3939
- [x] `riscv32` (mask generation only)

0 commit comments

Comments
 (0)