public class org.bouncycastle.asn1.DERBitString extends org.bouncycastle.asn1.ASN1BitString
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.asn1.DERBitString
super_class: org.bouncycastle.asn1.ASN1BitString
{
public static org.bouncycastle.asn1.DERBitString getInstance(java.lang.Object);
descriptor: (Ljava/lang/Object;)Lorg/bouncycastle/asn1/DERBitString;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
instanceof org.bouncycastle.asn1.DERBitString
ifeq 2
1: StackMap locals:
StackMap stack:
aload 0
checkcast org.bouncycastle.asn1.DERBitString
areturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof org.bouncycastle.asn1.DLBitString
ifeq 4
3: new org.bouncycastle.asn1.DERBitString
dup
aload 0
checkcast org.bouncycastle.asn1.DLBitString
getfield org.bouncycastle.asn1.DLBitString.data:[B
aload 0
checkcast org.bouncycastle.asn1.DLBitString
getfield org.bouncycastle.asn1.DLBitString.padBits:I
invokespecial org.bouncycastle.asn1.DERBitString.<init>:([BI)V
areturn
4: StackMap locals:
StackMap stack:
aload 0
instanceof byte[]
ifeq 9
5: aload 0
checkcast byte[]
invokestatic org.bouncycastle.asn1.DERBitString.fromByteArray:([B)Lorg/bouncycastle/asn1/ASN1Primitive;
checkcast org.bouncycastle.asn1.DERBitString
6: areturn
7: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 8: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "encoding error in getInstance: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.Exception.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 1 9: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "illegal object in getInstance: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
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;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 obj Ljava/lang/Object;
8 9 1 e Ljava/lang/Exception;
Exception table:
from to target type
5 6 7 Class java.lang.Exception
MethodParameters:
Name Flags
obj
public static org.bouncycastle.asn1.DERBitString getInstance(org.bouncycastle.asn1.ASN1TaggedObject, boolean);
descriptor: (Lorg/bouncycastle/asn1/ASN1TaggedObject;Z)Lorg/bouncycastle/asn1/DERBitString;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.bouncycastle.asn1.ASN1TaggedObject.getObject:()Lorg/bouncycastle/asn1/ASN1Primitive;
astore 2
start local 2 1: iload 1
ifne 2
aload 2
instanceof org.bouncycastle.asn1.DERBitString
ifeq 3
2: StackMap locals: org.bouncycastle.asn1.ASN1Primitive
StackMap stack:
aload 2
invokestatic org.bouncycastle.asn1.DERBitString.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/DERBitString;
areturn
3: StackMap locals:
StackMap stack:
aload 2
checkcast org.bouncycastle.asn1.ASN1OctetString
invokevirtual org.bouncycastle.asn1.ASN1OctetString.getOctets:()[B
invokestatic org.bouncycastle.asn1.DERBitString.fromOctetString:([B)Lorg/bouncycastle/asn1/DERBitString;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 obj Lorg/bouncycastle/asn1/ASN1TaggedObject;
0 4 1 explicit Z
1 4 2 o Lorg/bouncycastle/asn1/ASN1Primitive;
MethodParameters:
Name Flags
obj
explicit
protected void <init>(byte, int);
descriptor: (BI)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
invokestatic org.bouncycastle.asn1.DERBitString.toByteArray:(B)[B
iload 2
invokespecial org.bouncycastle.asn1.DERBitString.<init>:([BI)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/asn1/DERBitString;
0 2 1 data B
0 2 2 padBits I
MethodParameters:
Name Flags
data
padBits
private static byte[] toByteArray(byte);
descriptor: (B)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: iconst_1
newarray 8
astore 1
start local 1 1: aload 1
iconst_0
iload 0
bastore
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 data B
1 3 1 rv [B
MethodParameters:
Name Flags
data
public void <init>(byte[], int);
descriptor: ([BI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
invokespecial org.bouncycastle.asn1.ASN1BitString.<init>:([BI)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/asn1/DERBitString;
0 2 1 data [B
0 2 2 padBits I
MethodParameters:
Name Flags
data
padBits
public void <init>(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
invokespecial org.bouncycastle.asn1.DERBitString.<init>:([BI)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/asn1/DERBitString;
0 2 1 data [B
MethodParameters:
Name Flags
data
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokestatic org.bouncycastle.asn1.DERBitString.getBytes:(I)[B
iload 1
invokestatic org.bouncycastle.asn1.DERBitString.getPadBits:(I)I
invokespecial org.bouncycastle.asn1.ASN1BitString.<init>:([BI)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/asn1/DERBitString;
0 2 1 value I
MethodParameters:
Name Flags
value
public void <init>(org.bouncycastle.asn1.ASN1Encodable);
descriptor: (Lorg/bouncycastle/asn1/ASN1Encodable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive:()Lorg/bouncycastle/asn1/ASN1Primitive;
ldc "DER"
invokevirtual org.bouncycastle.asn1.ASN1Primitive.getEncoded:(Ljava/lang/String;)[B
iconst_0
invokespecial org.bouncycastle.asn1.ASN1BitString.<init>:([BI)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/asn1/DERBitString;
0 2 1 obj Lorg/bouncycastle/asn1/ASN1Encodable;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
obj
boolean isConstructed();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/DERBitString;
int encodedLength();
descriptor: ()I
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: iconst_1
aload 0
getfield org.bouncycastle.asn1.DERBitString.data:[B
arraylength
iconst_1
iadd
invokestatic org.bouncycastle.asn1.StreamUtil.calculateBodyLength:(I)I
iadd
aload 0
getfield org.bouncycastle.asn1.DERBitString.data:[B
arraylength
iadd
iconst_1
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/DERBitString;
void encode(org.bouncycastle.asn1.ASN1OutputStream);
descriptor: (Lorg/bouncycastle/asn1/ASN1OutputStream;)V
flags: (0x0000)
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.asn1.DERBitString.data:[B
aload 0
getfield org.bouncycastle.asn1.DERBitString.padBits:I
invokestatic org.bouncycastle.asn1.DERBitString.derForm:([BI)[B
astore 2
start local 2 1: aload 2
arraylength
iconst_1
iadd
newarray 8
astore 3
start local 3 2: aload 3
iconst_0
aload 0
invokevirtual org.bouncycastle.asn1.DERBitString.getPadBits:()I
i2b
bastore
3: aload 2
iconst_0
aload 3
iconst_1
aload 3
arraylength
iconst_1
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
4: aload 1
iconst_3
aload 3
invokevirtual org.bouncycastle.asn1.ASN1OutputStream.writeEncoded:(I[B)V
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/DERBitString;
0 6 1 out Lorg/bouncycastle/asn1/ASN1OutputStream;
1 6 2 string [B
2 6 3 bytes [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
static org.bouncycastle.asn1.DERBitString fromOctetString(byte[]);
descriptor: ([B)Lorg/bouncycastle/asn1/DERBitString;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=3, args_size=1
start local 0 0: aload 0
arraylength
iconst_1
if_icmpge 2
1: new java.lang.IllegalArgumentException
dup
ldc "truncated BIT STRING detected"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
baload
istore 1
start local 1 3: aload 0
arraylength
iconst_1
isub
newarray 8
astore 2
start local 2 4: aload 2
arraylength
ifeq 6
5: aload 0
iconst_1
aload 2
iconst_0
aload 0
arraylength
iconst_1
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
6: StackMap locals: int byte[]
StackMap stack:
new org.bouncycastle.asn1.DERBitString
dup
aload 2
iload 1
invokespecial org.bouncycastle.asn1.DERBitString.<init>:([BI)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 bytes [B
3 7 1 padBits I
4 7 2 data [B
MethodParameters:
Name Flags
bytes
}
SourceFile: "DERBitString.java"