final class sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher extends sun.security.ssl.SSLCipher$SSLWriteCipher
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher
super_class: sun.security.ssl.SSLCipher$SSLWriteCipher
{
private final javax.crypto.Cipher cipher;
descriptor: Ljavax/crypto/Cipher;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.security.SecureRandom random;
descriptor: Ljava/security/SecureRandom;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(sun.security.ssl.Authenticator, sun.security.ssl.ProtocolVersion, sun.security.ssl.SSLCipher, java.lang.String, java.security.Key, java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom);
descriptor: (Lsun/security/ssl/Authenticator;Lsun/security/ssl/ProtocolVersion;Lsun/security/ssl/SSLCipher;Ljava/lang/String;Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
flags: (0x0000)
Code:
stack=5, locals=8, args_size=8
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 0: aload 0
aload 1
aload 2
invokespecial sun.security.ssl.SSLCipher$SSLWriteCipher.<init>:(Lsun/security/ssl/Authenticator;Lsun/security/ssl/ProtocolVersion;)V
1: aload 0
aload 4
invokestatic javax.crypto.Cipher.getInstance:(Ljava/lang/String;)Ljavax/crypto/Cipher;
putfield sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher.cipher:Ljavax/crypto/Cipher;
2: aload 0
aload 7
putfield sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher.random:Ljava/security/SecureRandom;
3: aload 6
ifnonnull 5
4: new javax.crypto.spec.IvParameterSpec
dup
aload 3
getfield sun.security.ssl.SSLCipher.ivSize:I
newarray 8
invokespecial javax.crypto.spec.IvParameterSpec.<init>:([B)V
astore 6
5: StackMap locals: sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher sun.security.ssl.Authenticator sun.security.ssl.ProtocolVersion sun.security.ssl.SSLCipher java.lang.String java.security.Key java.security.spec.AlgorithmParameterSpec java.security.SecureRandom
StackMap stack:
aload 0
getfield sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher.cipher:Ljavax/crypto/Cipher;
iconst_1
aload 5
aload 6
aload 7
invokevirtual javax.crypto.Cipher.init:(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
6: return
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/ssl/SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher;
0 7 1 authenticator Lsun/security/ssl/Authenticator;
0 7 2 protocolVersion Lsun/security/ssl/ProtocolVersion;
0 7 3 sslCipher Lsun/security/ssl/SSLCipher;
0 7 4 algorithm Ljava/lang/String;
0 7 5 key Ljava/security/Key;
0 7 6 params Ljava/security/spec/AlgorithmParameterSpec;
0 7 7 random Ljava/security/SecureRandom;
Exceptions:
throws java.security.GeneralSecurityException
MethodParameters:
Name Flags
authenticator
protocolVersion
sslCipher
algorithm
key
params
random
public int encrypt(byte, java.nio.ByteBuffer);
descriptor: (BLjava/nio/ByteBuffer;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual java.nio.ByteBuffer.position:()I
istore 3
start local 3 1: aload 0
getfield sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher.authenticator:Lsun/security/ssl/Authenticator;
checkcast sun.security.ssl.Authenticator$MAC
astore 4
start local 4 2: aload 4
invokeinterface sun.security.ssl.Authenticator$MAC.macAlg:()Lsun/security/ssl/CipherSuite$MacAlg;
getfield sun.security.ssl.CipherSuite$MacAlg.size:I
ifeq 5
3: aload 4
aload 2
iload 1
invokestatic sun.security.ssl.SSLCipher.addMac:(Lsun/security/ssl/Authenticator$MAC;Ljava/nio/ByteBuffer;B)V
4: goto 6
5: StackMap locals: int sun.security.ssl.Authenticator$MAC
StackMap stack:
aload 0
getfield sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher.authenticator:Lsun/security/ssl/Authenticator;
invokevirtual sun.security.ssl.Authenticator.increaseSequenceNumber:()V
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher.cipher:Ljavax/crypto/Cipher;
invokevirtual javax.crypto.Cipher.getBlockSize:()I
newarray 8
astore 5
start local 5 7: aload 0
getfield sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher.random:Ljava/security/SecureRandom;
aload 5
invokevirtual java.security.SecureRandom.nextBytes:([B)V
8: iload 3
aload 5
arraylength
isub
istore 3
9: aload 2
iload 3
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
10: aload 2
aload 5
invokevirtual java.nio.ByteBuffer.put:([B)Ljava/nio/ByteBuffer;
pop
11: aload 2
iload 3
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
12: aload 0
getfield sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher.cipher:Ljavax/crypto/Cipher;
invokevirtual javax.crypto.Cipher.getBlockSize:()I
istore 6
start local 6 13: aload 2
iload 6
invokestatic sun.security.ssl.SSLCipher.addPadding:(Ljava/nio/ByteBuffer;I)I
istore 7
start local 7 14: aload 2
iload 3
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
15: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 19
ldc "plaintext"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 19
16: ldc "Padded plaintext before ENCRYPTION"
iconst_1
anewarray java.lang.Object
dup
iconst_0
17: aload 2
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
aastore
18: invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
19: StackMap locals: byte[] int int
StackMap stack:
aload 2
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
astore 8
start local 8 20: iload 7
aload 0
getfield sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher.cipher:Ljavax/crypto/Cipher;
aload 8
aload 2
invokevirtual javax.crypto.Cipher.update:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
if_icmpeq 24
21: new java.lang.RuntimeException
dup
22: ldc "Unexpected number of plaintext bytes"
23: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
24: StackMap locals: java.nio.ByteBuffer
StackMap stack:
aload 2
invokevirtual java.nio.ByteBuffer.position:()I
aload 8
invokevirtual java.nio.ByteBuffer.position:()I
if_icmpeq 32
25: new java.lang.RuntimeException
dup
26: ldc "Unexpected ByteBuffer position"
27: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
28: StackMap locals:
StackMap stack: javax.crypto.ShortBufferException
astore 9
start local 9 29: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Cipher buffering error in JCE provider "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
30: aload 0
getfield sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher.cipher:Ljavax/crypto/Cipher;
invokevirtual javax.crypto.Cipher.getProvider:()Ljava/security/Provider;
invokevirtual java.security.Provider.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 9
31: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 9 32: StackMap locals:
StackMap stack:
iload 7
ireturn
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Lsun/security/ssl/SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher;
0 33 1 contentType B
0 33 2 bb Ljava/nio/ByteBuffer;
1 33 3 pos I
2 33 4 signer Lsun/security/ssl/Authenticator$MAC;
7 33 5 nonce [B
13 33 6 blockSize I
14 33 7 len I
20 33 8 dup Ljava/nio/ByteBuffer;
29 32 9 sbe Ljavax/crypto/ShortBufferException;
Exception table:
from to target type
20 28 28 Class javax.crypto.ShortBufferException
MethodParameters:
Name Flags
contentType
bb
void dispose();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher.cipher:Ljavax/crypto/Cipher;
ifnull 4
1: aload 0
getfield sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher.cipher:Ljavax/crypto/Cipher;
invokevirtual javax.crypto.Cipher.doFinal:()[B
pop
2: goto 4
StackMap locals:
StackMap stack: java.lang.Exception
3: pop
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/ssl/SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher;
Exception table:
from to target type
1 2 3 Class java.lang.Exception
int getExplicitNonceSize();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher.cipher:Ljavax/crypto/Cipher;
invokevirtual javax.crypto.Cipher.getBlockSize:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher;
int calculateFragmentSize(int, int);
descriptor: (II)I
flags: (0x0000)
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher.authenticator:Lsun/security/ssl/Authenticator;
checkcast sun.security.ssl.Authenticator$MAC
invokeinterface sun.security.ssl.Authenticator$MAC.macAlg:()Lsun/security/ssl/CipherSuite$MacAlg;
getfield sun.security.ssl.CipherSuite$MacAlg.size:I
istore 3
start local 3 1: aload 0
getfield sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher.cipher:Ljavax/crypto/Cipher;
invokevirtual javax.crypto.Cipher.getBlockSize:()I
istore 4
start local 4 2: iload 1
iload 2
isub
iload 4
isub
istore 5
start local 5 3: iload 5
iload 5
iload 4
irem
isub
istore 5
4: iinc 5 -1
5: iload 5
iload 3
isub
istore 5
6: iload 5
ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/ssl/SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher;
0 7 1 packetLimit I
0 7 2 headerSize I
1 7 3 macLen I
2 7 4 blockSize I
3 7 5 fragLen I
MethodParameters:
Name Flags
packetLimit
headerSize
int calculatePacketSize(int, int);
descriptor: (II)I
flags: (0x0000)
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher.authenticator:Lsun/security/ssl/Authenticator;
checkcast sun.security.ssl.Authenticator$MAC
invokeinterface sun.security.ssl.Authenticator$MAC.macAlg:()Lsun/security/ssl/CipherSuite$MacAlg;
getfield sun.security.ssl.CipherSuite$MacAlg.size:I
istore 3
start local 3 1: aload 0
getfield sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher.cipher:Ljavax/crypto/Cipher;
invokevirtual javax.crypto.Cipher.getBlockSize:()I
istore 4
start local 4 2: iload 1
iload 3
iadd
iconst_1
iadd
istore 5
start local 5 3: iload 5
iload 4
irem
ifeq 6
4: iload 5
iload 4
iconst_1
isub
iadd
istore 5
5: iload 5
iload 5
iload 4
irem
isub
istore 5
6: StackMap locals: int int int
StackMap stack:
iload 2
iload 4
iadd
iload 5
iadd
ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/ssl/SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher;
0 7 1 fragmentSize I
0 7 2 headerSize I
1 7 3 macLen I
2 7 4 blockSize I
3 7 5 paddedLen I
MethodParameters:
Name Flags
fragmentSize
headerSize
boolean isCBCMode();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher;
}
SourceFile: "SSLCipher.java"
NestHost: sun.security.ssl.SSLCipher
InnerClasses:
abstract MAC = sun.security.ssl.Authenticator$MAC of sun.security.ssl.Authenticator
final MacAlg = sun.security.ssl.CipherSuite$MacAlg of sun.security.ssl.CipherSuite
abstract SSLWriteCipher = sun.security.ssl.SSLCipher$SSLWriteCipher of sun.security.ssl.SSLCipher
private final T11BlockWriteCipherGenerator = sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator of sun.security.ssl.SSLCipher
final BlockWriteCipher = sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator$BlockWriteCipher of sun.security.ssl.SSLCipher$T11BlockWriteCipherGenerator