Implementing and Proving the TLS 1.3 Record Layer
Autor: | Jean Karim Zinzindohoue, Markulf Kohlweiss, Aseem Rastogi, Antoine Delignat-Lavaud, Cédric Fournet, Nikhil Swamy, Jianyang Pan, Jonathan Protzenko, Karthikeyan Bhargavan, Santiago Zanella-Béguelin |
---|---|
Přispěvatelé: | Programming securely with cryptography (PROSECCO), Inria de Paris, Institut National de Recherche en Informatique et en Automatique (Inria)-Institut National de Recherche en Informatique et en Automatique (Inria), Microsoft Research [Cambridge] (Microsoft), Microsoft Research, Programming securely with cryptography (PROSECCO ) |
Jazyk: | angličtina |
Rok vydání: | 2017 |
Předmět: |
Authenticated encryption
Cryptographic primitive Handshake Computer science business.industry Distributed computing Cryptography 0102 computer and information sciences 02 engineering and technology Computer security model Adversary Encryption 01 natural sciences Padding [INFO.INFO-CL]Computer Science [cs]/Computation and Language [cs.CL] [INFO.INFO-CR]Computer Science [cs]/Cryptography and Security [cs.CR] Stateful firewall 010201 computation theory & mathematics 0202 electrical engineering electronic engineering information engineering Key (lock) 020201 artificial intelligence & image processing Concrete security business Cryptographic nonce Computer network |
Zdroj: | Delignat-Lavaud, A, Fournet, C, Kohlweiss, M, Protzenko, J, Rastogi, A, Swamy, N, Béguelin, S Z, Bhargavan, K, Pan, J & Zinzindohoue, J K 2017, Implementing and Proving the TLS 1.3 Record Layer . in 2017 IEEE Symposium on Security and Privacy, SP 2017, San Jose, CA, USA, May 22-26, 2017 . Institute of Electrical and Electronics Engineers (IEEE), San Jose, CA, USA, pp. 463-482, 2017 IEEE Symposium on Security and Privacy, San Jose, CA, United States, 22/05/17 . https://doi.org/10.1109/SP.2017.58 2017 IEEE Symposium on Security and Privacy (SP) SP 2017-38th IEEE Symposium on Security and Privacy SP 2017-38th IEEE Symposium on Security and Privacy, May 2017, San Jose, United States. pp.463-482, ⟨10.1109/SP.2017.58⟩ IEEE Symposium on Security and Privacy |
Popis: | The record layer is the main bridge between TLS applications and internal sub-protocols. Its core functionality is an elaborate form of authenticated encryption: streams of messages for each sub-protocol (handshake, alert, and application data) are fragmented, multiplexed, and encrypted with optional padding to hide their lengths. Conversely, the sub-protocols may provide fresh keys or signal stream termination to the record layer. Compared to prior versions, TLS 1.3 discards obsolete schemes in favor of a common construction for Authenticated Encryption with Associated Data (AEAD), instantiated with algorithms such as AES-GCM and ChaCha20-Poly1305. It differs from TLS 1.2 in its use of padding, associated data and nonces. It also encrypts the content-type used to multiplex between sub-protocols. New protocol features such as early application data (0-RTT and 0.5-RTT) and late handshake messages require additional keys and a more general model of stateful encryption. We build and verify a reference implementation of the TLS record layer and its cryptographic algorithms in F*, a dependently typed language where security and functional guarantees can be specified as pre-and post-conditions. We reduce the high-level security of the record layer to cryptographic assumptions on its ciphers. Each step in the reduction is verified by typing an F* module, for each step that involves a cryptographic assumption, this module precisely captures the corresponding game. We first verify the functional correctness and injectivity properties of our implementations of one-time MAC algorithms (Poly1305 and GHASH) and provide a generic proof of their security given these two properties. We show the security of a generic AEAD construction built from any secure one-time MAC and PRF. We extend AEAD, first to stream encryption, then to length-hiding, multiplexed encryption. Finally, we build a security model of the record layer against an adversary that controls the TLS sub-protocols. We compute concrete security bounds for the AES_128_GCM, AES_256_GCM, and CHACHA20_POLY1305 ciphersuites, and derive recommended limits on sent data before re-keying. We plug our implementation of the record layer into the miTLS library, confirm that they interoperate with Chrome and Firefox, and report initial performance results. Combining our functional correctness, security, and experimental results, we conclude that the new TLS record layer (as described in RFCs and cryptographic standards) is provably secure, and we provide its first verified implementation. |
Databáze: | OpenAIRE |
Externí odkaz: |