final class sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher 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$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher
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 int tagSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.security.Key key;
descriptor: Ljava/security/Key;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final byte[] iv;
descriptor: [B
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$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.cipher:Ljavax/crypto/Cipher;
2: aload 0
aload 3
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
bipush 16
putfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.tagSize:I
3: aload 0
aload 5
putfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.key:Ljava/security/Key;
4: aload 0
aload 6
checkcast javax.crypto.spec.IvParameterSpec
invokevirtual javax.crypto.spec.IvParameterSpec.getIV:()[B
putfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.iv:[B
5: aload 0
aload 7
putfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.random:Ljava/security/SecureRandom;
6: aload 0
getstatic sun.security.ssl.SSLCipher.cipherLimits:Ljava/util/HashMap;
7: new java.lang.StringBuilder
dup
aload 4
invokevirtual java.lang.String.toUpperCase:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic sun.security.ssl.SSLCipher.tag:[Ljava/lang/String;
iconst_0
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
lconst_0
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
8: invokevirtual java.util.HashMap.getOrDefault:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
putfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.keyLimitCountdown:J
9: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 14
ldc "ssl"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 14
10: new java.lang.StringBuilder
dup
ldc "algorithm = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.String.toUpperCase:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
11: ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic sun.security.ssl.SSLCipher.tag:[Ljava/lang/String;
iconst_0
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\ncountdown value = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
12: aload 0
getfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.keyLimitCountdown:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
13: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
14: StackMap locals: sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher 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$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.keyLimitCountdown:J
lconst_0
lcmp
ifle 16
15: aload 0
iconst_1
putfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.keyLimitEnabled:Z
16: StackMap locals:
StackMap stack:
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 17 0 this Lsun/security/ssl/SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher;
0 17 1 authenticator Lsun/security/ssl/Authenticator;
0 17 2 protocolVersion Lsun/security/ssl/ProtocolVersion;
0 17 3 sslCipher Lsun/security/ssl/SSLCipher;
0 17 4 algorithm Ljava/lang/String;
0 17 5 key Ljava/security/Key;
0 17 6 params Ljava/security/spec/AlgorithmParameterSpec;
0 17 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=12, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.authenticator:Lsun/security/ssl/Authenticator;
invokevirtual sun.security.ssl.Authenticator.sequenceNumber:()[B
astore 3
start local 3 1: aload 0
getfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.iv:[B
arraylength
newarray 8
astore 4
start local 4 2: aload 3
iconst_0
aload 4
aload 4
arraylength
aload 3
arraylength
isub
3: aload 3
arraylength
4: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: iconst_0
istore 5
start local 5 6: goto 9
7: StackMap locals: byte[] byte[] int
StackMap stack:
aload 4
iload 5
dup2
baload
aload 0
getfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.iv:[B
iload 5
baload
ixor
i2b
bastore
8: iinc 5 1
StackMap locals:
StackMap stack:
9: iload 5
aload 4
arraylength
if_icmplt 7
end local 5 10: new javax.crypto.spec.IvParameterSpec
dup
aload 4
invokespecial javax.crypto.spec.IvParameterSpec.<init>:([B)V
astore 5
start local 5 11: aload 0
getfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.cipher:Ljavax/crypto/Cipher;
iconst_1
aload 0
getfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.key:Ljava/security/Key;
aload 5
aload 0
getfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.random:Ljava/security/SecureRandom;
invokevirtual javax.crypto.Cipher.init:(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
12: goto 17
13: StackMap locals: sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher int java.nio.ByteBuffer byte[] byte[] java.security.spec.AlgorithmParameterSpec
StackMap stack: java.security.GeneralSecurityException
astore 6
start local 6 14: new java.lang.RuntimeException
dup
15: ldc "invalid key or spec in AEAD mode"
aload 6
16: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 17: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.cipher:Ljavax/crypto/Cipher;
aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
invokevirtual javax.crypto.Cipher.getOutputSize:(I)I
istore 6
start local 6 18: aload 0
getfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.authenticator:Lsun/security/ssl/Authenticator;
19: iload 1
iload 6
aload 3
20: invokevirtual sun.security.ssl.Authenticator.acquireAuthenticationBytes:(BI[B)[B
astore 7
start local 7 21: aload 0
getfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.cipher:Ljavax/crypto/Cipher;
aload 7
invokevirtual javax.crypto.Cipher.updateAAD:([B)V
22: aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
istore 8
start local 8 23: aload 2
invokevirtual java.nio.ByteBuffer.position:()I
istore 9
start local 9 24: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 28
ldc "plaintext"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 28
25: ldc "Plaintext before ENCRYPTION"
iconst_1
anewarray java.lang.Object
dup
iconst_0
26: aload 2
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
aastore
27: invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
28: StackMap locals: sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher int java.nio.ByteBuffer byte[] byte[] java.security.spec.AlgorithmParameterSpec int byte[] int int
StackMap stack:
aload 2
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
astore 10
start local 10 29: iload 6
aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
if_icmple 31
30: aload 2
iload 9
iload 6
iadd
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/ByteBuffer;
pop
31: StackMap locals: java.nio.ByteBuffer
StackMap stack:
aload 0
getfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.cipher:Ljavax/crypto/Cipher;
aload 10
aload 2
invokevirtual javax.crypto.Cipher.doFinal:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
istore 8
32: goto 40
33: StackMap locals:
StackMap stack: java.security.GeneralSecurityException
astore 11
start local 11 34: new java.lang.RuntimeException
dup
35: new java.lang.StringBuilder
dup
ldc "Cipher error in AEAD mode in JCE provider "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
36: aload 0
getfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.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;
37: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
38: aload 11
39: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 11 40: StackMap locals:
StackMap stack:
iload 8
iload 6
if_icmpeq 46
41: new java.lang.RuntimeException
dup
42: new java.lang.StringBuilder
dup
ldc "Cipher buffering error in JCE provider "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
43: aload 0
getfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.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;
44: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
45: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
46: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.keyLimitEnabled:Z
ifeq 48
47: aload 0
dup
getfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.keyLimitCountdown:J
iload 8
i2l
lsub
putfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.keyLimitCountdown:J
48: StackMap locals:
StackMap stack:
iload 8
ireturn
end local 10 end local 9 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 49 0 this Lsun/security/ssl/SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher;
0 49 1 contentType B
0 49 2 bb Ljava/nio/ByteBuffer;
1 49 3 sn [B
2 49 4 nonce [B
6 10 5 i I
11 49 5 spec Ljava/security/spec/AlgorithmParameterSpec;
14 17 6 ikae Ljava/security/GeneralSecurityException;
18 49 6 outputSize I
21 49 7 aad [B
23 49 8 len I
24 49 9 pos I
29 49 10 dup Ljava/nio/ByteBuffer;
34 40 11 ibse Ljava/security/GeneralSecurityException;
Exception table:
from to target type
11 12 13 Class java.security.InvalidKeyException
11 12 13 Class java.security.InvalidAlgorithmParameterException
31 32 33 Class javax.crypto.IllegalBlockSizeException
31 32 33 Class javax.crypto.BadPaddingException
31 32 33 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$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.cipher:Ljavax/crypto/Cipher;
ifnull 4
1: aload 0
getfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.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$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher;
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$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher;
int calculateFragmentSize(int, int);
descriptor: (II)I
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iload 2
isub
aload 0
getfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.tagSize:I
isub
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher;
0 1 1 packetLimit I
0 1 2 headerSize I
MethodParameters:
Name Flags
packetLimit
headerSize
int calculatePacketSize(int, int);
descriptor: (II)I
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iload 2
iadd
aload 0
getfield sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher.tagSize:I
iadd
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher;
0 1 1 fragmentSize I
0 1 2 headerSize I
MethodParameters:
Name Flags
fragmentSize
headerSize
}
SourceFile: "SSLCipher.java"
NestHost: sun.security.ssl.SSLCipher
InnerClasses:
abstract SSLWriteCipher = sun.security.ssl.SSLCipher$SSLWriteCipher of sun.security.ssl.SSLCipher
private final T13CC20P1305WriteCipherGenerator = sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator of sun.security.ssl.SSLCipher
private final CC20P1305WriteCipher = sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator$CC20P1305WriteCipher of sun.security.ssl.SSLCipher$T13CC20P1305WriteCipherGenerator