class com.sun.crypto.provider.CounterMode extends com.sun.crypto.provider.FeedbackCipher
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: com.sun.crypto.provider.CounterMode
  super_class: com.sun.crypto.provider.FeedbackCipher
{
  final byte[] counter;
    descriptor: [B
    flags: (0x0010) 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 // com.sun.crypto.provider.CounterMode this
        start local 1 // com.sun.crypto.provider.SymmetricCipher embeddedCipher
         0: .line 62
            aload 0 /* this */
            aload 1 /* embeddedCipher */
            invokespecial com.sun.crypto.provider.FeedbackCipher.<init>:(Lcom/sun/crypto/provider/SymmetricCipher;)V
         1: .line 57
            aload 0 /* this */
            aconst_null
            putfield com.sun.crypto.provider.CounterMode.counterSave:[B
         2: .line 58
            aload 0 /* this */
            aconst_null
            putfield com.sun.crypto.provider.CounterMode.encryptedCounterSave:[B
         3: .line 59
            aload 0 /* this */
            iconst_0
            putfield com.sun.crypto.provider.CounterMode.usedSave:I
         4: .line 63
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.blockSize:I
            newarray 8
            putfield com.sun.crypto.provider.CounterMode.counter:[B
         5: .line 64
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.blockSize:I
            newarray 8
            putfield com.sun.crypto.provider.CounterMode.encryptedCounter:[B
         6: .line 65
            return
        end local 1 // com.sun.crypto.provider.SymmetricCipher embeddedCipher
        end local 0 // com.sun.crypto.provider.CounterMode this
      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 // com.sun.crypto.provider.CounterMode this
         0: .line 73
            ldc "CTR"
            areturn
        end local 0 // com.sun.crypto.provider.CounterMode this
      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 // com.sun.crypto.provider.CounterMode this
         0: .line 82
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.iv:[B
            iconst_0
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.counter:[B
            iconst_0
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.blockSize:I
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
         1: .line 83
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.blockSize:I
            putfield com.sun.crypto.provider.CounterMode.used:I
         2: .line 84
            return
        end local 0 // com.sun.crypto.provider.CounterMode this
      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 // com.sun.crypto.provider.CounterMode this
         0: .line 90
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.counterSave:[B
            ifnonnull 3
         1: .line 91
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.blockSize:I
            newarray 8
            putfield com.sun.crypto.provider.CounterMode.counterSave:[B
         2: .line 92
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.blockSize:I
            newarray 8
            putfield com.sun.crypto.provider.CounterMode.encryptedCounterSave:[B
         3: .line 94
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.counter:[B
            iconst_0
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.counterSave:[B
            iconst_0
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.blockSize:I
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
         4: .line 95
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.encryptedCounter:[B
            iconst_0
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.encryptedCounterSave:[B
            iconst_0
         5: .line 96
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.blockSize:I
         6: .line 95
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
         7: .line 97
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.used:I
            putfield com.sun.crypto.provider.CounterMode.usedSave:I
         8: .line 98
            return
        end local 0 // com.sun.crypto.provider.CounterMode this
      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 // com.sun.crypto.provider.CounterMode this
         0: .line 104
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.counterSave:[B
            iconst_0
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.counter:[B
            iconst_0
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.blockSize:I
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
         1: .line 105
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.encryptedCounterSave:[B
            iconst_0
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.encryptedCounter:[B
            iconst_0
         2: .line 106
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.blockSize:I
         3: .line 105
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
         4: .line 107
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.usedSave:I
            putfield com.sun.crypto.provider.CounterMode.used:I
         5: .line 108
            return
        end local 0 // com.sun.crypto.provider.CounterMode this
      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 // com.sun.crypto.provider.CounterMode this
        start local 1 // boolean decrypting
        start local 2 // java.lang.String algorithm
        start local 3 // byte[] key
        start local 4 // byte[] iv
         0: .line 124
            aload 3 /* key */
            ifnull 1
            aload 4 /* iv */
            ifnull 1
            aload 4 /* iv */
            arraylength
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.blockSize:I
            if_icmpeq 2
         1: .line 125
      StackMap locals:
      StackMap stack:
            new java.security.InvalidKeyException
            dup
            ldc "Internal error"
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 127
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 4 /* iv */
            putfield com.sun.crypto.provider.CounterMode.iv:[B
         3: .line 128
            aload 0 /* this */
            invokevirtual com.sun.crypto.provider.CounterMode.reset:()V
         4: .line 130
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.embeddedCipher:Lcom/sun/crypto/provider/SymmetricCipher;
            iconst_0
            aload 2 /* algorithm */
            aload 3 /* key */
            invokevirtual com.sun.crypto.provider.SymmetricCipher.init:(ZLjava/lang/String;[B)V
         5: .line 131
            return
        end local 4 // byte[] iv
        end local 3 // byte[] key
        end local 2 // java.lang.String algorithm
        end local 1 // boolean decrypting
        end local 0 // com.sun.crypto.provider.CounterMode this
      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 // com.sun.crypto.provider.CounterMode this
        start local 1 // byte[] in
        start local 2 // int inOff
        start local 3 // int len
        start local 4 // byte[] out
        start local 5 // int outOff
         0: .line 150
            aload 0 /* this */
            aload 1 /* in */
            iload 2 /* inOff */
            iload 3 /* len */
            aload 4 /* out */
            iload 5 /* outOff */
            invokevirtual com.sun.crypto.provider.CounterMode.crypt:([BII[BI)I
            ireturn
        end local 5 // int outOff
        end local 4 // byte[] out
        end local 3 // int len
        end local 2 // int inOff
        end local 1 // byte[] in
        end local 0 // com.sun.crypto.provider.CounterMode this
      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 // com.sun.crypto.provider.CounterMode this
        start local 1 // byte[] in
        start local 2 // int inOff
        start local 3 // int len
        start local 4 // byte[] out
        start local 5 // int outOff
         0: .line 155
            aload 0 /* this */
            aload 1 /* in */
            iload 2 /* inOff */
            iload 3 /* len */
            aload 4 /* out */
            iload 5 /* outOff */
            invokevirtual com.sun.crypto.provider.CounterMode.crypt:([BII[BI)I
            ireturn
        end local 5 // int outOff
        end local 4 // byte[] out
        end local 3 // int len
        end local 2 // int inOff
        end local 1 // byte[] in
        end local 0 // com.sun.crypto.provider.CounterMode this
      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 // byte[] b
         0: .line 162
            aload 0 /* b */
            arraylength
            iconst_1
            isub
            istore 1 /* n */
        start local 1 // int n
         1: .line 163
            goto 3
         2: .line 164
      StackMap locals: int
      StackMap stack:
            iinc 1 /* n */ -1
         3: .line 163
      StackMap locals:
      StackMap stack:
            iload 1 /* n */
            iflt 4
            aload 0 /* b */
            iload 1 /* n */
            dup2
            baload
            iconst_1
            iadd
            i2b
            dup_x2
            bastore
            ifeq 2
         4: .line 166
      StackMap locals:
      StackMap stack:
            return
        end local 1 // int n
        end local 0 // byte[] b
      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=6, locals=6, args_size=6
        start local 0 // com.sun.crypto.provider.CounterMode this
        start local 1 // byte[] in
        start local 2 // int inOff
        start local 3 // int len
        start local 4 // byte[] out
        start local 5 // int outOff
         0: .line 175
            iload 3 /* len */
            ifne 2
         1: .line 176
            iconst_0
            ireturn
         2: .line 179
      StackMap locals:
      StackMap stack:
            aload 1 /* in */
            iload 2 /* inOff */
            iload 3 /* len */
            invokestatic sun.security.util.ArrayUtil.nullAndBoundsCheck:([BII)V
         3: .line 180
            aload 4 /* out */
            iload 5 /* outOff */
            iload 3 /* len */
            invokestatic sun.security.util.ArrayUtil.nullAndBoundsCheck:([BII)V
         4: .line 181
            aload 0 /* this */
            aload 1 /* in */
            iload 2 /* inOff */
            iload 3 /* len */
            aload 4 /* out */
            iload 5 /* outOff */
            invokevirtual com.sun.crypto.provider.CounterMode.implCrypt:([BII[BI)I
            ireturn
        end local 5 // int outOff
        end local 4 // byte[] out
        end local 3 // int len
        end local 2 // int inOff
        end local 1 // byte[] in
        end local 0 // com.sun.crypto.provider.CounterMode this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    5     0    this  Lcom/sun/crypto/provider/CounterMode;
            0    5     1      in  [B
            0    5     2   inOff  I
            0    5     3     len  I
            0    5     4     out  [B
            0    5     5  outOff  I
    MethodParameters:
        Name  Flags
      in      
      inOff   
      len     
      out     
      outOff  

  private int implCrypt(byte[], int, int, byte[], int);
    descriptor: ([BII[BI)I
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=8, locals=7, args_size=6
        start local 0 // com.sun.crypto.provider.CounterMode this
        start local 1 // byte[] in
        start local 2 // int inOff
        start local 3 // int len
        start local 4 // byte[] out
        start local 5 // int outOff
         0: .line 187
            iload 3 /* len */
            istore 6 /* result */
        start local 6 // int result
         1: .line 188
            goto 7
         2: .line 189
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.used:I
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.blockSize:I
            if_icmplt 6
         3: .line 190
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.embeddedCipher:Lcom/sun/crypto/provider/SymmetricCipher;
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.counter:[B
            iconst_0
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.encryptedCounter:[B
            iconst_0
            invokevirtual com.sun.crypto.provider.SymmetricCipher.encryptBlock:([BI[BI)V
         4: .line 191
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.counter:[B
            invokestatic com.sun.crypto.provider.CounterMode.increment:([B)V
         5: .line 192
            aload 0 /* this */
            iconst_0
            putfield com.sun.crypto.provider.CounterMode.used:I
         6: .line 194
      StackMap locals:
      StackMap stack:
            aload 4 /* out */
            iload 5 /* outOff */
            iinc 5 /* outOff */ 1
            aload 1 /* in */
            iload 2 /* inOff */
            iinc 2 /* inOff */ 1
            baload
            aload 0 /* this */
            getfield com.sun.crypto.provider.CounterMode.encryptedCounter:[B
            aload 0 /* this */
            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
         7: .line 188
      StackMap locals:
      StackMap stack:
            iload 3 /* len */
            iinc 3 /* len */ -1
            ifgt 2
         8: .line 196
            iload 6 /* result */
            ireturn
        end local 6 // int result
        end local 5 // int outOff
        end local 4 // byte[] out
        end local 3 // int len
        end local 2 // int inOff
        end local 1 // byte[] in
        end local 0 // com.sun.crypto.provider.CounterMode this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    9     0    this  Lcom/sun/crypto/provider/CounterMode;
            0    9     1      in  [B
            0    9     2   inOff  I
            0    9     3     len  I
            0    9     4     out  [B
            0    9     5  outOff  I
            1    9     6  result  I
    RuntimeVisibleAnnotations: 
      jdk.internal.HotSpotIntrinsicCandidate()
    MethodParameters:
        Name  Flags
      in      
      inOff   
      len     
      out     
      outOff  
}
SourceFile: "CounterMode.java"