public class org.bouncycastle.crypto.examples.DESExample
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.examples.DESExample
super_class: java.lang.Object
{
private boolean encrypt;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher cipher;
descriptor: Lorg/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher;
flags: (0x0002) ACC_PRIVATE
private java.io.BufferedInputStream in;
descriptor: Ljava/io/BufferedInputStream;
flags: (0x0002) ACC_PRIVATE
private java.io.BufferedOutputStream out;
descriptor: Ljava/io/BufferedOutputStream;
flags: (0x0002) ACC_PRIVATE
private byte[] key;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=6, args_size=1
start local 0 0: iconst_1
istore 1
start local 1 1: aconst_null
astore 2
start local 2 2: aconst_null
astore 3
start local 3 3: aconst_null
astore 4
start local 4 4: aload 0
arraylength
iconst_2
if_icmpge 10
5: new org.bouncycastle.crypto.examples.DESExample
dup
invokespecial org.bouncycastle.crypto.examples.DESExample.<init>:()V
astore 5
start local 5 6: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Usage: java "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: ldc " infile outfile [keyfile]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
8: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
9: iconst_1
invokestatic java.lang.System.exit:(I)V
end local 5 10: StackMap locals: java.lang.String[] int java.lang.String java.lang.String java.lang.String
StackMap stack:
ldc "deskey.dat"
astore 4
11: aload 0
iconst_0
aaload
astore 2
12: aload 0
iconst_1
aaload
astore 3
13: aload 0
arraylength
iconst_2
if_icmple 16
14: iconst_0
istore 1
15: aload 0
iconst_2
aaload
astore 4
16: StackMap locals:
StackMap stack:
new org.bouncycastle.crypto.examples.DESExample
dup
aload 2
aload 3
aload 4
iload 1
invokespecial org.bouncycastle.crypto.examples.DESExample.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
astore 5
start local 5 17: aload 5
invokevirtual org.bouncycastle.crypto.examples.DESExample.process:()V
18: return
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 19 0 args [Ljava/lang/String;
1 19 1 encrypt Z
2 19 2 infile Ljava/lang/String;
3 19 3 outfile Ljava/lang/String;
4 19 4 keyfile Ljava/lang/String;
6 10 5 de Lorg/bouncycastle/crypto/examples/DESExample;
17 19 5 de Lorg/bouncycastle/crypto/examples/DESExample;
MethodParameters:
Name Flags
args
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_1
putfield org.bouncycastle.crypto.examples.DESExample.encrypt:Z
2: aload 0
aconst_null
putfield org.bouncycastle.crypto.examples.DESExample.cipher:Lorg/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher;
3: aload 0
aconst_null
putfield org.bouncycastle.crypto.examples.DESExample.in:Ljava/io/BufferedInputStream;
4: aload 0
aconst_null
putfield org.bouncycastle.crypto.examples.DESExample.out:Ljava/io/BufferedOutputStream;
5: aload 0
aconst_null
putfield org.bouncycastle.crypto.examples.DESExample.key:[B
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/crypto/examples/DESExample;
public void <init>(java.lang.String, java.lang.String, java.lang.String, boolean);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=10, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_1
putfield org.bouncycastle.crypto.examples.DESExample.encrypt:Z
2: aload 0
aconst_null
putfield org.bouncycastle.crypto.examples.DESExample.cipher:Lorg/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher;
3: aload 0
aconst_null
putfield org.bouncycastle.crypto.examples.DESExample.in:Ljava/io/BufferedInputStream;
4: aload 0
aconst_null
putfield org.bouncycastle.crypto.examples.DESExample.out:Ljava/io/BufferedOutputStream;
5: aload 0
aconst_null
putfield org.bouncycastle.crypto.examples.DESExample.key:[B
6: aload 0
iload 4
putfield org.bouncycastle.crypto.examples.DESExample.encrypt:Z
7: aload 0
new java.io.BufferedInputStream
dup
new java.io.FileInputStream
dup
aload 1
invokespecial java.io.FileInputStream.<init>:(Ljava/lang/String;)V
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;)V
putfield org.bouncycastle.crypto.examples.DESExample.in:Ljava/io/BufferedInputStream;
8: goto 12
9: StackMap locals: org.bouncycastle.crypto.examples.DESExample java.lang.String java.lang.String java.lang.String int
StackMap stack: java.io.FileNotFoundException
pop
10: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Input file not found ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
11: iconst_1
invokestatic java.lang.System.exit:(I)V
12: StackMap locals:
StackMap stack:
aload 0
new java.io.BufferedOutputStream
dup
new java.io.FileOutputStream
dup
aload 2
invokespecial java.io.FileOutputStream.<init>:(Ljava/lang/String;)V
invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;)V
putfield org.bouncycastle.crypto.examples.DESExample.out:Ljava/io/BufferedOutputStream;
13: goto 17
14: StackMap locals:
StackMap stack: java.io.IOException
pop
15: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Output file not created ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
16: iconst_1
invokestatic java.lang.System.exit:(I)V
17: StackMap locals:
StackMap stack:
iload 4
ifeq 45
18: aconst_null
astore 5
start local 5 19: new java.security.SecureRandom
dup
invokespecial java.security.SecureRandom.<init>:()V
astore 5
20: aload 5
ldc "www.bouncycastle.org"
invokevirtual java.lang.String.getBytes:()[B
invokevirtual java.security.SecureRandom.setSeed:([B)V
21: goto 25
22: StackMap locals: org.bouncycastle.crypto.examples.DESExample java.lang.String java.lang.String java.lang.String int java.security.SecureRandom
StackMap stack: java.lang.Exception
pop
23: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "Hmmm, no SHA1PRNG, you need the Sun implementation"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
24: iconst_1
invokestatic java.lang.System.exit:(I)V
25: StackMap locals:
StackMap stack:
new org.bouncycastle.crypto.KeyGenerationParameters
dup
26: aload 5
27: sipush 192
28: invokespecial org.bouncycastle.crypto.KeyGenerationParameters.<init>:(Ljava/security/SecureRandom;I)V
astore 6
start local 6 29: new org.bouncycastle.crypto.generators.DESedeKeyGenerator
dup
invokespecial org.bouncycastle.crypto.generators.DESedeKeyGenerator.<init>:()V
astore 7
start local 7 30: aload 7
aload 6
invokevirtual org.bouncycastle.crypto.generators.DESedeKeyGenerator.init:(Lorg/bouncycastle/crypto/KeyGenerationParameters;)V
31: aload 0
aload 7
invokevirtual org.bouncycastle.crypto.generators.DESedeKeyGenerator.generateKey:()[B
putfield org.bouncycastle.crypto.examples.DESExample.key:[B
32: new java.io.BufferedOutputStream
dup
new java.io.FileOutputStream
dup
aload 3
invokespecial java.io.FileOutputStream.<init>:(Ljava/lang/String;)V
invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;)V
33: astore 8
start local 8 34: aload 0
getfield org.bouncycastle.crypto.examples.DESExample.key:[B
invokestatic org.bouncycastle.util.encoders.Hex.encode:([B)[B
astore 9
start local 9 35: aload 8
aload 9
iconst_0
aload 9
arraylength
invokevirtual java.io.BufferedOutputStream.write:([BII)V
36: aload 8
invokevirtual java.io.BufferedOutputStream.flush:()V
37: aload 8
invokevirtual java.io.BufferedOutputStream.close:()V
end local 9 end local 8 end local 7 end local 6 end local 5 38: goto 57
39: StackMap locals: org.bouncycastle.crypto.examples.DESExample java.lang.String java.lang.String java.lang.String int
StackMap stack: java.io.IOException
pop
40: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Could not decryption create key file ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
41: aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
42: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
43: iconst_1
invokestatic java.lang.System.exit:(I)V
44: goto 57
45: StackMap locals:
StackMap stack:
new java.io.BufferedInputStream
dup
new java.io.FileInputStream
dup
aload 3
invokespecial java.io.FileInputStream.<init>:(Ljava/lang/String;)V
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;)V
46: astore 5
start local 5 47: aload 5
invokevirtual java.io.BufferedInputStream.available:()I
istore 6
start local 6 48: iload 6
newarray 8
astore 7
start local 7 49: aload 5
aload 7
iconst_0
iload 6
invokevirtual java.io.BufferedInputStream.read:([BII)I
pop
50: aload 0
aload 7
invokestatic org.bouncycastle.util.encoders.Hex.decode:([B)[B
putfield org.bouncycastle.crypto.examples.DESExample.key:[B
end local 7 end local 6 end local 5 51: goto 57
52: StackMap locals:
StackMap stack: java.io.IOException
pop
53: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Decryption key file not found, or not valid ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
54: aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
55: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
56: iconst_1
invokestatic java.lang.System.exit:(I)V
57: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 58 0 this Lorg/bouncycastle/crypto/examples/DESExample;
0 58 1 infile Ljava/lang/String;
0 58 2 outfile Ljava/lang/String;
0 58 3 keyfile Ljava/lang/String;
0 58 4 encrypt Z
19 38 5 sr Ljava/security/SecureRandom;
29 38 6 kgp Lorg/bouncycastle/crypto/KeyGenerationParameters;
30 38 7 kg Lorg/bouncycastle/crypto/generators/DESedeKeyGenerator;
34 38 8 keystream Ljava/io/BufferedOutputStream;
35 38 9 keyhex [B
47 51 5 keystream Ljava/io/BufferedInputStream;
48 51 6 len I
49 51 7 keyhex [B
Exception table:
from to target type
7 8 9 Class java.io.FileNotFoundException
12 13 14 Class java.io.IOException
19 21 22 Class java.lang.Exception
18 38 39 Class java.io.IOException
45 51 52 Class java.io.IOException
MethodParameters:
Name Flags
infile
outfile
keyfile
encrypt
private void process();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
new org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher
dup
1: new org.bouncycastle.crypto.modes.CBCBlockCipher
dup
new org.bouncycastle.crypto.engines.DESedeEngine
dup
invokespecial org.bouncycastle.crypto.engines.DESedeEngine.<init>:()V
invokespecial org.bouncycastle.crypto.modes.CBCBlockCipher.<init>:(Lorg/bouncycastle/crypto/BlockCipher;)V
invokespecial org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.<init>:(Lorg/bouncycastle/crypto/BlockCipher;)V
2: putfield org.bouncycastle.crypto.examples.DESExample.cipher:Lorg/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher;
3: aload 0
getfield org.bouncycastle.crypto.examples.DESExample.encrypt:Z
ifeq 6
4: aload 0
aload 0
getfield org.bouncycastle.crypto.examples.DESExample.key:[B
invokevirtual org.bouncycastle.crypto.examples.DESExample.performEncrypt:([B)V
5: goto 7
6: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.bouncycastle.crypto.examples.DESExample.key:[B
invokevirtual org.bouncycastle.crypto.examples.DESExample.performDecrypt:([B)V
7: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.examples.DESExample.in:Ljava/io/BufferedInputStream;
invokevirtual java.io.BufferedInputStream.close:()V
8: aload 0
getfield org.bouncycastle.crypto.examples.DESExample.out:Ljava/io/BufferedOutputStream;
invokevirtual java.io.BufferedOutputStream.flush:()V
9: aload 0
getfield org.bouncycastle.crypto.examples.DESExample.out:Ljava/io/BufferedOutputStream;
invokevirtual java.io.BufferedOutputStream.close:()V
10: goto 12
11: StackMap locals:
StackMap stack: java.io.IOException
pop
12: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/bouncycastle/crypto/examples/DESExample;
Exception table:
from to target type
7 10 11 Class java.io.IOException
private void performEncrypt(byte[]);
descriptor: ([B)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=9, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.crypto.examples.DESExample.cipher:Lorg/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher;
iconst_1
new org.bouncycastle.crypto.params.KeyParameter
dup
aload 1
invokespecial org.bouncycastle.crypto.params.KeyParameter.<init>:([B)V
invokevirtual org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
1: bipush 47
istore 2
start local 2 2: aload 0
getfield org.bouncycastle.crypto.examples.DESExample.cipher:Lorg/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher;
iload 2
invokevirtual org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.getOutputSize:(I)I
istore 3
start local 3 3: iload 2
newarray 8
astore 4
start local 4 4: iload 3
newarray 8
astore 5
start local 5 5: aconst_null
astore 8
start local 8 6: goto 12
start local 6 7: StackMap locals: org.bouncycastle.crypto.examples.DESExample byte[] int int byte[] byte[] int top byte[]
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.examples.DESExample.cipher:Lorg/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher;
aload 4
iconst_0
iload 6
aload 5
iconst_0
invokevirtual org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.processBytes:([BII[BI)I
istore 7
start local 7 8: iload 7
ifle 12
9: aload 5
iconst_0
iload 7
invokestatic org.bouncycastle.util.encoders.Hex.encode:([BII)[B
astore 8
10: aload 0
getfield org.bouncycastle.crypto.examples.DESExample.out:Ljava/io/BufferedOutputStream;
aload 8
iconst_0
aload 8
arraylength
invokevirtual java.io.BufferedOutputStream.write:([BII)V
11: aload 0
getfield org.bouncycastle.crypto.examples.DESExample.out:Ljava/io/BufferedOutputStream;
bipush 10
invokevirtual java.io.BufferedOutputStream.write:(I)V
end local 7 end local 6 12: StackMap locals: org.bouncycastle.crypto.examples.DESExample byte[] int int byte[] byte[] top top byte[]
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.examples.DESExample.in:Ljava/io/BufferedInputStream;
aload 4
iconst_0
iload 2
invokevirtual java.io.BufferedInputStream.read:([BII)I
dup
istore 6
start local 6 13: ifgt 7
14: aload 0
getfield org.bouncycastle.crypto.examples.DESExample.cipher:Lorg/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher;
aload 5
iconst_0
invokevirtual org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.doFinal:([BI)I
istore 7
start local 7 15: iload 7
ifle 24
16: aload 5
iconst_0
iload 7
invokestatic org.bouncycastle.util.encoders.Hex.encode:([BII)[B
astore 8
17: aload 0
getfield org.bouncycastle.crypto.examples.DESExample.out:Ljava/io/BufferedOutputStream;
aload 8
iconst_0
aload 8
arraylength
invokevirtual java.io.BufferedOutputStream.write:([BII)V
18: aload 0
getfield org.bouncycastle.crypto.examples.DESExample.out:Ljava/io/BufferedOutputStream;
bipush 10
invokevirtual java.io.BufferedOutputStream.write:(I)V
19: goto 24
end local 7 20: StackMap locals: org.bouncycastle.crypto.examples.DESExample byte[] int int byte[] byte[] int top byte[]
StackMap stack: org.bouncycastle.crypto.CryptoException
pop
end local 8 end local 6 21: goto 24
22: StackMap locals: org.bouncycastle.crypto.examples.DESExample byte[] int int byte[] byte[]
StackMap stack: java.io.IOException
astore 6
start local 6 23: aload 6
invokevirtual java.io.IOException.printStackTrace:()V
end local 6 24: StackMap locals:
StackMap stack:
return
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 25 0 this Lorg/bouncycastle/crypto/examples/DESExample;
0 25 1 key [B
2 25 2 inBlockSize I
3 25 3 outBlockSize I
4 25 4 inblock [B
5 25 5 outblock [B
7 12 6 inL I
13 21 6 inL I
8 12 7 outL I
15 20 7 outL I
6 21 8 rv [B
23 24 6 ioeread Ljava/io/IOException;
Exception table:
from to target type
14 19 20 Class org.bouncycastle.crypto.CryptoException
5 21 22 Class java.io.IOException
MethodParameters:
Name Flags
key
private void performDecrypt(byte[]);
descriptor: ([B)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.crypto.examples.DESExample.cipher:Lorg/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher;
iconst_0
new org.bouncycastle.crypto.params.KeyParameter
dup
aload 1
invokespecial org.bouncycastle.crypto.params.KeyParameter.<init>:([B)V
invokevirtual org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
1: new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 0
getfield org.bouncycastle.crypto.examples.DESExample.in:Ljava/io/BufferedInputStream;
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 2
start local 2 2: aconst_null
astore 4
start local 4 3: aconst_null
astore 5
start local 5 4: aconst_null
astore 6
start local 6 5: goto 13
6: StackMap locals: org.bouncycastle.crypto.examples.DESExample byte[] java.io.BufferedReader top byte[] byte[] java.lang.String
StackMap stack:
aload 6
invokestatic org.bouncycastle.util.encoders.Hex.decode:(Ljava/lang/String;)[B
astore 4
7: aload 0
getfield org.bouncycastle.crypto.examples.DESExample.cipher:Lorg/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher;
aload 4
arraylength
invokevirtual org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.getOutputSize:(I)I
newarray 8
astore 5
8: aload 0
getfield org.bouncycastle.crypto.examples.DESExample.cipher:Lorg/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher;
aload 4
iconst_0
aload 4
arraylength
9: aload 5
iconst_0
10: invokevirtual org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.processBytes:([BII[BI)I
istore 3
start local 3 11: iload 3
ifle 13
12: aload 0
getfield org.bouncycastle.crypto.examples.DESExample.out:Ljava/io/BufferedOutputStream;
aload 5
iconst_0
iload 3
invokevirtual java.io.BufferedOutputStream.write:([BII)V
end local 3 13: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
dup
astore 6
ifnonnull 6
14: aload 0
getfield org.bouncycastle.crypto.examples.DESExample.cipher:Lorg/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher;
aload 5
iconst_0
invokevirtual org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.doFinal:([BI)I
istore 3
start local 3 15: iload 3
ifle 22
16: aload 0
getfield org.bouncycastle.crypto.examples.DESExample.out:Ljava/io/BufferedOutputStream;
aload 5
iconst_0
iload 3
invokevirtual java.io.BufferedOutputStream.write:([BII)V
17: goto 22
end local 3 18: StackMap locals:
StackMap stack: org.bouncycastle.crypto.CryptoException
pop
end local 6 end local 5 end local 4 19: goto 22
20: StackMap locals: org.bouncycastle.crypto.examples.DESExample byte[] java.io.BufferedReader
StackMap stack: java.io.IOException
astore 3
start local 3 21: aload 3
invokevirtual java.io.IOException.printStackTrace:()V
end local 3 22: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lorg/bouncycastle/crypto/examples/DESExample;
0 23 1 key [B
2 23 2 br Ljava/io/BufferedReader;
11 13 3 outL I
15 18 3 outL I
3 19 4 inblock [B
4 19 5 outblock [B
5 19 6 rv Ljava/lang/String;
21 22 3 ioeread Ljava/io/IOException;
Exception table:
from to target type
14 17 18 Class org.bouncycastle.crypto.CryptoException
2 19 20 Class java.io.IOException
MethodParameters:
Name Flags
key
}
SourceFile: "DESExample.java"