EnigMap: Signal Should Use Oblivious Algorithms for Private Contact Discovery
EnigMap: Signal Should Use Oblivious Algorithms for Private Contact Discovery
复制标题
EnigMap:信号应该使用不经意的算法来发现私人联系人
DOI:
--
复制
发表时间:
2022
期刊:
影响因子:
--
通讯作者:
E. Shi
中科院分区:
文献类型:
--
作者:
Afonso Tinoco;Sixiang Gao;E. Shi
—Leveraging hardware enclaves technology, Signal was the first to offer a privacy-preserving contact discovery service, where users can discover whether their friends have signed up for the service, without divulging their entire address books. The crux of their design is an algorithm to search for the user’s contacts such that the access patterns are independent of the queries. To achieve this, Signal implemented a na ¨ ıve batched linear scan algorithm that scans through the entire database for each batch of queries. Signal published a high-profile blog post arguing that for billion-sized databases, batched linear scan outperforms the asymptotically superior oblivious algorithms. While subsequent works revisited the same question, we still do not have conclusive evidence why Signal should use oblivious algorithms instead. Our work is motivated by the observation that the previous enclave implementations of oblivious algorithms are sub-optimal both asymptotically and concretely. We make the key observation that for enclave applications, the number of page swaps should be a primary performance metric. We therefore adopt techniques from the external-memory algorithms literature, and we are the first to implement such algorithms inside hardware enclaves. We also devise asymptotically better algorithms for ensuring a strong notion of obliviousness that resists cache-timing attacks. We complement our algorithmic improvements with various concrete optimizations that save constant factors in practice. The resulting system, called E NIG M AP , achieves 5.5 × speedup over Signal’s linear scan implementation, and 21 × speedup over the prior best oblivious algorithm implementation, at a realistic database size of 256 million and a batch size of 1000. The speedup is asymptotical in nature and will be even greater as Signal’s user base grows.
DOI:
10.1145/3409964.3461783
发表时间:
2021
期刊:
SPAA '21
影响因子:
--
作者:
Ramachandran, Vijaya;Shi, Elaine
通讯作者:
Shi, Elaine