diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2015-05-25 21:35:36 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2015-05-25 21:35:36 +0000 |
commit | ea223d6bc36973591231ba26545b0b0fb67fdb93 (patch) | |
tree | 54e67997cd69cd6828306506910f4a59243aed27 /lib/libssl | |
parent | d8ab4f8831dce60f8ee537e7a0a36e129cf7cecf (diff) |
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 'lib/libssl')
-rw-r--r-- | lib/libssl/src/ssl/s3_lib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libssl/src/ssl/s3_lib.c b/lib/libssl/src/ssl/s3_lib.c index c6062934dc1..79f680f527e 100644 --- a/lib/libssl/src/ssl/s3_lib.c +++ b/lib/libssl/src/ssl/s3_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s3_lib.c,v 1.95 2015/02/08 22:06:49 miod Exp $ */ +/* $OpenBSD: s3_lib.c,v 1.96 2015/05/25 21:35:35 guenther Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1820,7 +1820,7 @@ SSL_CIPHER ssl3_ciphers[] = { .algorithm2 = SSL_HANDSHAKE_MAC_SHA256|TLS1_PRF_SHA256| SSL_CIPHER_ALGORITHM2_AEAD|FIXED_NONCE_LEN(0), .strength_bits = 256, - .alg_bits = 0, + .alg_bits = 256, }, /* Cipher CC14 */ @@ -1837,7 +1837,7 @@ SSL_CIPHER ssl3_ciphers[] = { .algorithm2 = SSL_HANDSHAKE_MAC_SHA256|TLS1_PRF_SHA256| SSL_CIPHER_ALGORITHM2_AEAD|FIXED_NONCE_LEN(0), .strength_bits = 256, - .alg_bits = 0, + .alg_bits = 256, }, /* Cipher CC15 */ @@ -1854,7 +1854,7 @@ SSL_CIPHER ssl3_ciphers[] = { .algorithm2 = SSL_HANDSHAKE_MAC_SHA256|TLS1_PRF_SHA256| SSL_CIPHER_ALGORITHM2_AEAD|FIXED_NONCE_LEN(0), .strength_bits = 256, - .alg_bits = 0, + .alg_bits = 256, }, #endif |