Simple High-Level Code for Cryptographic Arithmetic

被引:1
|
作者
Erbsen A. [1 ]
Philipoom J. [1 ]
Gross J. [1 ]
Sloan R. [1 ]
Chlipala A. [1 ]
机构
[1] Erbsen, Andres
[2] Philipoom, Jade
[3] Gross, Jason
[4] Sloan, Robert
[5] Chlipala, Adam
来源
| 1600年 / Association for Computing Machinery, 2 Penn Plaza, Suite 701, New York, NY 10121-0701, United States卷 / 54期
基金
美国国家科学基金会;
关键词
24;
D O I
10.1145/3421473.3421477
中图分类号
学科分类号
摘要
We introduce an unusual approach for implementing cryptographic arithmetic in short high-level code with machinechecked proofs of functional correctness. We further demonstrate that simple partial evaluation is sufficient to transform such initial code into highly competitive C code, breaking the decades-old pattern that the only fast implementations are those whose instruction-level steps were written out by hand. These techniques were used to build an elliptic-curve library that achieves competitive performance for a wide range of prime fields and multiple CPU architectures, showing that implementation and proof effort scales with the number and complexity of conceptually different algorithms, not their use cases. As one outcome, we present the first verified highperformance implementation of P-256, the most widely used elliptic curve. Implementations from our library were included in BoringSSL to replace existing specialized code, for inclusion in several large deployments for Chrome, Android, and CloudFlare. This is an abridged version of the full paper originally presented in IEEE S&P 2019 [10]. We have omitted most proof-engineering details in favor of a focus on the system's functional capabilities. © 2020 Copyright is held by the owner/author(s).
引用
收藏
页码:23 / 30
页数:7
相关论文
共 50 条
  • [21] High-level design of multiple-valued arithmetic circuits based on arithmetic description language
    Watanabe, Yuki
    Homma, Naofumi
    Degawa, Katsuhiko
    Aoki, Takafumi
    Higuchi, Tatsuo
    38TH INTERNATIONAL SYMPOSIUM ON MULTIPLE-VALUED LOGIC (ISMVL 2008), 2008, : 112 - 117
  • [22] MaskedHLS: Domain-Specific High-Level Synthesis of Masked Cryptographic Designs
    Sarma, Nilotpola
    Thakur, Anuj Singh
    Karfa, Chandan
    IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2024, 43 (11) : 3973 - 3984
  • [23] Optimising high-level synthesis for self-checking arithmetic circuits
    Antola, A
    Piuri, V
    Sami, MG
    1996 IEEE INTERNATIONAL SYMPOSIUM ON DEFECT AND FAULT TOLERANCE IN VLSI SYSTEMS, PROCEEDINGS, 1996, : 268 - 276
  • [24] A simple alternative for storage allocation in high-level synthesis
    Aloqeely, M
    ISCAS '98 - PROCEEDINGS OF THE 1998 INTERNATIONAL SYMPOSIUM ON CIRCUITS AND SYSTEMS, VOLS 1-6, 1998, : E377 - E380
  • [25] Mapping Exceptions to High-Level Source Code on a Heterogeneous Architecture
    Duncan, Ralph
    Gougol, Nima
    Frandeen, Jim
    2018 9TH INTERNATIONAL CONFERENCE ON PARALLEL ARCHITECTURES, ALGORITHMS AND PROGRAMMING (PAAP 2018), 2018, : 54 - 61
  • [26] Code coverage analysis using High-Level Decision Diagrams
    Raik, Jaan
    Reinsalu, Uljana
    Ubar, Raimund
    Jenihhin, Maksim
    Ellervee, Peeter
    2008 IEEE WORKSHOP ON DESIGN AND DIAGNOSTICS OF ELECTRONIC CIRCUITS AND SYSTEMS, PROCEEDINGS, 2008, : 201 - 206
  • [27] High-Level Decision Diagram Manipulations for Code Coverage Analysis
    Minakova, Karina
    Reinsalu, Uljana
    Chepurov, Anton
    Raik, Jaan
    Jenihhin, Maksim
    Ubar, Raimund
    Ellervee, Peeter
    BEC 2008: 2008 INTERNATIONAL BIENNIAL BALTIC ELECTRONICS CONFERENCE, PROCEEDINGS, 2008, : 207 - 210
  • [28] A Multi-target Code Generator for High-Level B
    Vu, Fabian
    Hansen, Dominik
    Koerner, Philipp
    Leuschel, Michael
    INTEGRATED FORMAL METHODS, IFM 2019, 2019, 11918 : 456 - 473
  • [29] Automated generation of marshaling code from high-level specifications
    Weigert, T
    Dietz, P
    SDL 2003: SYSTEM DESIGN, PROCEEDINGS, 2003, 2708 : 374 - 386
  • [30] SIMULATION FACILITY FOR DEVELOPMENT OF HIGH-LEVEL CONTROL CODE AT THE SSC
    BOURIANOFF, G
    COLE, B
    BOTLO, M
    HUNT, S
    ROMERO, A
    MALITSKY, N
    RESHETOV, A
    NUCLEAR INSTRUMENTS & METHODS IN PHYSICS RESEARCH SECTION A-ACCELERATORS SPECTROMETERS DETECTORS AND ASSOCIATED EQUIPMENT, 1994, 352 (1-2): : 333 - 335