public class org.apache.cassandra.db.commitlog.EncryptedSegment extends org.apache.cassandra.db.commitlog.FileDirectSegment
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.apache.cassandra.db.commitlog.EncryptedSegment
  super_class: org.apache.cassandra.db.commitlog.FileDirectSegment
{
  private static final org.slf4j.Logger logger;
    descriptor: Lorg/slf4j/Logger;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final int ENCRYPTED_SECTION_HEADER_SIZE;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 12

  private final org.apache.cassandra.security.EncryptionContext encryptionContext;
    descriptor: Lorg/apache/cassandra/security/EncryptionContext;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final javax.crypto.Cipher cipher;
    descriptor: Ljavax/crypto/Cipher;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  static final boolean $assertionsDisabled;
    descriptor: Z
    flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 58
            ldc Lorg/apache/cassandra/db/commitlog/EncryptedSegment;
            invokevirtual java.lang.Class.desiredAssertionStatus:()Z
            ifne 1
            iconst_1
            goto 2
      StackMap locals:
      StackMap stack:
         1: iconst_0
      StackMap locals:
      StackMap stack: int
         2: putstatic org.apache.cassandra.db.commitlog.EncryptedSegment.$assertionsDisabled:Z
         3: .line 60
            ldc Lorg/apache/cassandra/db/commitlog/EncryptedSegment;
            invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
            putstatic org.apache.cassandra.db.commitlog.EncryptedSegment.logger:Lorg/slf4j/Logger;
         4: .line 62
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>(org.apache.cassandra.db.commitlog.CommitLog, org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager);
    descriptor: (Lorg/apache/cassandra/db/commitlog/CommitLog;Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=4, args_size=3
        start local 0 // org.apache.cassandra.db.commitlog.EncryptedSegment this
        start local 1 // org.apache.cassandra.db.commitlog.CommitLog commitLog
        start local 2 // org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager manager
         0: .line 69
            aload 0 /* this */
            aload 1 /* commitLog */
            aload 2 /* manager */
            invokespecial org.apache.cassandra.db.commitlog.FileDirectSegment.<init>:(Lorg/apache/cassandra/db/commitlog/CommitLog;Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;)V
         1: .line 70
            aload 0 /* this */
            aload 1 /* commitLog */
            getfield org.apache.cassandra.db.commitlog.CommitLog.configuration:Lorg/apache/cassandra/db/commitlog/CommitLog$Configuration;
            invokevirtual org.apache.cassandra.db.commitlog.CommitLog$Configuration.getEncryptionContext:()Lorg/apache/cassandra/security/EncryptionContext;
            putfield org.apache.cassandra.db.commitlog.EncryptedSegment.encryptionContext:Lorg/apache/cassandra/security/EncryptionContext;
         2: .line 74
            aload 0 /* this */
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.encryptionContext:Lorg/apache/cassandra/security/EncryptionContext;
            invokevirtual org.apache.cassandra.security.EncryptionContext.getEncryptor:()Ljavax/crypto/Cipher;
            putfield org.apache.cassandra.db.commitlog.EncryptedSegment.cipher:Ljavax/crypto/Cipher;
         3: .line 75
            goto 6
         4: .line 76
      StackMap locals: org.apache.cassandra.db.commitlog.EncryptedSegment org.apache.cassandra.db.commitlog.CommitLog org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager
      StackMap stack: java.io.IOException
            astore 3 /* e */
        start local 3 // java.io.IOException e
         5: .line 78
            new org.apache.cassandra.io.FSWriteError
            dup
            aload 3 /* e */
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.logFile:Ljava/io/File;
            invokespecial org.apache.cassandra.io.FSWriteError.<init>:(Ljava/lang/Throwable;Ljava/io/File;)V
            athrow
        end local 3 // java.io.IOException e
         6: .line 80
      StackMap locals:
      StackMap stack:
            getstatic org.apache.cassandra.db.commitlog.EncryptedSegment.logger:Lorg/slf4j/Logger;
            ldc "created a new encrypted commit log segment: {}"
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.logFile:Ljava/io/File;
            invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
         7: .line 82
            aload 2 /* manager */
            invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.getBufferPool:()Lorg/apache/cassandra/db/commitlog/SimpleCachedBufferPool;
            getstatic org.apache.cassandra.io.compress.BufferType.ON_HEAP:Lorg/apache/cassandra/io/compress/BufferType;
            invokevirtual org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.setPreferredReusableBufferType:(Lorg/apache/cassandra/io/compress/BufferType;)V
         8: .line 83
            return
        end local 2 // org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager manager
        end local 1 // org.apache.cassandra.db.commitlog.CommitLog commitLog
        end local 0 // org.apache.cassandra.db.commitlog.EncryptedSegment this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    9     0       this  Lorg/apache/cassandra/db/commitlog/EncryptedSegment;
            0    9     1  commitLog  Lorg/apache/cassandra/db/commitlog/CommitLog;
            0    9     2    manager  Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
            5    6     3          e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           2     3       4  Class java.io.IOException
    MethodParameters:
           Name  Flags
      commitLog  
      manager    

  protected java.util.Map<java.lang.String, java.lang.String> additionalHeaderParameters();
    descriptor: ()Ljava/util/Map;
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // org.apache.cassandra.db.commitlog.EncryptedSegment this
         0: .line 87
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.encryptionContext:Lorg/apache/cassandra/security/EncryptionContext;
            invokevirtual org.apache.cassandra.security.EncryptionContext.toHeaderParameters:()Ljava/util/Map;
            astore 1 /* map */
        start local 1 // java.util.Map map
         1: .line 88
            aload 1 /* map */
            ldc "encIV"
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.cipher:Ljavax/crypto/Cipher;
            invokevirtual javax.crypto.Cipher.getIV:()[B
            invokestatic org.apache.cassandra.utils.Hex.bytesToHex:([B)Ljava/lang/String;
            invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
         2: .line 89
            aload 1 /* map */
            areturn
        end local 1 // java.util.Map map
        end local 0 // org.apache.cassandra.db.commitlog.EncryptedSegment this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/apache/cassandra/db/commitlog/EncryptedSegment;
            1    3     1   map  Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
    Signature: ()Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;

  java.nio.ByteBuffer createBuffer(org.apache.cassandra.db.commitlog.CommitLog);
    descriptor: (Lorg/apache/cassandra/db/commitlog/CommitLog;)Ljava/nio/ByteBuffer;
    flags: (0x0000) 
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.apache.cassandra.db.commitlog.EncryptedSegment this
        start local 1 // org.apache.cassandra.db.commitlog.CommitLog commitLog
         0: .line 96
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.manager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
            invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.getBufferPool:()Lorg/apache/cassandra/db/commitlog/SimpleCachedBufferPool;
            getstatic org.apache.cassandra.io.compress.BufferType.ON_HEAP:Lorg/apache/cassandra/io/compress/BufferType;
            invokevirtual org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.createBuffer:(Lorg/apache/cassandra/io/compress/BufferType;)Ljava/nio/ByteBuffer;
            areturn
        end local 1 // org.apache.cassandra.db.commitlog.CommitLog commitLog
        end local 0 // org.apache.cassandra.db.commitlog.EncryptedSegment this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    1     0       this  Lorg/apache/cassandra/db/commitlog/EncryptedSegment;
            0    1     1  commitLog  Lorg/apache/cassandra/db/commitlog/CommitLog;
    MethodParameters:
           Name  Flags
      commitLog  

  void write(int, int);
    descriptor: (II)V
    flags: (0x0000) 
    Code:
      stack=7, locals=13, args_size=3
        start local 0 // org.apache.cassandra.db.commitlog.EncryptedSegment this
        start local 1 // int startMarker
        start local 2 // int nextMarker
         0: .line 101
            iload 1 /* startMarker */
            bipush 8
            iadd
            istore 3 /* contentStart */
        start local 3 // int contentStart
         1: .line 102
            iload 2 /* nextMarker */
            iload 3 /* contentStart */
            isub
            istore 4 /* length */
        start local 4 // int length
         2: .line 104
            getstatic org.apache.cassandra.db.commitlog.EncryptedSegment.$assertionsDisabled:Z
            ifne 4
            iload 4 /* length */
            ifgt 4
            iload 4 /* length */
            ifne 3
            aload 0 /* this */
            invokevirtual org.apache.cassandra.db.commitlog.EncryptedSegment.isStillAllocating:()Z
            ifeq 4
      StackMap locals: int int
      StackMap stack:
         3: new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         4: .line 106
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.encryptionContext:Lorg/apache/cassandra/security/EncryptionContext;
            invokevirtual org.apache.cassandra.security.EncryptionContext.getCompressor:()Lorg/apache/cassandra/io/compress/ICompressor;
            astore 5 /* compressor */
        start local 5 // org.apache.cassandra.io.compress.ICompressor compressor
         5: .line 107
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.encryptionContext:Lorg/apache/cassandra/security/EncryptionContext;
            invokevirtual org.apache.cassandra.security.EncryptionContext.getChunkLength:()I
            istore 6 /* blockSize */
        start local 6 // int blockSize
         6: .line 110
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
            astore 7 /* inputBuffer */
        start local 7 // java.nio.ByteBuffer inputBuffer
         7: .line 111
            aload 7 /* inputBuffer */
            iload 3 /* contentStart */
            iload 4 /* length */
            iadd
            invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
            iload 3 /* contentStart */
            invokevirtual java.nio.Buffer.position:(I)Ljava/nio/Buffer;
            pop
         8: .line 112
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.manager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
            invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.getBufferPool:()Lorg/apache/cassandra/db/commitlog/SimpleCachedBufferPool;
            invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCommitLogSegmentSize:()I
            invokevirtual org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.getThreadLocalReusableBuffer:(I)Ljava/nio/ByteBuffer;
            astore 8 /* buffer */
        start local 8 // java.nio.ByteBuffer buffer
         9: .line 115
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.lastWrittenPos:J
            lstore 9 /* syncMarkerPosition */
        start local 9 // long syncMarkerPosition
        10: .line 116
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.channel:Ljava/nio/channels/FileChannel;
            lload 9 /* syncMarkerPosition */
            ldc 12
            ladd
            invokevirtual java.nio.channels.FileChannel.position:(J)Ljava/nio/channels/FileChannel;
            pop
        11: .line 119
            goto 21
        12: .line 121
      StackMap locals: org.apache.cassandra.db.commitlog.EncryptedSegment int int int int org.apache.cassandra.io.compress.ICompressor int java.nio.ByteBuffer java.nio.ByteBuffer long
      StackMap stack:
            iload 2 /* nextMarker */
            iload 6 /* blockSize */
            isub
            iload 3 /* contentStart */
            if_icmple 13
            iload 6 /* blockSize */
            goto 14
      StackMap locals:
      StackMap stack:
        13: iload 2 /* nextMarker */
            iload 3 /* contentStart */
            isub
      StackMap locals:
      StackMap stack: int
        14: istore 11 /* nextBlockSize */
        start local 11 // int nextBlockSize
        15: .line 122
            aload 7 /* inputBuffer */
            invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
            astore 12 /* slice */
        start local 12 // java.nio.ByteBuffer slice
        16: .line 123
            aload 12 /* slice */
            iload 3 /* contentStart */
            iload 11 /* nextBlockSize */
            iadd
            invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
            iload 3 /* contentStart */
            invokevirtual java.nio.Buffer.position:(I)Ljava/nio/Buffer;
            pop
        17: .line 125
            aload 12 /* slice */
            aload 8 /* buffer */
            iconst_1
            aload 5 /* compressor */
            invokestatic org.apache.cassandra.security.EncryptionUtils.compress:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;ZLorg/apache/cassandra/io/compress/ICompressor;)Ljava/nio/ByteBuffer;
            astore 8 /* buffer */
        18: .line 128
            aload 8 /* buffer */
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.channel:Ljava/nio/channels/FileChannel;
            iconst_1
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.cipher:Ljavax/crypto/Cipher;
            invokestatic org.apache.cassandra.security.EncryptionUtils.encryptAndWrite:(Ljava/nio/ByteBuffer;Ljava/nio/channels/WritableByteChannel;ZLjavax/crypto/Cipher;)Ljava/nio/ByteBuffer;
            astore 8 /* buffer */
        19: .line 130
            iload 3 /* contentStart */
            iload 11 /* nextBlockSize */
            iadd
            istore 3 /* contentStart */
        20: .line 131
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.manager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
            aload 8 /* buffer */
            invokevirtual java.nio.ByteBuffer.limit:()I
            bipush 8
            iadd
            i2l
            invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.addSize:(J)V
        end local 12 // java.nio.ByteBuffer slice
        end local 11 // int nextBlockSize
        21: .line 119
      StackMap locals:
      StackMap stack:
            iload 3 /* contentStart */
            iload 2 /* nextMarker */
            if_icmplt 12
        22: .line 134
            aload 0 /* this */
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.channel:Ljava/nio/channels/FileChannel;
            invokevirtual java.nio.channels.FileChannel.position:()J
            putfield org.apache.cassandra.db.commitlog.EncryptedSegment.lastWrittenPos:J
        23: .line 137
            aload 8 /* buffer */
            iconst_0
            invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
            bipush 12
            invokevirtual java.nio.Buffer.limit:(I)Ljava/nio/Buffer;
            pop
        24: .line 138
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.id:J
            aload 8 /* buffer */
            iconst_0
            lload 9 /* syncMarkerPosition */
            l2i
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.lastWrittenPos:J
            l2i
            invokestatic org.apache.cassandra.db.commitlog.EncryptedSegment.writeSyncMarker:(JLjava/nio/ByteBuffer;III)V
        25: .line 139
            aload 8 /* buffer */
            bipush 8
            iload 4 /* length */
            invokevirtual java.nio.ByteBuffer.putInt:(II)Ljava/nio/ByteBuffer;
            pop
        26: .line 140
            aload 8 /* buffer */
            invokevirtual java.nio.ByteBuffer.rewind:()Ljava/nio/Buffer;
            pop
        27: .line 141
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.manager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
            aload 8 /* buffer */
            invokevirtual java.nio.ByteBuffer.limit:()I
            i2l
            invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.addSize:(J)V
        28: .line 143
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.channel:Ljava/nio/channels/FileChannel;
            lload 9 /* syncMarkerPosition */
            invokevirtual java.nio.channels.FileChannel.position:(J)Ljava/nio/channels/FileChannel;
            pop
        29: .line 144
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.channel:Ljava/nio/channels/FileChannel;
            aload 8 /* buffer */
            invokevirtual java.nio.channels.FileChannel.write:(Ljava/nio/ByteBuffer;)I
            pop
        end local 9 // long syncMarkerPosition
        end local 8 // java.nio.ByteBuffer buffer
        end local 7 // java.nio.ByteBuffer inputBuffer
        30: .line 145
            goto 33
        31: .line 146
      StackMap locals: org.apache.cassandra.db.commitlog.EncryptedSegment int int int int org.apache.cassandra.io.compress.ICompressor int
      StackMap stack: java.lang.Exception
            astore 7 /* e */
        start local 7 // java.lang.Exception e
        32: .line 148
            new org.apache.cassandra.io.FSWriteError
            dup
            aload 7 /* e */
            aload 0 /* this */
            invokevirtual org.apache.cassandra.db.commitlog.EncryptedSegment.getPath:()Ljava/lang/String;
            invokespecial org.apache.cassandra.io.FSWriteError.<init>:(Ljava/lang/Throwable;Ljava/lang/String;)V
            athrow
        end local 7 // java.lang.Exception e
        33: .line 150
      StackMap locals:
      StackMap stack:
            return
        end local 6 // int blockSize
        end local 5 // org.apache.cassandra.io.compress.ICompressor compressor
        end local 4 // int length
        end local 3 // int contentStart
        end local 2 // int nextMarker
        end local 1 // int startMarker
        end local 0 // org.apache.cassandra.db.commitlog.EncryptedSegment this
      LocalVariableTable:
        Start  End  Slot                Name  Signature
            0   34     0                this  Lorg/apache/cassandra/db/commitlog/EncryptedSegment;
            0   34     1         startMarker  I
            0   34     2          nextMarker  I
            1   34     3        contentStart  I
            2   34     4              length  I
            5   34     5          compressor  Lorg/apache/cassandra/io/compress/ICompressor;
            6   34     6           blockSize  I
            7   30     7         inputBuffer  Ljava/nio/ByteBuffer;
            9   30     8              buffer  Ljava/nio/ByteBuffer;
           10   30     9  syncMarkerPosition  J
           15   21    11       nextBlockSize  I
           16   21    12               slice  Ljava/nio/ByteBuffer;
           32   33     7                   e  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
           6    30      31  Class java.lang.Exception
    MethodParameters:
             Name  Flags
      startMarker  
      nextMarker   

  public long onDiskSize();
    descriptor: ()J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.apache.cassandra.db.commitlog.EncryptedSegment this
         0: .line 154
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.EncryptedSegment.lastWrittenPos:J
            lreturn
        end local 0 // org.apache.cassandra.db.commitlog.EncryptedSegment this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/cassandra/db/commitlog/EncryptedSegment;
}
SourceFile: "EncryptedSegment.java"
InnerClasses:
  public final Configuration = org.apache.cassandra.db.commitlog.CommitLog$Configuration of org.apache.cassandra.db.commitlog.CommitLog