Array (Mar 2022)

TFHE-rs: A library for safe and secure remote computing using fully homomorphic encryption and trusted execution environments

  • Lars Brenna,
  • Isak Sunde Singh,
  • Håvard Dagenborg Johansen,
  • Dag Johansen

Journal volume & issue
Vol. 13
p. 100118

Abstract

Read online

Fully Homomorphic Encryption (FHE) and Trusted Execution Environ-ments (TEEs) are complementing approaches that can both secure computa-tions running remotely on a public cloud. Existing FHE schemes are, however, malleable by design and lack integrity protection, making them susceptible to integrity breaches where an adversary could modify the data and corrupt the output.This paper describes how both confidentiality and integrity of remote compu-tations can be assured by combining FHE with hardware based secure enclave technologies. We provide a software library for performing FHE within the Intel SGX TEE, written in the memory-safe programming language Rust to strengthen the internal safety of software and reduce its attack surface.We evaluate a sample application written with our library. We demonstrate that we can feasibly combine these concepts and provide stronger security guar-antees with a minimal development effort.