final class com.sun.crypto.provider.CounterMode extends com.sun.crypto.provider.FeedbackCipher
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.sun.crypto.provider.CounterMode
super_class: com.sun.crypto.provider.FeedbackCipher
{
private final byte[] counter;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final byte[] encryptedCounter;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int used;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private byte[] counterSave;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private byte[] encryptedCounterSave;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int usedSave;
descriptor: I
flags: (0x0002) ACC_PRIVATE
void <init>(com.sun.crypto.provider.SymmetricCipher);
descriptor: (Lcom/sun/crypto/provider/SymmetricCipher;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial com.sun.crypto.provider.FeedbackCipher.<init>:(Lcom/sun/crypto/provider/SymmetricCipher;)V
1: aload 0
aconst_null
putfield com.sun.crypto.provider.CounterMode.counterSave:[B
2: aload 0
aconst_null
putfield com.sun.crypto.provider.CounterMode.encryptedCounterSave:[B
3: aload 0
iconst_0
putfield com.sun.crypto.provider.CounterMode.usedSave:I
4: aload 0
aload 0
getfield com.sun.crypto.provider.CounterMode.blockSize:I
newarray 8
putfield com.sun.crypto.provider.CounterMode.counter:[B
5: aload 0
aload 0
getfield com.sun.crypto.provider.CounterMode.blockSize:I
newarray 8
putfield com.sun.crypto.provider.CounterMode.encryptedCounter:[B
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/crypto/provider/CounterMode;
0 7 1 embeddedCipher Lcom/sun/crypto/provider/SymmetricCipher;
MethodParameters:
Name Flags
embeddedCipher
java.lang.String getFeedback();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "CTR"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/crypto/provider/CounterMode;
void reset();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.CounterMode.iv:[B
iconst_0
aload 0
getfield com.sun.crypto.provider.CounterMode.counter:[B
iconst_0
aload 0
getfield com.sun.crypto.provider.CounterMode.blockSize:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
1: aload 0
aload 0
getfield com.sun.crypto.provider.CounterMode.blockSize:I
putfield com.sun.crypto.provider.CounterMode.used:I
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/crypto/provider/CounterMode;
void save();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.CounterMode.counterSave:[B
ifnonnull 3
1: aload 0
aload 0
getfield com.sun.crypto.provider.CounterMode.blockSize:I
newarray 8
putfield com.sun.crypto.provider.CounterMode.counterSave:[B
2: aload 0
aload 0
getfield com.sun.crypto.provider.CounterMode.blockSize:I
newarray 8
putfield com.sun.crypto.provider.CounterMode.encryptedCounterSave:[B
3: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CounterMode.counter:[B
iconst_0
aload 0
getfield com.sun.crypto.provider.CounterMode.counterSave:[B
iconst_0
aload 0
getfield com.sun.crypto.provider.CounterMode.blockSize:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
4: aload 0
getfield com.sun.crypto.provider.CounterMode.encryptedCounter:[B
iconst_0
aload 0
getfield com.sun.crypto.provider.CounterMode.encryptedCounterSave:[B
iconst_0
5: aload 0
getfield com.sun.crypto.provider.CounterMode.blockSize:I
6: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
7: aload 0
aload 0
getfield com.sun.crypto.provider.CounterMode.used:I
putfield com.sun.crypto.provider.CounterMode.usedSave:I
8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/crypto/provider/CounterMode;
void restore();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.CounterMode.counterSave:[B
iconst_0
aload 0
getfield com.sun.crypto.provider.CounterMode.counter:[B
iconst_0
aload 0
getfield com.sun.crypto.provider.CounterMode.blockSize:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
1: aload 0
getfield com.sun.crypto.provider.CounterMode.encryptedCounterSave:[B
iconst_0
aload 0
getfield com.sun.crypto.provider.CounterMode.encryptedCounter:[B
iconst_0
2: aload 0
getfield com.sun.crypto.provider.CounterMode.blockSize:I
3: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
4: aload 0
aload 0
getfield com.sun.crypto.provider.CounterMode.usedSave:I
putfield com.sun.crypto.provider.CounterMode.used:I
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/crypto/provider/CounterMode;
void init(boolean, java.lang.String, byte[], byte[]);
descriptor: (ZLjava/lang/String;[B[B)V
flags: (0x0000)
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 3
ifnull 1
aload 4
ifnull 1
aload 4
arraylength
aload 0
getfield com.sun.crypto.provider.CounterMode.blockSize:I
if_icmpeq 2
1: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "Internal error"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 4
putfield com.sun.crypto.provider.CounterMode.iv:[B
3: aload 0
invokevirtual com.sun.crypto.provider.CounterMode.reset:()V
4: aload 0
getfield com.sun.crypto.provider.CounterMode.embeddedCipher:Lcom/sun/crypto/provider/SymmetricCipher;
iconst_0
aload 2
aload 3
invokevirtual com.sun.crypto.provider.SymmetricCipher.init:(ZLjava/lang/String;[B)V
5: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/crypto/provider/CounterMode;
0 6 1 decrypting Z
0 6 2 algorithm Ljava/lang/String;
0 6 3 key [B
0 6 4 iv [B
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
decrypting
algorithm
key
iv
int encrypt(byte[], int, int, byte[], int);
descriptor: ([BII[BI)I
flags: (0x0000)
Code:
stack=6, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
iload 2
iload 3
aload 4
iload 5
invokevirtual com.sun.crypto.provider.CounterMode.crypt:([BII[BI)I
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 1 0 this Lcom/sun/crypto/provider/CounterMode;
0 1 1 in [B
0 1 2 inOff I
0 1 3 len I
0 1 4 out [B
0 1 5 outOff I
MethodParameters:
Name Flags
in
inOff
len
out
outOff
int decrypt(byte[], int, int, byte[], int);
descriptor: ([BII[BI)I
flags: (0x0000)
Code:
stack=6, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
iload 2
iload 3
aload 4
iload 5
invokevirtual com.sun.crypto.provider.CounterMode.crypt:([BII[BI)I
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 1 0 this Lcom/sun/crypto/provider/CounterMode;
0 1 1 in [B
0 1 2 inOff I
0 1 3 len I
0 1 4 out [B
0 1 5 outOff I
MethodParameters:
Name Flags
in
inOff
len
out
outOff
private static void increment(byte[]);
descriptor: ([B)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
arraylength
iconst_1
isub
istore 1
start local 1 1: goto 3
2: StackMap locals: int
StackMap stack:
iinc 1 -1
3: StackMap locals:
StackMap stack:
iload 1
iflt 4
aload 0
iload 1
dup2
baload
iconst_1
iadd
i2b
dup_x2
bastore
ifeq 2
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 b [B
1 5 1 n I
MethodParameters:
Name Flags
b
private int crypt(byte[], int, int, byte[], int);
descriptor: ([BII[BI)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: iload 3
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
iload 2
iload 3
invokestatic sun.security.util.ArrayUtil.nullAndBoundsCheck:([BII)V
3: aload 4
iload 5
iload 3
invokestatic sun.security.util.ArrayUtil.nullAndBoundsCheck:([BII)V
4: iload 3
istore 6
start local 6 5: goto 11
6: StackMap locals: int
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CounterMode.used:I
aload 0
getfield com.sun.crypto.provider.CounterMode.blockSize:I
if_icmplt 10
7: aload 0
getfield com.sun.crypto.provider.CounterMode.embeddedCipher:Lcom/sun/crypto/provider/SymmetricCipher;
aload 0
getfield com.sun.crypto.provider.CounterMode.counter:[B
iconst_0
aload 0
getfield com.sun.crypto.provider.CounterMode.encryptedCounter:[B
iconst_0
invokevirtual com.sun.crypto.provider.SymmetricCipher.encryptBlock:([BI[BI)V
8: aload 0
getfield com.sun.crypto.provider.CounterMode.counter:[B
invokestatic com.sun.crypto.provider.CounterMode.increment:([B)V
9: aload 0
iconst_0
putfield com.sun.crypto.provider.CounterMode.used:I
10: StackMap locals:
StackMap stack:
aload 4
iload 5
iinc 5 1
aload 1
iload 2
iinc 2 1
baload
aload 0
getfield com.sun.crypto.provider.CounterMode.encryptedCounter:[B
aload 0
dup
getfield com.sun.crypto.provider.CounterMode.used:I
dup_x1
iconst_1
iadd
putfield com.sun.crypto.provider.CounterMode.used:I
baload
ixor
i2b
bastore
11: StackMap locals:
StackMap stack:
iload 3
iinc 3 -1
ifgt 6
12: iload 6
ireturn
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 13 0 this Lcom/sun/crypto/provider/CounterMode;
0 13 1 in [B
0 13 2 inOff I
0 13 3 len I
0 13 4 out [B
0 13 5 outOff I
5 13 6 result I
MethodParameters:
Name Flags
in
inOff
len
out
outOff
}
SourceFile: "CounterMode.java"