src/java.base/share/classes/sun/security/ssl/SSLRecord.java
branchJDK-8145252-TLS13-branch
changeset 56761 001e4e7c0a01
parent 56542 56aaa6cb3693
--- a/src/java.base/share/classes/sun/security/ssl/SSLRecord.java	Wed Jun 13 22:40:47 2018 -0700
+++ b/src/java.base/share/classes/sun/security/ssl/SSLRecord.java	Thu Jun 14 11:59:22 2018 -0700
@@ -68,19 +68,6 @@
                                     + maxMacSize;           // MAC or AEAD tag
 
     /*
-     * For CBC protection in SSL3/TLS1, we break some plaintext into two
-     * packets.  Max application data size for the second packet.
-     */
-    static final int    maxDataSizeMinusOneByteRecord =
-                                  maxDataSize       // max data size
-                                - (                 // max one byte record size
-                                      headerPlusMaxIVSize   // header + iv
-                                    + 1             // one byte data
-                                    + maxPadding    // padding
-                                    + maxMacSize    // MAC
-                                  );
-
-    /*
      * The maximum large record size.
      *
      * Some SSL/TLS implementations support large fragment upto 2^15 bytes,
@@ -93,18 +80,6 @@
                 maxRecordSize   // Max size with a conforming implementation
               + maxDataSize;    // extra 2^14 bytes for large data packets.
 
-
-    /*
-     * Maximum record size for alert and change cipher spec records.
-     * They only contain 2 and 1 bytes of data, respectively.
-     * Allocate a smaller array.
-     */
-    static final int    maxAlertRecordSize =
-                                      headerPlusMaxIVSize   // header + iv
-                                    + 2                     // alert
-                                    + maxPadding            // padding
-                                    + maxMacSize;           // MAC
-
     /*
      * We may need to send this SSL v2 "No Cipher" message back, if we
      * are faced with an SSLv2 "hello" that's not saying "I talk v3".