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. |