Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: patches.chromium/0007-chacha.patch

Issue 76823002: OpenSSL: prefer ChaCha20 ciphersuites. Base URL: https://chromium.googlesource.com/chromium/deps/openssl.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « openssl/ssl/ssl_ciph.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 diff -burN android-openssl-lhash2/openssl.config android-openssl/openssl.config 1 diff -burN android-openssl-lhash2/openssl.config android-openssl/openssl.config
2 --- android-openssl-lhash2/openssl.config 2013-11-05 14:38:31.187575574 -0 500 2 --- android-openssl-lhash2/openssl.config 2013-11-05 14:38:31.187575574 -0 500
3 +++ android-openssl/openssl.config 2013-11-05 15:03:54.661551145 -0500 3 +++ android-openssl/openssl.config 2013-11-05 15:03:54.661551145 -0500
4 @@ -432,6 +432,7 @@ 4 @@ -432,6 +432,7 @@
5 crypto/buffer/buf_err.c \ 5 crypto/buffer/buf_err.c \
6 crypto/buffer/buf_str.c \ 6 crypto/buffer/buf_str.c \
7 crypto/buffer/buffer.c \ 7 crypto/buffer/buffer.c \
8 +crypto/chacha/chacha_enc.c \ 8 +crypto/chacha/chacha_enc.c \
9 crypto/cmac/cm_ameth.c \ 9 crypto/cmac/cm_ameth.c \
10 crypto/cmac/cm_pmeth.c \ 10 crypto/cmac/cm_pmeth.c \
(...skipping 1600 matching lines...) Expand 10 before | Expand all | Expand 10 after
1611 ++ 1611 ++
1612 ++These functions were first added to OpenSSL 1.0.2. 1612 ++These functions were first added to OpenSSL 1.0.2.
1613 ++ 1613 ++
1614 ++=cut 1614 ++=cut
1615 +-- 1615 +--
1616 +1.8.4.1 1616 +1.8.4.1
1617 + 1617 +
1618 diff -burN android-openssl-lhash2/patches/chacha20poly1305.patch android-openssl /patches/chacha20poly1305.patch 1618 diff -burN android-openssl-lhash2/patches/chacha20poly1305.patch android-openssl /patches/chacha20poly1305.patch
1619 --- android-openssl-lhash2/patches/chacha20poly1305.patch 1969-12-31 19:00 :00.000000000 -0500 1619 --- android-openssl-lhash2/patches/chacha20poly1305.patch 1969-12-31 19:00 :00.000000000 -0500
1620 +++ android-openssl/patches/chacha20poly1305.patch 2013-11-05 15:15:28.4544 80948 -0500 1620 +++ android-openssl/patches/chacha20poly1305.patch 2013-11-05 15:15:28.4544 80948 -0500
1621 @@ -0,0 +1,5725 @@ 1621 @@ -0,0 +1,5740 @@
1622 +From 2688f00904e4ffd647afcff69bb8fe6df8c5902b Mon Sep 17 00:00:00 2001 1622 +From 2688f00904e4ffd647afcff69bb8fe6df8c5902b Mon Sep 17 00:00:00 2001
1623 +From: Adam Langley <agl@chromium.org> 1623 +From: Adam Langley <agl@chromium.org>
1624 +Date: Mon, 9 Sep 2013 12:13:24 -0400 1624 +Date: Mon, 9 Sep 2013 12:13:24 -0400
1625 +Subject: [PATCH 43/52] chacha20poly1305 1625 +Subject: [PATCH 43/52] chacha20poly1305
1626 + 1626 +
1627 +Add support for Chacha20 + Poly1305. 1627 +Add support for Chacha20 + Poly1305.
1628 +--- 1628 +---
1629 + .gitignore | 1 + 1629 + .gitignore | 1 +
1630 + Configure | 56 +- 1630 + Configure | 56 +-
1631 + Makefile.org | 6 +- 1631 + Makefile.org | 6 +-
(...skipping 30 matching lines...) Expand all
1662 + create mode 100644 crypto/chacha/chachatest.c 1662 + create mode 100644 crypto/chacha/chachatest.c
1663 + create mode 100644 crypto/evp/e_chacha20poly1305.c 1663 + create mode 100644 crypto/evp/e_chacha20poly1305.c
1664 + create mode 100644 crypto/poly1305/Makefile 1664 + create mode 100644 crypto/poly1305/Makefile
1665 + create mode 100644 crypto/poly1305/poly1305.c 1665 + create mode 100644 crypto/poly1305/poly1305.c
1666 + create mode 100644 crypto/poly1305/poly1305.h 1666 + create mode 100644 crypto/poly1305/poly1305.h
1667 + create mode 100644 crypto/poly1305/poly1305_arm.c 1667 + create mode 100644 crypto/poly1305/poly1305_arm.c
1668 + create mode 100644 crypto/poly1305/poly1305_arm_asm.s 1668 + create mode 100644 crypto/poly1305/poly1305_arm_asm.s
1669 + create mode 100644 crypto/poly1305/poly1305_vec.c 1669 + create mode 100644 crypto/poly1305/poly1305_vec.c
1670 + create mode 100644 crypto/poly1305/poly1305test.c 1670 + create mode 100644 crypto/poly1305/poly1305test.c
1671 + 1671 +
1672 +diff --git a/openssl/ssl/ssl_ciph.c b/openssl/ssl/ssl_ciph.c
1673 +index db85b29..cebb18a 100644
1674 +--- a/ssl/ssl_ciph.c
1675 ++++ b/ssl/ssl_ciph.c
1676 +@@ -1442,7 +1442,9 @@ STACK_OF(SSL_CIPHER) *ssl_create_cipher_list(const SSL_ME THOD *ssl_method,
1677 + ssl_cipher_apply_rule(0, SSL_kEECDH, 0, 0, 0, 0, 0, CIPHER_ADD, -1, &hea d, &tail);
1678 + ssl_cipher_apply_rule(0, SSL_kEECDH, 0, 0, 0, 0, 0, CIPHER_DEL, -1, &hea d, &tail);
1679 +
1680 +- /* AES is our preferred symmetric cipher */
1681 ++ /* CHACHA20 is fast and safe on all hardware and is thus our preferred
1682 ++ * symmetric cipher, with AES second. */
1683 ++ ssl_cipher_apply_rule(0, 0, 0, SSL_CHACHA20POLY1305, 0, 0, 0, CIPHER_ADD , -1, &head, &tail);
1684 + ssl_cipher_apply_rule(0, 0, 0, SSL_AES, 0, 0, 0, CIPHER_ADD, -1, &head, &tail);
1685 +
1686 + /* Temporarily enable everything else for sorting */
1672 +diff --git a/Configure b/Configure 1687 +diff --git a/Configure b/Configure
1673 +index 9c803dc..1b95384 100755 1688 +index 9c803dc..1b95384 100755
1674 +--- a/Configure 1689 +--- a/Configure
1675 ++++ b/Configure 1690 ++++ b/Configure
1676 +@@ -124,24 +124,24 @@ my $tlib="-lnsl -lsocket"; 1691 +@@ -124,24 +124,24 @@ my $tlib="-lnsl -lsocket";
1677 + my $bits1="THIRTY_TWO_BIT "; 1692 + my $bits1="THIRTY_TWO_BIT ";
1678 + my $bits2="SIXTY_FOUR_BIT "; 1693 + my $bits2="SIXTY_FOUR_BIT ";
1679 + 1694 +
1680 +-my $x86_asm="x86cpuid.o:bn-586.o co-586.o x86-mont.o x86-gf2m.o:des-586.o cryp t586.o:aes-586.o vpaes-x86.o aesni-x86.o:bf-586.o:md5-586.o:sha1-586.o sha256-58 6.o sha512-586.o:cast-586.o:rc4-586.o:rmd-586.o:rc5-586.o:wp_block.o wp-mmx.o:cm ll-x86.o:ghash-x86.o:"; 1695 +-my $x86_asm="x86cpuid.o:bn-586.o co-586.o x86-mont.o x86-gf2m.o:des-586.o cryp t586.o:aes-586.o vpaes-x86.o aesni-x86.o:bf-586.o:md5-586.o:sha1-586.o sha256-58 6.o sha512-586.o:cast-586.o:rc4-586.o:rmd-586.o:rc5-586.o:wp_block.o wp-mmx.o:cm ll-x86.o:ghash-x86.o:";
1681 ++my $x86_asm="x86cpuid.o:bn-586.o co-586.o x86-mont.o x86-gf2m.o:des-586.o cryp t586.o:aes-586.o vpaes-x86.o aesni-x86.o:bf-586.o:md5-586.o:sha1-586.o sha256-58 6.o sha512-586.o:cast-586.o:rc4-586.o:rmd-586.o:rc5-586.o:wp_block.o wp-mmx.o:cm ll-x86.o:ghash-x86.o:::"; 1696 ++my $x86_asm="x86cpuid.o:bn-586.o co-586.o x86-mont.o x86-gf2m.o:des-586.o cryp t586.o:aes-586.o vpaes-x86.o aesni-x86.o:bf-586.o:md5-586.o:sha1-586.o sha256-58 6.o sha512-586.o:cast-586.o:rc4-586.o:rmd-586.o:rc5-586.o:wp_block.o wp-mmx.o:cm ll-x86.o:ghash-x86.o:::";
(...skipping 7476 matching lines...) Expand 10 before | Expand all | Expand 10 after
9158 + SSL_TLSV1_2, 9173 + SSL_TLSV1_2,
9159 + SSL_NOT_EXP|SSL_HIGH|SSL_FIPS, 9174 + SSL_NOT_EXP|SSL_HIGH|SSL_FIPS,
9160 +- SSL_HANDSHAKE_MAC_SHA256|TLS1_PRF_SHA256, 9175 +- SSL_HANDSHAKE_MAC_SHA256|TLS1_PRF_SHA256,
9161 ++ SSL_HANDSHAKE_MAC_SHA256|TLS1_PRF_SHA256|SSL_CIPHER_ALGORITHM2_AEAD|FIXE D_NONCE_LEN(4), 9176 ++ SSL_HANDSHAKE_MAC_SHA256|TLS1_PRF_SHA256|SSL_CIPHER_ALGORITHM2_AEAD|FIXE D_NONCE_LEN(4),
9162 + 128, 9177 + 128,
9163 + 128, 9178 + 128,
9164 + }, 9179 + },
9165 +-- 9180 +--
9166 +1.8.4.1 9181 +1.8.4.1
9167 + 9182 +
OLDNEW
« no previous file with comments | « openssl/ssl/ssl_ciph.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698