public class org.bouncycastle.crypto.io.CipherOutputStream extends java.io.FilterOutputStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.io.CipherOutputStream
super_class: java.io.FilterOutputStream
{
private org.bouncycastle.crypto.BufferedBlockCipher bufferedBlockCipher;
descriptor: Lorg/bouncycastle/crypto/BufferedBlockCipher;
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.crypto.StreamCipher streamCipher;
descriptor: Lorg/bouncycastle/crypto/StreamCipher;
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.crypto.modes.AEADBlockCipher aeadBlockCipher;
descriptor: Lorg/bouncycastle/crypto/modes/AEADBlockCipher;
flags: (0x0002) ACC_PRIVATE
private final byte[] oneByte;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private byte[] buf;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
public void <init>(java.io.OutputStream, org.bouncycastle.crypto.BufferedBlockCipher);
descriptor: (Ljava/io/OutputStream;Lorg/bouncycastle/crypto/BufferedBlockCipher;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial java.io.FilterOutputStream.<init>:(Ljava/io/OutputStream;)V
1: aload 0
iconst_1
newarray 8
putfield org.bouncycastle.crypto.io.CipherOutputStream.oneByte:[B
2: aload 0
aload 2
putfield org.bouncycastle.crypto.io.CipherOutputStream.bufferedBlockCipher:Lorg/bouncycastle/crypto/BufferedBlockCipher;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/crypto/io/CipherOutputStream;
0 4 1 os Ljava/io/OutputStream;
0 4 2 cipher Lorg/bouncycastle/crypto/BufferedBlockCipher;
MethodParameters:
Name Flags
os
cipher
public void <init>(java.io.OutputStream, org.bouncycastle.crypto.StreamCipher);
descriptor: (Ljava/io/OutputStream;Lorg/bouncycastle/crypto/StreamCipher;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial java.io.FilterOutputStream.<init>:(Ljava/io/OutputStream;)V
1: aload 0
iconst_1
newarray 8
putfield org.bouncycastle.crypto.io.CipherOutputStream.oneByte:[B
2: aload 0
aload 2
putfield org.bouncycastle.crypto.io.CipherOutputStream.streamCipher:Lorg/bouncycastle/crypto/StreamCipher;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/crypto/io/CipherOutputStream;
0 4 1 os Ljava/io/OutputStream;
0 4 2 cipher Lorg/bouncycastle/crypto/StreamCipher;
MethodParameters:
Name Flags
os
cipher
public void <init>(java.io.OutputStream, org.bouncycastle.crypto.modes.AEADBlockCipher);
descriptor: (Ljava/io/OutputStream;Lorg/bouncycastle/crypto/modes/AEADBlockCipher;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial java.io.FilterOutputStream.<init>:(Ljava/io/OutputStream;)V
1: aload 0
iconst_1
newarray 8
putfield org.bouncycastle.crypto.io.CipherOutputStream.oneByte:[B
2: aload 0
aload 2
putfield org.bouncycastle.crypto.io.CipherOutputStream.aeadBlockCipher:Lorg/bouncycastle/crypto/modes/AEADBlockCipher;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/crypto/io/CipherOutputStream;
0 4 1 os Ljava/io/OutputStream;
0 4 2 cipher Lorg/bouncycastle/crypto/modes/AEADBlockCipher;
MethodParameters:
Name Flags
os
cipher
public void write(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.oneByte:[B
iconst_0
iload 1
i2b
bastore
1: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.streamCipher:Lorg/bouncycastle/crypto/StreamCipher;
ifnull 4
2: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.out:Ljava/io/OutputStream;
aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.streamCipher:Lorg/bouncycastle/crypto/StreamCipher;
iload 1
i2b
invokeinterface org.bouncycastle.crypto.StreamCipher.returnByte:(B)B
invokevirtual java.io.OutputStream.write:(I)V
3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.oneByte:[B
iconst_0
iconst_1
invokevirtual org.bouncycastle.crypto.io.CipherOutputStream.write:([BII)V
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/crypto/io/CipherOutputStream;
0 6 1 b I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public void write(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
aload 1
arraylength
invokevirtual org.bouncycastle.crypto.io.CipherOutputStream.write:([BII)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/io/CipherOutputStream;
0 2 1 b [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public void write(byte[], int, int);
descriptor: ([BII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iload 3
iconst_0
invokevirtual org.bouncycastle.crypto.io.CipherOutputStream.ensureCapacity:(IZ)V
1: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.bufferedBlockCipher:Lorg/bouncycastle/crypto/BufferedBlockCipher;
ifnull 6
2: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.bufferedBlockCipher:Lorg/bouncycastle/crypto/BufferedBlockCipher;
aload 1
iload 2
iload 3
aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.buf:[B
iconst_0
invokevirtual org.bouncycastle.crypto.BufferedBlockCipher.processBytes:([BII[BI)I
istore 4
start local 4 3: iload 4
ifeq 13
4: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.out:Ljava/io/OutputStream;
aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.buf:[B
iconst_0
iload 4
invokevirtual java.io.OutputStream.write:([BII)V
end local 4 5: goto 13
6: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.aeadBlockCipher:Lorg/bouncycastle/crypto/modes/AEADBlockCipher;
ifnull 11
7: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.aeadBlockCipher:Lorg/bouncycastle/crypto/modes/AEADBlockCipher;
aload 1
iload 2
iload 3
aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.buf:[B
iconst_0
invokeinterface org.bouncycastle.crypto.modes.AEADBlockCipher.processBytes:([BII[BI)I
istore 4
start local 4 8: iload 4
ifeq 13
9: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.out:Ljava/io/OutputStream;
aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.buf:[B
iconst_0
iload 4
invokevirtual java.io.OutputStream.write:([BII)V
end local 4 10: goto 13
11: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.streamCipher:Lorg/bouncycastle/crypto/StreamCipher;
aload 1
iload 2
iload 3
aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.buf:[B
iconst_0
invokeinterface org.bouncycastle.crypto.StreamCipher.processBytes:([BII[BI)I
pop
12: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.out:Ljava/io/OutputStream;
aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.buf:[B
iconst_0
iload 3
invokevirtual java.io.OutputStream.write:([BII)V
13: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/bouncycastle/crypto/io/CipherOutputStream;
0 14 1 b [B
0 14 2 off I
0 14 3 len I
3 5 4 outLen I
8 10 4 outLen I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
private void ensureCapacity(int, boolean);
descriptor: (IZ)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 1
istore 3
start local 3 1: iload 2
ifeq 8
2: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.bufferedBlockCipher:Lorg/bouncycastle/crypto/BufferedBlockCipher;
ifnull 5
3: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.bufferedBlockCipher:Lorg/bouncycastle/crypto/BufferedBlockCipher;
iload 1
invokevirtual org.bouncycastle.crypto.BufferedBlockCipher.getOutputSize:(I)I
istore 3
4: goto 13
5: StackMap locals: int
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.aeadBlockCipher:Lorg/bouncycastle/crypto/modes/AEADBlockCipher;
ifnull 13
6: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.aeadBlockCipher:Lorg/bouncycastle/crypto/modes/AEADBlockCipher;
iload 1
invokeinterface org.bouncycastle.crypto.modes.AEADBlockCipher.getOutputSize:(I)I
istore 3
7: goto 13
8: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.bufferedBlockCipher:Lorg/bouncycastle/crypto/BufferedBlockCipher;
ifnull 11
9: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.bufferedBlockCipher:Lorg/bouncycastle/crypto/BufferedBlockCipher;
iload 1
invokevirtual org.bouncycastle.crypto.BufferedBlockCipher.getUpdateOutputSize:(I)I
istore 3
10: goto 13
11: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.aeadBlockCipher:Lorg/bouncycastle/crypto/modes/AEADBlockCipher;
ifnull 13
12: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.aeadBlockCipher:Lorg/bouncycastle/crypto/modes/AEADBlockCipher;
iload 1
invokeinterface org.bouncycastle.crypto.modes.AEADBlockCipher.getUpdateOutputSize:(I)I
istore 3
13: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.buf:[B
ifnull 14
aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.buf:[B
arraylength
iload 3
if_icmpge 15
14: StackMap locals:
StackMap stack:
aload 0
iload 3
newarray 8
putfield org.bouncycastle.crypto.io.CipherOutputStream.buf:[B
15: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/bouncycastle/crypto/io/CipherOutputStream;
0 16 1 updateSize I
0 16 2 finalOutput Z
1 16 3 bufLen I
MethodParameters:
Name Flags
updateSize
finalOutput
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.out:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.flush:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/io/CipherOutputStream;
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
iconst_0
iconst_1
invokevirtual org.bouncycastle.crypto.io.CipherOutputStream.ensureCapacity:(IZ)V
1: aconst_null
astore 1
start local 1 2: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.bufferedBlockCipher:Lorg/bouncycastle/crypto/BufferedBlockCipher;
ifnull 7
3: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.bufferedBlockCipher:Lorg/bouncycastle/crypto/BufferedBlockCipher;
aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.buf:[B
iconst_0
invokevirtual org.bouncycastle.crypto.BufferedBlockCipher.doFinal:([BI)I
istore 2
start local 2 4: iload 2
ifeq 20
5: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.out:Ljava/io/OutputStream;
aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.buf:[B
iconst_0
iload 2
invokevirtual java.io.OutputStream.write:([BII)V
end local 2 6: goto 20
7: StackMap locals: java.io.IOException
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.aeadBlockCipher:Lorg/bouncycastle/crypto/modes/AEADBlockCipher;
ifnull 12
8: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.aeadBlockCipher:Lorg/bouncycastle/crypto/modes/AEADBlockCipher;
aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.buf:[B
iconst_0
invokeinterface org.bouncycastle.crypto.modes.AEADBlockCipher.doFinal:([BI)I
istore 2
start local 2 9: iload 2
ifeq 20
10: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.out:Ljava/io/OutputStream;
aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.buf:[B
iconst_0
iload 2
invokevirtual java.io.OutputStream.write:([BII)V
end local 2 11: goto 20
12: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.streamCipher:Lorg/bouncycastle/crypto/StreamCipher;
ifnull 20
13: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.streamCipher:Lorg/bouncycastle/crypto/StreamCipher;
invokeinterface org.bouncycastle.crypto.StreamCipher.reset:()V
14: goto 20
15: StackMap locals:
StackMap stack: org.bouncycastle.crypto.InvalidCipherTextException
astore 2
start local 2 16: new org.bouncycastle.crypto.io.InvalidCipherTextIOException
dup
ldc "Error finalising cipher data"
aload 2
invokespecial org.bouncycastle.crypto.io.InvalidCipherTextIOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
astore 1
end local 2 17: goto 20
18: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 19: new org.bouncycastle.crypto.io.CipherIOException
dup
ldc "Error closing stream: "
aload 2
invokespecial org.bouncycastle.crypto.io.CipherIOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
astore 1
end local 2 20: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.bouncycastle.crypto.io.CipherOutputStream.flush:()V
21: aload 0
getfield org.bouncycastle.crypto.io.CipherOutputStream.out:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
22: goto 26
23: StackMap locals:
StackMap stack: java.io.IOException
astore 2
start local 2 24: aload 1
ifnonnull 26
25: aload 2
astore 1
end local 2 26: StackMap locals:
StackMap stack:
aload 1
ifnull 28
27: aload 1
athrow
28: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lorg/bouncycastle/crypto/io/CipherOutputStream;
2 29 1 error Ljava/io/IOException;
4 6 2 outLen I
9 11 2 outLen I
16 17 2 e Lorg/bouncycastle/crypto/InvalidCipherTextException;
19 20 2 e Ljava/lang/Exception;
24 26 2 e Ljava/io/IOException;
Exception table:
from to target type
2 14 15 Class org.bouncycastle.crypto.InvalidCipherTextException
2 14 18 Class java.lang.Exception
20 22 23 Class java.io.IOException
Exceptions:
throws java.io.IOException
}
SourceFile: "CipherOutputStream.java"