summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorguenther <>2015-05-25 21:35:35 +0000
committerguenther <>2015-05-25 21:35:35 +0000
commitc4c005446c6557ed204d278d505784c00abcdbbd (patch)
tree455553bede4ad3a1d42c73640aedd73162a6ed24 /src
parent4ecb35c8702ae9bf7de323d549724d7f1d436a06 (diff)
downloadopenbsd-c4c005446c6557ed204d278d505784c00abcdbbd.tar.gz
openbsd-c4c005446c6557ed204d278d505784c00abcdbbd.tar.bz2
openbsd-c4c005446c6557ed204d278d505784c00abcdbbd.zip
Make SSL_CIPHER_get_bits() report ChaCha20-Poly1305 ciphers as using
256bit keys problem noted by Tim Kuijsten (info (at) netsend.nl) ok deraadt@ miod@ bcook@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/s3_lib.c8
-rw-r--r--src/lib/libssl/src/ssl/s3_lib.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libssl/s3_lib.c b/src/lib/libssl/s3_lib.c
index c6062934dc..79f680f527 100644
--- a/src/lib/libssl/s3_lib.c
+++ b/src/lib/libssl/s3_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s3_lib.c,v 1.95 2015/02/08 22:06:49 miod Exp $ */ 1/* $OpenBSD: s3_lib.c,v 1.96 2015/05/25 21:35:35 guenther Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -1820,7 +1820,7 @@ SSL_CIPHER ssl3_ciphers[] = {
1820 .algorithm2 = SSL_HANDSHAKE_MAC_SHA256|TLS1_PRF_SHA256| 1820 .algorithm2 = SSL_HANDSHAKE_MAC_SHA256|TLS1_PRF_SHA256|
1821 SSL_CIPHER_ALGORITHM2_AEAD|FIXED_NONCE_LEN(0), 1821 SSL_CIPHER_ALGORITHM2_AEAD|FIXED_NONCE_LEN(0),
1822 .strength_bits = 256, 1822 .strength_bits = 256,
1823 .alg_bits = 0, 1823 .alg_bits = 256,
1824 }, 1824 },
1825 1825
1826 /* Cipher CC14 */ 1826 /* Cipher CC14 */
@@ -1837,7 +1837,7 @@ SSL_CIPHER ssl3_ciphers[] = {
1837 .algorithm2 = SSL_HANDSHAKE_MAC_SHA256|TLS1_PRF_SHA256| 1837 .algorithm2 = SSL_HANDSHAKE_MAC_SHA256|TLS1_PRF_SHA256|
1838 SSL_CIPHER_ALGORITHM2_AEAD|FIXED_NONCE_LEN(0), 1838 SSL_CIPHER_ALGORITHM2_AEAD|FIXED_NONCE_LEN(0),
1839 .strength_bits = 256, 1839 .strength_bits = 256,
1840 .alg_bits = 0, 1840 .alg_bits = 256,
1841 }, 1841 },
1842 1842
1843 /* Cipher CC15 */ 1843 /* Cipher CC15 */
@@ -1854,7 +1854,7 @@ SSL_CIPHER ssl3_ciphers[] = {
1854 .algorithm2 = SSL_HANDSHAKE_MAC_SHA256|TLS1_PRF_SHA256| 1854 .algorithm2 = SSL_HANDSHAKE_MAC_SHA256|TLS1_PRF_SHA256|
1855 SSL_CIPHER_ALGORITHM2_AEAD|FIXED_NONCE_LEN(0), 1855 SSL_CIPHER_ALGORITHM2_AEAD|FIXED_NONCE_LEN(0),
1856 .strength_bits = 256, 1856 .strength_bits = 256,
1857 .alg_bits = 0, 1857 .alg_bits = 256,
1858 }, 1858 },
1859#endif 1859#endif
1860 1860
diff --git a/src/lib/libssl/src/ssl/s3_lib.c b/src/lib/libssl/src/ssl/s3_lib.c
index c6062934dc..79f680f527 100644
--- a/src/lib/libssl/src/ssl/s3_lib.c
+++ b/src/lib/libssl/src/ssl/s3_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s3_lib.c,v 1.95 2015/02/08 22:06:49 miod Exp $ */ 1/* $OpenBSD: s3_lib.c,v 1.96 2015/05/25 21:35:35 guenther Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -1820,7 +1820,7 @@ SSL_CIPHER ssl3_ciphers[] = {
1820 .algorithm2 = SSL_HANDSHAKE_MAC_SHA256|TLS1_PRF_SHA256| 1820 .algorithm2 = SSL_HANDSHAKE_MAC_SHA256|TLS1_PRF_SHA256|
1821 SSL_CIPHER_ALGORITHM2_AEAD|FIXED_NONCE_LEN(0), 1821 SSL_CIPHER_ALGORITHM2_AEAD|FIXED_NONCE_LEN(0),
1822 .strength_bits = 256, 1822 .strength_bits = 256,
1823 .alg_bits = 0, 1823 .alg_bits = 256,
1824 }, 1824 },
1825 1825
1826 /* Cipher CC14 */ 1826 /* Cipher CC14 */
@@ -1837,7 +1837,7 @@ SSL_CIPHER ssl3_ciphers[] = {
1837 .algorithm2 = SSL_HANDSHAKE_MAC_SHA256|TLS1_PRF_SHA256| 1837 .algorithm2 = SSL_HANDSHAKE_MAC_SHA256|TLS1_PRF_SHA256|
1838 SSL_CIPHER_ALGORITHM2_AEAD|FIXED_NONCE_LEN(0), 1838 SSL_CIPHER_ALGORITHM2_AEAD|FIXED_NONCE_LEN(0),
1839 .strength_bits = 256, 1839 .strength_bits = 256,
1840 .alg_bits = 0, 1840 .alg_bits = 256,
1841 }, 1841 },
1842 1842
1843 /* Cipher CC15 */ 1843 /* Cipher CC15 */
@@ -1854,7 +1854,7 @@ SSL_CIPHER ssl3_ciphers[] = {
1854 .algorithm2 = SSL_HANDSHAKE_MAC_SHA256|TLS1_PRF_SHA256| 1854 .algorithm2 = SSL_HANDSHAKE_MAC_SHA256|TLS1_PRF_SHA256|
1855 SSL_CIPHER_ALGORITHM2_AEAD|FIXED_NONCE_LEN(0), 1855 SSL_CIPHER_ALGORITHM2_AEAD|FIXED_NONCE_LEN(0),
1856 .strength_bits = 256, 1856 .strength_bits = 256,
1857 .alg_bits = 0, 1857 .alg_bits = 256,
1858 }, 1858 },
1859#endif 1859#endif
1860 1860