High-assurance zeroization - Université de Lorraine
Article Dans Une Revue IACR Transactions on Cryptographic Hardware and Embedded Systems Année : 2023

High-assurance zeroization

Résumé

In this paper we revisit the problem of erasing sensitive data from memory and registers during return from a cryptographic routine. While the problem and related attacker model is fairly easy to phrase, it turns out to be surprisingly hard to guarantee security in this model when implementing cryptography in common languages such as C/C++ or Rust. We revisit the issues surrounding zeroization and then present a principled solution in the sense that it guarantees that sensitive data is erased and it clearly defines when this happens. We implement our solution as extension to the formally verified Jasmin compiler and extend the correctness proof of the compiler to cover zeroization. We show that the approach seamlessly integrates with state-of-the-art protections against microarchitectural attacks by integrating zeroization into Libjade, a cryptographic library written in Jasmin with systematic protections against timing and Spectre-v1 attacks. We present benchmarks showing that in many cases the overhead of zeroization is barely measurable and that it stays below 2% except for highly optimized symmetric crypto routines on short inputs.
Fichier principal
Vignette du fichier
TCHES2024_1_13.pdf";filename*=UTF-8''TCHES2024_1_13.pdf (486.95 Ko) Télécharger le fichier
Origine Fichiers éditeurs autorisés sur une archive ouverte
Licence

Dates et versions

hal-04691165 , version 1 (07-09-2024)

Licence

Identifiants

Citer

Santiago Arranz Olmos, Gilles Barthe, Ruben Gonzalez, Benjamin Grégoire, Vincent Laporte, et al.. High-assurance zeroization. IACR Transactions on Cryptographic Hardware and Embedded Systems, 2023, 2024 (1), pp.375-397. ⟨10.46586/tches.v2024.i1.375-397⟩. ⟨hal-04691165⟩
72 Consultations
13 Téléchargements

Altmetric

Partager

More