public abstract class org.bouncycastle.asn1.DERGenerator extends org.bouncycastle.asn1.ASN1Generator
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.bouncycastle.asn1.DERGenerator
super_class: org.bouncycastle.asn1.ASN1Generator
{
private boolean _tagged;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean _isExplicit;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private int _tagNo;
descriptor: I
flags: (0x0002) ACC_PRIVATE
protected void <init>(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.bouncycastle.asn1.ASN1Generator.<init>:(Ljava/io/OutputStream;)V
1: aload 0
iconst_0
putfield org.bouncycastle.asn1.DERGenerator._tagged:Z
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/asn1/DERGenerator;
0 3 1 out Ljava/io/OutputStream;
MethodParameters:
Name Flags
out
public void <init>(java.io.OutputStream, int, boolean);
descriptor: (Ljava/io/OutputStream;IZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokespecial org.bouncycastle.asn1.ASN1Generator.<init>:(Ljava/io/OutputStream;)V
1: aload 0
iconst_0
putfield org.bouncycastle.asn1.DERGenerator._tagged:Z
2: aload 0
iconst_1
putfield org.bouncycastle.asn1.DERGenerator._tagged:Z
3: aload 0
iload 3
putfield org.bouncycastle.asn1.DERGenerator._isExplicit:Z
4: aload 0
iload 2
putfield org.bouncycastle.asn1.DERGenerator._tagNo:I
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/asn1/DERGenerator;
0 6 1 out Ljava/io/OutputStream;
0 6 2 tagNo I
0 6 3 isExplicit Z
MethodParameters:
Name Flags
out
tagNo
isExplicit
private void writeLength(java.io.OutputStream, int);
descriptor: (Ljava/io/OutputStream;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iload 2
bipush 127
if_icmple 13
1: iconst_1
istore 3
start local 3 2: iload 2
istore 4
start local 4 3: goto 5
4: StackMap locals: int int
StackMap stack:
iinc 3 1
5: StackMap locals:
StackMap stack:
iload 4
bipush 8
iushr
dup
istore 4
ifne 4
6: aload 1
iload 3
sipush 128
ior
i2b
invokevirtual java.io.OutputStream.write:(I)V
7: iload 3
iconst_1
isub
bipush 8
imul
istore 5
start local 5 8: goto 11
9: StackMap locals: int
StackMap stack:
aload 1
iload 2
iload 5
ishr
i2b
invokevirtual java.io.OutputStream.write:(I)V
10: iinc 5 -8
StackMap locals:
StackMap stack:
11: iload 5
ifge 9
end local 5 end local 4 end local 3 12: goto 14
13: StackMap locals:
StackMap stack:
aload 1
iload 2
i2b
invokevirtual java.io.OutputStream.write:(I)V
14: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/bouncycastle/asn1/DERGenerator;
0 15 1 out Ljava/io/OutputStream;
0 15 2 length I
2 12 3 size I
3 12 4 val I
8 12 5 i I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
length
void writeDEREncoded(java.io.OutputStream, int, byte[]);
descriptor: (Ljava/io/OutputStream;I[B)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
iload 2
invokevirtual java.io.OutputStream.write:(I)V
1: aload 0
aload 1
aload 3
arraylength
invokevirtual org.bouncycastle.asn1.DERGenerator.writeLength:(Ljava/io/OutputStream;I)V
2: aload 1
aload 3
invokevirtual java.io.OutputStream.write:([B)V
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/asn1/DERGenerator;
0 4 1 out Ljava/io/OutputStream;
0 4 2 tag I
0 4 3 bytes [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
tag
bytes
void writeDEREncoded(int, byte[]);
descriptor: (I[B)V
flags: (0x0000)
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.bouncycastle.asn1.DERGenerator._tagged:Z
ifeq 13
1: aload 0
getfield org.bouncycastle.asn1.DERGenerator._tagNo:I
sipush 128
ior
istore 3
start local 3 2: aload 0
getfield org.bouncycastle.asn1.DERGenerator._isExplicit:Z
ifeq 8
3: aload 0
getfield org.bouncycastle.asn1.DERGenerator._tagNo:I
bipush 32
ior
sipush 128
ior
istore 4
start local 4 4: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 5
start local 5 5: aload 0
aload 5
iload 1
aload 2
invokevirtual org.bouncycastle.asn1.DERGenerator.writeDEREncoded:(Ljava/io/OutputStream;I[B)V
6: aload 0
aload 0
getfield org.bouncycastle.asn1.DERGenerator._out:Ljava/io/OutputStream;
iload 4
aload 5
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
invokevirtual org.bouncycastle.asn1.DERGenerator.writeDEREncoded:(Ljava/io/OutputStream;I[B)V
end local 5 end local 4 7: goto 14
8: StackMap locals: int
StackMap stack:
iload 1
bipush 32
iand
ifeq 11
9: aload 0
aload 0
getfield org.bouncycastle.asn1.DERGenerator._out:Ljava/io/OutputStream;
iload 3
bipush 32
ior
aload 2
invokevirtual org.bouncycastle.asn1.DERGenerator.writeDEREncoded:(Ljava/io/OutputStream;I[B)V
10: goto 14
11: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.bouncycastle.asn1.DERGenerator._out:Ljava/io/OutputStream;
iload 3
aload 2
invokevirtual org.bouncycastle.asn1.DERGenerator.writeDEREncoded:(Ljava/io/OutputStream;I[B)V
end local 3 12: goto 14
13: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.bouncycastle.asn1.DERGenerator._out:Ljava/io/OutputStream;
iload 1
aload 2
invokevirtual org.bouncycastle.asn1.DERGenerator.writeDEREncoded:(Ljava/io/OutputStream;I[B)V
14: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/bouncycastle/asn1/DERGenerator;
0 15 1 tag I
0 15 2 bytes [B
2 12 3 tagNum I
4 7 4 newTag I
5 7 5 bOut Ljava/io/ByteArrayOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
tag
bytes
void writeDEREncoded(java.io.OutputStream, int, java.io.InputStream);
descriptor: (Ljava/io/OutputStream;ILjava/io/InputStream;)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iload 2
aload 3
invokestatic org.bouncycastle.util.io.Streams.readAll:(Ljava/io/InputStream;)[B
invokevirtual org.bouncycastle.asn1.DERGenerator.writeDEREncoded:(Ljava/io/OutputStream;I[B)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/asn1/DERGenerator;
0 2 1 out Ljava/io/OutputStream;
0 2 2 tag I
0 2 3 in Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
tag
in
}
SourceFile: "DERGenerator.java"