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

Unified Diff: net/third_party/nss/ssl/sslimpl.h

Issue 12417005: Split RC4-encrypted records. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Feature complete Created 7 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« net/third_party/nss/ssl/ssl3con.c ('K') | « net/third_party/nss/ssl/ssl3con.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/third_party/nss/ssl/sslimpl.h
===================================================================
--- net/third_party/nss/ssl/sslimpl.h (revision 185536)
+++ net/third_party/nss/ssl/sslimpl.h (working copy)
@@ -864,8 +864,12 @@
PRUint32 rtRetries; /* The retry counter */
} SSL3HandshakeState;
+enum {
+ /* The number of initial RC4 keystream bytes that have a statistical
+ * bias */
+ SSL3_BIASED_RC4_BYTES = 256
+};
-
/*
** This is the "ssl3" struct, as in "ss->ssl3".
** note:
@@ -910,6 +914,10 @@
PRBool initialized;
SSL3HandshakeState hs;
ssl3CipherSpec specs[2]; /* one is current, one is pending. */
+ /* The number of bytes that have been encrypted with RC4. Set to 0 at
+ * the beginning of each handshake. Stop counting after it exceeds
+ * SSL3_BIASED_RC4_BYTES. */
+ unsigned int rc4EncryptedBytes;
/* In a client: if the server supports Next Protocol Negotiation, then
* this is the protocol that was negotiated.
« net/third_party/nss/ssl/ssl3con.c ('K') | « net/third_party/nss/ssl/ssl3con.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698