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) |
@@ -530,6 +530,9 @@ |
PRUint64 cipher_context[MAX_CIPHER_CONTEXT_LLONGS]; |
} ssl3KeyMaterial; |
+/* The number of initial RC4 keystream bytes that have a statistical bias */ |
+#define SSL3_BIASED_RC4_BYTES 256 |
+ |
/* The DTLS anti-replay window. Defined here because we need it in |
* the cipher spec. Note that this is a ring buffer but left and |
* right represent the true window, with modular arithmetic used to |
@@ -568,6 +571,10 @@ |
void * decompressContext; |
PRBool bypassCiphers; /* did double bypass (at least) */ |
PK11SymKey * master_secret; |
+ unsigned int rc4EncryptedBytes; /* The number of bytes that have |
+ * been encrypted with RC4. Stop |
+ * counting after it exceeds |
+ * SSL3_BIASED_RC4_BYTES. */ |
SSL3SequenceNumber write_seq_num; |
SSL3SequenceNumber read_seq_num; |
SSL3ProtocolVersion version; |