public class org.bouncycastle.crypto.params.DHPublicKeyParameters extends org.bouncycastle.crypto.params.DHKeyParameters
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.params.DHPublicKeyParameters
super_class: org.bouncycastle.crypto.params.DHKeyParameters
{
private static final java.math.BigInteger ONE;
descriptor: Ljava/math/BigInteger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.math.BigInteger TWO;
descriptor: Ljava/math/BigInteger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private java.math.BigInteger y;
descriptor: Ljava/math/BigInteger;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: lconst_1
invokestatic java.math.BigInteger.valueOf:(J)Ljava/math/BigInteger;
putstatic org.bouncycastle.crypto.params.DHPublicKeyParameters.ONE:Ljava/math/BigInteger;
1: ldc 2
invokestatic java.math.BigInteger.valueOf:(J)Ljava/math/BigInteger;
putstatic org.bouncycastle.crypto.params.DHPublicKeyParameters.TWO:Ljava/math/BigInteger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.math.BigInteger, org.bouncycastle.crypto.params.DHParameters);
descriptor: (Ljava/math/BigInteger;Lorg/bouncycastle/crypto/params/DHParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iconst_0
aload 2
invokespecial org.bouncycastle.crypto.params.DHKeyParameters.<init>:(ZLorg/bouncycastle/crypto/params/DHParameters;)V
1: aload 0
aload 0
aload 1
aload 2
invokevirtual org.bouncycastle.crypto.params.DHPublicKeyParameters.validate:(Ljava/math/BigInteger;Lorg/bouncycastle/crypto/params/DHParameters;)Ljava/math/BigInteger;
putfield org.bouncycastle.crypto.params.DHPublicKeyParameters.y:Ljava/math/BigInteger;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/crypto/params/DHPublicKeyParameters;
0 3 1 y Ljava/math/BigInteger;
0 3 2 params Lorg/bouncycastle/crypto/params/DHParameters;
MethodParameters:
Name Flags
y
params
private java.math.BigInteger validate(java.math.BigInteger, org.bouncycastle.crypto.params.DHParameters);
descriptor: (Ljava/math/BigInteger;Lorg/bouncycastle/crypto/params/DHParameters;)Ljava/math/BigInteger;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "y value cannot be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
getstatic org.bouncycastle.crypto.params.DHPublicKeyParameters.TWO:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.compareTo:(Ljava/math/BigInteger;)I
iflt 3
aload 1
aload 2
invokevirtual org.bouncycastle.crypto.params.DHParameters.getP:()Ljava/math/BigInteger;
getstatic org.bouncycastle.crypto.params.DHPublicKeyParameters.TWO:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.subtract:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.compareTo:(Ljava/math/BigInteger;)I
ifle 4
3: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "invalid DH public key"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.bouncycastle.crypto.params.DHParameters.getQ:()Ljava/math/BigInteger;
ifnull 8
5: getstatic org.bouncycastle.crypto.params.DHPublicKeyParameters.ONE:Ljava/math/BigInteger;
aload 1
aload 2
invokevirtual org.bouncycastle.crypto.params.DHParameters.getQ:()Ljava/math/BigInteger;
aload 2
invokevirtual org.bouncycastle.crypto.params.DHParameters.getP:()Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.modPow:(Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.equals:(Ljava/lang/Object;)Z
ifeq 7
6: aload 1
areturn
7: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Y value does not appear to be in correct group"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/bouncycastle/crypto/params/DHPublicKeyParameters;
0 9 1 y Ljava/math/BigInteger;
0 9 2 dhParams Lorg/bouncycastle/crypto/params/DHParameters;
MethodParameters:
Name Flags
y
dhParams
public java.math.BigInteger getY();
descriptor: ()Ljava/math/BigInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.params.DHPublicKeyParameters.y:Ljava/math/BigInteger;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/params/DHPublicKeyParameters;
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.params.DHPublicKeyParameters.y:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.hashCode:()I
aload 0
invokespecial org.bouncycastle.crypto.params.DHKeyParameters.hashCode:()I
ixor
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/params/DHPublicKeyParameters;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.bouncycastle.crypto.params.DHPublicKeyParameters
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
checkcast org.bouncycastle.crypto.params.DHPublicKeyParameters
astore 2
start local 2 3: aload 2
invokevirtual org.bouncycastle.crypto.params.DHPublicKeyParameters.getY:()Ljava/math/BigInteger;
aload 0
getfield org.bouncycastle.crypto.params.DHPublicKeyParameters.y:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.equals:(Ljava/lang/Object;)Z
ifeq 4
aload 0
aload 1
invokespecial org.bouncycastle.crypto.params.DHKeyParameters.equals:(Ljava/lang/Object;)Z
ifeq 4
iconst_1
ireturn
StackMap locals: org.bouncycastle.crypto.params.DHPublicKeyParameters
StackMap stack:
4: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/crypto/params/DHPublicKeyParameters;
0 5 1 obj Ljava/lang/Object;
3 5 2 other Lorg/bouncycastle/crypto/params/DHPublicKeyParameters;
MethodParameters:
Name Flags
obj
}
SourceFile: "DHPublicKeyParameters.java"