The Synergy Between Programming Languages and Cryptography (Dagstuhl Seminar 14492)

Gilles Barthe, Michael Hicks, Florian Kerschbaum, Dominique Unruh

TL;DR

This report summarizes a Dagstuhl seminar that explored the intersection of programming languages (PL) and cryptography (crypto). The key takeaway is that by bridging these fields, we can develop more secure computing systems, improve the usability of cryptographic tools, and foster novel research directions.

What Problem Does This Paper Address?

Modern cryptography has expanded from secure communication to securing complex computations, tackling problems like secure multiparty computation and verifiable data processing. Simultaneously, the programming language community has been developing sophisticated tools and techniques for program analysis, verification, and language design. However, these two fields have historically operated with different perspectives and methodologies. This seminar aimed to address the gap by fostering cross-pollination of ideas, leveraging the synergies between PL and crypto to advance secure computing as a whole.

Methods

The seminar brought together researchers from both PL and crypto communities to discuss their work and identify common ground. Key themes explored included:

  • Programming Languages for Cryptography: How PLs can be used to implement, optimize, and formally verify cryptographic mechanisms. This includes languages designed for secure multiparty computation (SMC) and those that compile to cryptographic primitives like zero-knowledge proofs.
  • Formal Reasoning: Investigating how formal methods and reasoning techniques from PL (e.g., model checking, deductive verification, static/dynamic analysis) can be applied to cryptographic protocols and implementations, and vice-versa. Analogies like the "Real/Ideal" paradigm in crypto and abstraction in PL were highlighted.
  • Bridging the Gap: Identifying specific connection points and opportunities for collaboration, such as using PL techniques to analyze the security of ideal cryptographic models or factoring computations into general-purpose and cryptographic parts.
  • Open Problems: Discussing challenges like side-channel attacks, code obfuscation, and composability, where both communities have valuable perspectives and potential solutions.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • Synergy is Key: The most significant insight is that the PL and crypto communities have much to gain from each other. PL offers rigorous methods for reasoning about computation, while crypto provides powerful tools for ensuring security and privacy.
  • Abstraction as a Unifying Principle: The "Real/Ideal" paradigm in crypto and abstraction in PL share a common goal of simplifying complex systems and reasoning about their security properties. This can serve as a powerful organizing principle for verification.
  • Formal Verification for Practical Security: Applying PL verification techniques to cryptographic implementations can help prevent critical bugs (like Heartbleed) and ensure properties like absence of side channels.
  • Language Design for Secure Computation: Developing specialized programming languages can significantly ease the development of secure multiparty computations and other privacy-preserving applications, abstracting away complex cryptographic details.
  • Side Channels and Obfuscation as Shared Challenges: These are areas where both communities have made progress and where further collaboration could yield significant advancements.

Key Results

The seminar itself was the primary "result," fostering collaboration and identifying future research directions. Specific research areas discussed include:

  • Secure Multiparty Computation (SMC): Systems like Sharemind, ShareMonad, CBMC-GC, and WYSTERIA were presented, showcasing how PLs can simplify the implementation of SMCs.
  • Cryptographic Protocol Verification: Tools like ProVerif, CryptoVerif, EasyCrypt, and CertiCrypt were discussed as examples of how PL methods are used to verify cryptographic protocols.
  • Implementation Verification: The use of tools like Frama-C and Fstar to verify the correctness of cryptographic implementations was highlighted.
  • New Language Features: The development of languages like LambdaAuth and WYSTERIA that integrate cryptographic concepts or support secure computation was presented.

Limitations and Future Work

The report highlights several areas for future work and collaboration:

  • Side Channels: Cryptographers and PL researchers both face challenges with side channels (e.g., timing, power consumption). Further collaboration is needed to develop robust defenses.
  • Code Obfuscation: While crypto has proven the impossibility of perfect obfuscation, PL research into language-oriented views and practical tools could lead to useful advancements.
  • Composability: Both communities have notions of composability, and making precise connections could allow for transferring results and strengthening guarantees.
  • Crypto Currencies: The application of PL-style reasoning to strengthen the guarantees of crypto currencies and explore probabilistic guarantees in program analysis was suggested.
  • Quantum Crypto Verification: Active collaboration is ongoing to develop tools for verifying post-quantum cryptography.

Summary updated

BibTeX
@inproceedings{barthe2015synergy,
  author = {Gilles Barthe and Michael Hicks and Florian Kerschbaum and Dominique Unruh},
  title = {{The Synergy Between Programming Languages and Cryptography (Dagstuhl Seminar 14492)}},
  booktitle = {DROPS},
  year = {2015},
  doi = {10.4230/dagrep.4.12.29},
}
Figure