final class sun.security.ssl.SSLCipher$StreamWriteCipherGenerator$StreamWriteCipher 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$StreamWriteCipherGenerator$StreamWriteCipher
super_class: sun.security.ssl.SSLCipher$SSLWriteCipher
{
private final javax.crypto.Cipher cipher;
descriptor: Ljavax/crypto/Cipher;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(sun.security.ssl.Authenticator, sun.security.ssl.ProtocolVersion, java.lang.String, java.security.Key, java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom);
descriptor: (Lsun/security/ssl/Authenticator;Lsun/security/ssl/ProtocolVersion;Ljava/lang/String;Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
flags: (0x0000)
Code:
stack=5, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 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 3
invokestatic javax.crypto.Cipher.getInstance:(Ljava/lang/String;)Ljavax/crypto/Cipher;
putfield sun.security.ssl.SSLCipher$StreamWriteCipherGenerator$StreamWriteCipher.cipher:Ljavax/crypto/Cipher;
2: aload 0
getfield sun.security.ssl.SSLCipher$StreamWriteCipherGenerator$StreamWriteCipher.cipher:Ljavax/crypto/Cipher;
iconst_1
aload 4
aload 5
aload 6
invokevirtual javax.crypto.Cipher.init:(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
3: return
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 4 0 this Lsun/security/ssl/SSLCipher$StreamWriteCipherGenerator$StreamWriteCipher;
0 4 1 authenticator Lsun/security/ssl/Authenticator;
0 4 2 protocolVersion Lsun/security/ssl/ProtocolVersion;
0 4 3 algorithm Ljava/lang/String;
0 4 4 key Ljava/security/Key;
0 4 5 params Ljava/security/spec/AlgorithmParameterSpec;
0 4 6 random Ljava/security/SecureRandom;
Exceptions:
throws java.security.GeneralSecurityException
MethodParameters:
Name Flags
authenticator
protocolVersion
algorithm
key
params
random
public int encrypt(byte, java.nio.ByteBuffer);
descriptor: (BLjava/nio/ByteBuffer;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.security.ssl.SSLCipher$StreamWriteCipherGenerator$StreamWriteCipher.authenticator:Lsun/security/ssl/Authenticator;
checkcast sun.security.ssl.Authenticator$MAC
astore 3
start local 3 1: aload 3
invokeinterface sun.security.ssl.Authenticator$MAC.macAlg:()Lsun/security/ssl/CipherSuite$MacAlg;
getfield sun.security.ssl.CipherSuite$MacAlg.size:I
ifeq 4
2: aload 3
aload 2
iload 1
invokestatic sun.security.ssl.SSLCipher.addMac:(Lsun/security/ssl/Authenticator$MAC;Ljava/nio/ByteBuffer;B)V
3: goto 5
4: StackMap locals: sun.security.ssl.Authenticator$MAC
StackMap stack:
aload 0
getfield sun.security.ssl.SSLCipher$StreamWriteCipherGenerator$StreamWriteCipher.authenticator:Lsun/security/ssl/Authenticator;
invokevirtual sun.security.ssl.Authenticator.increaseSequenceNumber:()V
5: StackMap locals:
StackMap stack:
getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 8
ldc "plaintext"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 8
6: ldc "Padded plaintext before ENCRYPTION"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
aastore
7: invokestatic sun.security.ssl.SSLLogger.finest:(Ljava/lang/String;[Ljava/lang/Object;)V
8: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
istore 4
start local 4 9: aload 2
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
astore 5
start local 5 10: iload 4
aload 0
getfield sun.security.ssl.SSLCipher$StreamWriteCipherGenerator$StreamWriteCipher.cipher:Ljavax/crypto/Cipher;
aload 5
aload 2
invokevirtual javax.crypto.Cipher.update:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
if_icmpeq 14
11: new java.lang.RuntimeException
dup
12: ldc "Unexpected number of plaintext bytes"
13: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals: int java.nio.ByteBuffer
StackMap stack:
aload 2
invokevirtual java.nio.ByteBuffer.position:()I
aload 5
invokevirtual java.nio.ByteBuffer.position:()I
if_icmpeq 22
15: new java.lang.RuntimeException
dup
16: ldc "Unexpected ByteBuffer position"
17: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals:
StackMap stack: javax.crypto.ShortBufferException
astore 6
start local 6 19: 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
20: aload 0
getfield sun.security.ssl.SSLCipher$StreamWriteCipherGenerator$StreamWriteCipher.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 6
21: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 22: StackMap locals:
StackMap stack:
iload 4
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 23 0 this Lsun/security/ssl/SSLCipher$StreamWriteCipherGenerator$StreamWriteCipher;
0 23 1 contentType B
0 23 2 bb Ljava/nio/ByteBuffer;
1 23 3 signer Lsun/security/ssl/Authenticator$MAC;
9 23 4 len I
10 23 5 dup Ljava/nio/ByteBuffer;
19 22 6 sbe Ljavax/crypto/ShortBufferException;
Exception table:
from to target type
10 18 18 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$StreamWriteCipherGenerator$StreamWriteCipher.cipher:Ljavax/crypto/Cipher;
ifnull 4
1: aload 0
getfield sun.security.ssl.SSLCipher$StreamWriteCipherGenerator$StreamWriteCipher.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$StreamWriteCipherGenerator$StreamWriteCipher;
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: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/SSLCipher$StreamWriteCipherGenerator$StreamWriteCipher;
int calculateFragmentSize(int, int);
descriptor: (II)I
flags: (0x0000)
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.security.ssl.SSLCipher$StreamWriteCipherGenerator$StreamWriteCipher.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: iload 1
iload 2
isub
iload 3
isub
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/SSLCipher$StreamWriteCipherGenerator$StreamWriteCipher;
0 2 1 packetLimit I
0 2 2 headerSize I
1 2 3 macLen I
MethodParameters:
Name Flags
packetLimit
headerSize
int calculatePacketSize(int, int);
descriptor: (II)I
flags: (0x0000)
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.security.ssl.SSLCipher$StreamWriteCipherGenerator$StreamWriteCipher.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: iload 1
iload 2
iadd
iload 3
iadd
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/SSLCipher$StreamWriteCipherGenerator$StreamWriteCipher;
0 2 1 fragmentSize I
0 2 2 headerSize I
1 2 3 macLen I
MethodParameters:
Name Flags
fragmentSize
headerSize
}
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 StreamWriteCipherGenerator = sun.security.ssl.SSLCipher$StreamWriteCipherGenerator of sun.security.ssl.SSLCipher
final StreamWriteCipher = sun.security.ssl.SSLCipher$StreamWriteCipherGenerator$StreamWriteCipher of sun.security.ssl.SSLCipher$StreamWriteCipherGenerator