public class org.h2.security.SecureFileStore extends org.h2.store.FileStore
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.h2.security.SecureFileStore
  super_class: org.h2.store.FileStore
{
  private byte[] key;
    descriptor: [B
    flags: (0x0002) ACC_PRIVATE

  private final org.h2.security.BlockCipher cipher;
    descriptor: Lorg/h2/security/BlockCipher;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final org.h2.security.BlockCipher cipherForInitVector;
    descriptor: Lorg/h2/security/BlockCipher;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private byte[] buffer;
    descriptor: [B
    flags: (0x0002) ACC_PRIVATE

  private long pos;
    descriptor: J
    flags: (0x0002) ACC_PRIVATE

  private final byte[] bufferForInitVector;
    descriptor: [B
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final int keyIterations;
    descriptor: I
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  public void <init>(org.h2.store.DataHandler, java.lang.String, java.lang.String, java.lang.String, byte[], int);
    descriptor: (Lorg/h2/store/DataHandler;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[BI)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=7, args_size=7
        start local 0 // org.h2.security.SecureFileStore this
        start local 1 // org.h2.store.DataHandler handler
        start local 2 // java.lang.String name
        start local 3 // java.lang.String mode
        start local 4 // java.lang.String cipher
        start local 5 // byte[] key
        start local 6 // int keyIterations
         0: .line 31
            aload 0 /* this */
            aload 1 /* handler */
            aload 2 /* name */
            aload 3 /* mode */
            invokespecial org.h2.store.FileStore.<init>:(Lorg/h2/store/DataHandler;Ljava/lang/String;Ljava/lang/String;)V
         1: .line 24
            aload 0 /* this */
            iconst_4
            newarray 8
            putfield org.h2.security.SecureFileStore.buffer:[B
         2: .line 32
            aload 0 /* this */
            aload 5 /* key */
            putfield org.h2.security.SecureFileStore.key:[B
         3: .line 33
            aload 0 /* this */
            aload 4 /* cipher */
            invokestatic org.h2.security.CipherFactory.getBlockCipher:(Ljava/lang/String;)Lorg/h2/security/BlockCipher;
            putfield org.h2.security.SecureFileStore.cipher:Lorg/h2/security/BlockCipher;
         4: .line 34
            aload 0 /* this */
            aload 4 /* cipher */
            invokestatic org.h2.security.CipherFactory.getBlockCipher:(Ljava/lang/String;)Lorg/h2/security/BlockCipher;
            putfield org.h2.security.SecureFileStore.cipherForInitVector:Lorg/h2/security/BlockCipher;
         5: .line 35
            aload 0 /* this */
            iload 6 /* keyIterations */
            putfield org.h2.security.SecureFileStore.keyIterations:I
         6: .line 36
            aload 0 /* this */
            bipush 16
            newarray 8
            putfield org.h2.security.SecureFileStore.bufferForInitVector:[B
         7: .line 37
            return
        end local 6 // int keyIterations
        end local 5 // byte[] key
        end local 4 // java.lang.String cipher
        end local 3 // java.lang.String mode
        end local 2 // java.lang.String name
        end local 1 // org.h2.store.DataHandler handler
        end local 0 // org.h2.security.SecureFileStore this
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0    8     0           this  Lorg/h2/security/SecureFileStore;
            0    8     1        handler  Lorg/h2/store/DataHandler;
            0    8     2           name  Ljava/lang/String;
            0    8     3           mode  Ljava/lang/String;
            0    8     4         cipher  Ljava/lang/String;
            0    8     5            key  [B
            0    8     6  keyIterations  I
    MethodParameters:
               Name  Flags
      handler        
      name           
      mode           
      cipher         
      key            
      keyIterations  

  protected byte[] generateSalt();
    descriptor: ()[B
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.h2.security.SecureFileStore this
         0: .line 41
            bipush 16
            invokestatic org.h2.util.MathUtils.secureRandomBytes:(I)[B
            areturn
        end local 0 // org.h2.security.SecureFileStore this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/h2/security/SecureFileStore;

  protected void initKey(byte[]);
    descriptor: ([B)V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // org.h2.security.SecureFileStore this
        start local 1 // byte[] salt
         0: .line 46
            aload 0 /* this */
            aload 0 /* this */
            getfield org.h2.security.SecureFileStore.key:[B
            aload 1 /* salt */
            invokestatic org.h2.security.SHA256.getHashWithSalt:([B[B)[B
            putfield org.h2.security.SecureFileStore.key:[B
         1: .line 47
            iconst_0
            istore 2 /* i */
        start local 2 // int i
         2: goto 5
         3: .line 48
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield org.h2.security.SecureFileStore.key:[B
            iconst_1
            invokestatic org.h2.security.SHA256.getHash:([BZ)[B
            putfield org.h2.security.SecureFileStore.key:[B
         4: .line 47
            iinc 2 /* i */ 1
      StackMap locals:
      StackMap stack:
         5: iload 2 /* i */
            aload 0 /* this */
            getfield org.h2.security.SecureFileStore.keyIterations:I
            if_icmplt 3
        end local 2 // int i
         6: .line 50
            aload 0 /* this */
            getfield org.h2.security.SecureFileStore.cipher:Lorg/h2/security/BlockCipher;
            aload 0 /* this */
            getfield org.h2.security.SecureFileStore.key:[B
            invokeinterface org.h2.security.BlockCipher.setKey:([B)V
         7: .line 51
            aload 0 /* this */
            aload 0 /* this */
            getfield org.h2.security.SecureFileStore.key:[B
            iconst_1
            invokestatic org.h2.security.SHA256.getHash:([BZ)[B
            putfield org.h2.security.SecureFileStore.key:[B
         8: .line 52
            aload 0 /* this */
            getfield org.h2.security.SecureFileStore.cipherForInitVector:Lorg/h2/security/BlockCipher;
            aload 0 /* this */
            getfield org.h2.security.SecureFileStore.key:[B
            invokeinterface org.h2.security.BlockCipher.setKey:([B)V
         9: .line 53
            return
        end local 1 // byte[] salt
        end local 0 // org.h2.security.SecureFileStore this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   10     0  this  Lorg/h2/security/SecureFileStore;
            0   10     1  salt  [B
            2    6     2     i  I
    MethodParameters:
      Name  Flags
      salt  

  protected void writeDirect(byte[], int, int);
    descriptor: ([BII)V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=5, locals=4, args_size=4
        start local 0 // org.h2.security.SecureFileStore this
        start local 1 // byte[] b
        start local 2 // int off
        start local 3 // int len
         0: .line 57
            aload 0 /* this */
            aload 1 /* b */
            iload 2 /* off */
            iload 3 /* len */
            invokespecial org.h2.store.FileStore.write:([BII)V
         1: .line 58
            aload 0 /* this */
            dup
            getfield org.h2.security.SecureFileStore.pos:J
            iload 3 /* len */
            i2l
            ladd
            putfield org.h2.security.SecureFileStore.pos:J
         2: .line 59
            return
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] b
        end local 0 // org.h2.security.SecureFileStore this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/h2/security/SecureFileStore;
            0    3     1     b  [B
            0    3     2   off  I
            0    3     3   len  I
    MethodParameters:
      Name  Flags
      b     
      off   
      len   

  public void write(byte[], int, int);
    descriptor: ([BII)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=4, args_size=4
        start local 0 // org.h2.security.SecureFileStore this
        start local 1 // byte[] b
        start local 2 // int off
        start local 3 // int len
         0: .line 63
            aload 0 /* this */
            getfield org.h2.security.SecureFileStore.buffer:[B
            arraylength
            aload 1 /* b */
            arraylength
            if_icmpge 2
         1: .line 64
            aload 0 /* this */
            iload 3 /* len */
            newarray 8
            putfield org.h2.security.SecureFileStore.buffer:[B
         2: .line 66
      StackMap locals:
      StackMap stack:
            aload 1 /* b */
            iload 2 /* off */
            aload 0 /* this */
            getfield org.h2.security.SecureFileStore.buffer:[B
            iconst_0
            iload 3 /* len */
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
         3: .line 67
            aload 0 /* this */
            aload 0 /* this */
            getfield org.h2.security.SecureFileStore.buffer:[B
            iconst_0
            iload 3 /* len */
            aload 0 /* this */
            getfield org.h2.security.SecureFileStore.pos:J
            invokevirtual org.h2.security.SecureFileStore.xorInitVector:([BIIJ)V
         4: .line 68
            aload 0 /* this */
            getfield org.h2.security.SecureFileStore.cipher:Lorg/h2/security/BlockCipher;
            aload 0 /* this */
            getfield org.h2.security.SecureFileStore.buffer:[B
            iconst_0
            iload 3 /* len */
            invokeinterface org.h2.security.BlockCipher.encrypt:([BII)V
         5: .line 69
            aload 0 /* this */
            aload 0 /* this */
            getfield org.h2.security.SecureFileStore.buffer:[B
            iconst_0
            iload 3 /* len */
            invokespecial org.h2.store.FileStore.write:([BII)V
         6: .line 70
            aload 0 /* this */
            dup
            getfield org.h2.security.SecureFileStore.pos:J
            iload 3 /* len */
            i2l
            ladd
            putfield org.h2.security.SecureFileStore.pos:J
         7: .line 71
            return
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] b
        end local 0 // org.h2.security.SecureFileStore this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    8     0  this  Lorg/h2/security/SecureFileStore;
            0    8     1     b  [B
            0    8     2   off  I
            0    8     3   len  I
    MethodParameters:
      Name  Flags
      b     
      off   
      len   

  protected void readFullyDirect(byte[], int, int);
    descriptor: ([BII)V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=5, locals=4, args_size=4
        start local 0 // org.h2.security.SecureFileStore this
        start local 1 // byte[] b
        start local 2 // int off
        start local 3 // int len
         0: .line 75
            aload 0 /* this */
            aload 1 /* b */
            iload 2 /* off */
            iload 3 /* len */
            invokespecial org.h2.store.FileStore.readFully:([BII)V
         1: .line 76
            aload 0 /* this */
            dup
            getfield org.h2.security.SecureFileStore.pos:J
            iload 3 /* len */
            i2l
            ladd
            putfield org.h2.security.SecureFileStore.pos:J
         2: .line 77
            return
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] b
        end local 0 // org.h2.security.SecureFileStore this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/h2/security/SecureFileStore;
            0    3     1     b  [B
            0    3     2   off  I
            0    3     3   len  I
    MethodParameters:
      Name  Flags
      b     
      off   
      len   

  public void readFully(byte[], int, int);
    descriptor: ([BII)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=5, args_size=4
        start local 0 // org.h2.security.SecureFileStore this
        start local 1 // byte[] b
        start local 2 // int off
        start local 3 // int len
         0: .line 81
            aload 0 /* this */
            aload 1 /* b */
            iload 2 /* off */
            iload 3 /* len */
            invokespecial org.h2.store.FileStore.readFully:([BII)V
         1: .line 82
            iconst_0
            istore 4 /* i */
        start local 4 // int i
         2: goto 8
         3: .line 83
      StackMap locals: int
      StackMap stack:
            aload 1 /* b */
            iload 4 /* i */
            baload
            ifeq 7
         4: .line 84
            aload 0 /* this */
            getfield org.h2.security.SecureFileStore.cipher:Lorg/h2/security/BlockCipher;
            aload 1 /* b */
            iload 2 /* off */
            iload 3 /* len */
            invokeinterface org.h2.security.BlockCipher.decrypt:([BII)V
         5: .line 85
            aload 0 /* this */
            aload 1 /* b */
            iload 2 /* off */
            iload 3 /* len */
            aload 0 /* this */
            getfield org.h2.security.SecureFileStore.pos:J
            invokevirtual org.h2.security.SecureFileStore.xorInitVector:([BIIJ)V
         6: .line 86
            goto 9
         7: .line 82
      StackMap locals:
      StackMap stack:
            iinc 4 /* i */ 1
      StackMap locals:
      StackMap stack:
         8: iload 4 /* i */
            iload 3 /* len */
            if_icmplt 3
        end local 4 // int i
         9: .line 89
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            dup
            getfield org.h2.security.SecureFileStore.pos:J
            iload 3 /* len */
            i2l
            ladd
            putfield org.h2.security.SecureFileStore.pos:J
        10: .line 90
            return
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] b
        end local 0 // org.h2.security.SecureFileStore this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   11     0  this  Lorg/h2/security/SecureFileStore;
            0   11     1     b  [B
            0   11     2   off  I
            0   11     3   len  I
            2    9     4     i  I
    MethodParameters:
      Name  Flags
      b     
      off   
      len   

  public void seek(long);
    descriptor: (J)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // org.h2.security.SecureFileStore this
        start local 1 // long x
         0: .line 94
            aload 0 /* this */
            lload 1 /* x */
            putfield org.h2.security.SecureFileStore.pos:J
         1: .line 95
            aload 0 /* this */
            lload 1 /* x */
            invokespecial org.h2.store.FileStore.seek:(J)V
         2: .line 96
            return
        end local 1 // long x
        end local 0 // org.h2.security.SecureFileStore this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/h2/security/SecureFileStore;
            0    3     1     x  J
    MethodParameters:
      Name  Flags
      x     

  private void xorInitVector(byte[], int, int, long);
    descriptor: ([BIIJ)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=6, locals=8, args_size=5
        start local 0 // org.h2.security.SecureFileStore this
        start local 1 // byte[] b
        start local 2 // int off
        start local 3 // int len
        start local 4 // long p
         0: .line 99
            aload 0 /* this */
            getfield org.h2.security.SecureFileStore.bufferForInitVector:[B
            astore 6 /* iv */
        start local 6 // byte[] iv
         1: .line 100
            goto 16
         2: .line 101
      StackMap locals: byte[]
      StackMap stack:
            iconst_0
            istore 7 /* i */
        start local 7 // int i
         3: goto 6
         4: .line 102
      StackMap locals: int
      StackMap stack:
            aload 6 /* iv */
            iload 7 /* i */
            lload 4 /* p */
            iload 7 /* i */
            i2l
            ladd
            iconst_3
            lushr
            invokestatic org.h2.util.Bits.writeLong:([BIJ)V
         5: .line 101
            iinc 7 /* i */ 8
      StackMap locals:
      StackMap stack:
         6: iload 7 /* i */
            bipush 16
            if_icmplt 4
        end local 7 // int i
         7: .line 104
            aload 0 /* this */
            getfield org.h2.security.SecureFileStore.cipherForInitVector:Lorg/h2/security/BlockCipher;
            aload 6 /* iv */
            iconst_0
            bipush 16
            invokeinterface org.h2.security.BlockCipher.encrypt:([BII)V
         8: .line 105
            iconst_0
            istore 7 /* i */
        start local 7 // int i
         9: goto 12
        10: .line 106
      StackMap locals:
      StackMap stack:
            aload 1 /* b */
            iload 2 /* off */
            iload 7 /* i */
            iadd
            dup2
            baload
            aload 6 /* iv */
            iload 7 /* i */
            baload
            ixor
            i2b
            bastore
        11: .line 105
            iinc 7 /* i */ 1
      StackMap locals:
      StackMap stack:
        12: iload 7 /* i */
            bipush 16
            if_icmplt 10
        end local 7 // int i
        13: .line 108
            lload 4 /* p */
            ldc 16
            ladd
            lstore 4 /* p */
        14: .line 109
            iinc 2 /* off */ 16
        15: .line 110
            iinc 3 /* len */ -16
        16: .line 100
      StackMap locals:
      StackMap stack:
            iload 3 /* len */
            ifgt 2
        17: .line 112
            return
        end local 6 // byte[] iv
        end local 4 // long p
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] b
        end local 0 // org.h2.security.SecureFileStore this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   18     0  this  Lorg/h2/security/SecureFileStore;
            0   18     1     b  [B
            0   18     2   off  I
            0   18     3   len  I
            0   18     4     p  J
            1   18     6    iv  [B
            3    7     7     i  I
            9   13     7     i  I
    MethodParameters:
      Name  Flags
      b     
      off   
      len   
      p     
}
SourceFile: "SecureFileStore.java"