summaryrefslogtreecommitdiff
path: root/src/common/ciphers.inc
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-02-10 16:09:00 -0500
committerNick Mathewson <nickm@torproject.org>2018-02-10 16:09:00 -0500
commit86583ad78e6c75ea0094553584428f795089c482 (patch)
treeb5c5aa004ea10eae7fd6ccaccc482a82b655a9f7 /src/common/ciphers.inc
parent04a8e81fa9d323819a7294f80aca9477794386bc (diff)
parent320dac4602dd26bc64f1f0fd1cff5d7b38bb09eb (diff)
downloadtor-86583ad78e6c75ea0094553584428f795089c482.tar.gz
tor-86583ad78e6c75ea0094553584428f795089c482.zip
Merge branch 'maint-0.2.9' into maint-0.3.1
Diffstat (limited to 'src/common/ciphers.inc')
-rw-r--r--src/common/ciphers.inc21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/common/ciphers.inc b/src/common/ciphers.inc
index a336e2dfa0..0084b3e325 100644
--- a/src/common/ciphers.inc
+++ b/src/common/ciphers.inc
@@ -2,8 +2,27 @@
* advertise. Before including it, you should define the CIPHER and XCIPHER
* macros.
*
- * This file was automatically generated by get_mozilla_ciphers.py.
+ * This file was automatically generated by get_mozilla_ciphers.py;
+ * TLSv1.3 ciphers were added manually.
*/
+
+/* Here are the TLS1.3 ciphers. Note that we don't have XCIPHER instances
+ * here, since we don't want to ever fake them.
+ */
+#ifdef TLS1_3_TXT_AES_128_GCM_SHA256
+ CIPHER(0x1301, TLS1_3_TXT_AES_128_GCM_SHA256)
+#endif
+#ifdef TLS1_3_TXT_AES_256_GCM_SHA384
+ CIPHER(0x1302, TLS1_3_TXT_AES_256_GCM_SHA384)
+#endif
+#ifdef TLS1_3_TXT_CHACHA20_POLY1305_SHA256
+ CIPHER(0x1303, TLS1_3_TXT_CHACHA20_POLY1305_SHA256)
+#endif
+#ifdef TLS1_3_TXT_AES_128_CCM_SHA256
+ CIPHER(0x1304, TLS1_3_TXT_AES_128_CCM_SHA256)
+#endif
+
+/* Here's the machine-generated list. */
#ifdef TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
CIPHER(0xc02b, TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256)
#else