Paper 2025/935

Side-channel safe conditional moves and swaps

David Santos
Michael Scott
Abstract

Constant-time implementations are a cornerstone of secure cryptographic systems, particularly in the context of key exchange protocols and digital signature schemes. These implementations are designed to eliminate timing side-channel vulnerabilities by ensuring that the program’s execution time is independent of secret data. A fundamental building block for achieving constant-time behavior is the conditional move operation. Unlike traditional branching constructs (such as if statements), which may introduce data-dependent timing variations, conditional moves allow developers to write logic that behaves identically at the hardware level regardless of input values. As a result, they are widely used in cryptographic libraries and standards to ensure both functional correctness and resistance to timing attacks. In this work, we describe our efforts to implement elliptic curve cryptography with some immunity against certain power leakage side-channel attacks, using standard C and Rust code.

PDF
BibTeX
ePrint ↗
@misc{cryptoeprint:2025/935,
      author = {David Santos and Michael Scott},
      title = {Side-channel safe conditional moves and swaps},
      howpublished = {Cryptology {ePrint} Archive, Paper 2025/935},
      year = {2025},
      url = {https://eprint.iacr.org/2025/935}
}
Category
Attacks and cryptanalysis
License
CC BY
Submitted
Updated
Versions

Report a problem

Comments

Log in or create an account

Privacy