Paper 2025/935 Original: eprint.iacr.org/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.

Metadata
Available format(s)
PDF
Category
Attacks and cryptanalysis
Publication info
Preprint.
History
2025-09-09: last updated
2025-05-23: published
Short URL
https://ia.cr/2025/935
License
https://creativecommons.org/licenses/by/4.0/

BibTeX

@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}
}
Note: In order to protect the privacy of readers, this archive does not use cookies or embedded third party content.