public final class sun.security.ec.XDHPublicKeyImpl extends sun.security.x509.X509Key implements java.security.interfaces.XECPublicKey
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.security.ec.XDHPublicKeyImpl
super_class: sun.security.x509.X509Key
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private final java.math.BigInteger u;
descriptor: Ljava/math/BigInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.security.spec.NamedParameterSpec paramSpec;
descriptor: Ljava/security/spec/NamedParameterSpec;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(sun.security.ec.XECParameters, java.math.BigInteger);
descriptor: (Lsun/security/ec/XECParameters;Ljava/math/BigInteger;)V
flags: (0x0000)
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial sun.security.x509.X509Key.<init>:()V
1: aload 0
new java.security.spec.NamedParameterSpec
dup
aload 1
invokevirtual sun.security.ec.XECParameters.getName:()Ljava/lang/String;
invokespecial java.security.spec.NamedParameterSpec.<init>:(Ljava/lang/String;)V
putfield sun.security.ec.XDHPublicKeyImpl.paramSpec:Ljava/security/spec/NamedParameterSpec;
2: aload 0
new sun.security.x509.AlgorithmId
dup
aload 1
invokevirtual sun.security.ec.XECParameters.getOid:()Lsun/security/util/ObjectIdentifier;
invokespecial sun.security.x509.AlgorithmId.<init>:(Lsun/security/util/ObjectIdentifier;)V
putfield sun.security.ec.XDHPublicKeyImpl.algid:Lsun/security/x509/AlgorithmId;
3: aload 0
aload 2
aload 1
invokevirtual sun.security.ec.XECParameters.getP:()Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.mod:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
putfield sun.security.ec.XDHPublicKeyImpl.u:Ljava/math/BigInteger;
4: aload 0
getfield sun.security.ec.XDHPublicKeyImpl.u:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.toByteArray:()[B
astore 3
start local 3 5: aload 3
invokestatic sun.security.ec.XDHPublicKeyImpl.reverse:([B)V
6: aload 3
aload 1
invokevirtual sun.security.ec.XECParameters.getBytes:()I
invokestatic java.util.Arrays.copyOf:([BI)[B
astore 3
7: aload 0
new sun.security.util.BitArray
dup
aload 3
arraylength
bipush 8
imul
aload 3
invokespecial sun.security.util.BitArray.<init>:(I[B)V
invokevirtual sun.security.ec.XDHPublicKeyImpl.setKey:(Lsun/security/util/BitArray;)V
8: aload 0
aload 1
invokevirtual sun.security.ec.XDHPublicKeyImpl.checkLength:(Lsun/security/ec/XECParameters;)V
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/security/ec/XDHPublicKeyImpl;
0 10 1 params Lsun/security/ec/XECParameters;
0 10 2 u Ljava/math/BigInteger;
5 10 3 u_arr [B
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
params
u
void <init>(byte[]);
descriptor: ([B)V
flags: (0x0000)
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokespecial sun.security.x509.X509Key.<init>:()V
1: aload 0
aload 1
invokevirtual sun.security.ec.XDHPublicKeyImpl.decode:([B)V
2: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
java/security/InvalidKeyException.<init>(Ljava/lang/String;)V (8)
(Ljava/lang/String;)Ljava/security/InvalidKeyException;
aload 0
getfield sun.security.ec.XDHPublicKeyImpl.algid:Lsun/security/x509/AlgorithmId;
invokestatic sun.security.ec.XECParameters.get:(Ljava/util/function/Function;Lsun/security/x509/AlgorithmId;)Lsun/security/ec/XECParameters;
3: astore 2
start local 2 4: aload 0
new java.security.spec.NamedParameterSpec
dup
aload 2
invokevirtual sun.security.ec.XECParameters.getName:()Ljava/lang/String;
invokespecial java.security.spec.NamedParameterSpec.<init>:(Ljava/lang/String;)V
putfield sun.security.ec.XDHPublicKeyImpl.paramSpec:Ljava/security/spec/NamedParameterSpec;
5: aload 0
invokevirtual sun.security.ec.XDHPublicKeyImpl.getKey:()Lsun/security/util/BitArray;
invokevirtual sun.security.util.BitArray.toByteArray:()[B
astore 3
start local 3 6: aload 3
invokestatic sun.security.ec.XDHPublicKeyImpl.reverse:([B)V
7: aload 2
invokevirtual sun.security.ec.XECParameters.getBits:()I
bipush 8
irem
istore 4
start local 4 8: iload 4
ifeq 11
9: iconst_1
iload 4
ishl
iconst_1
isub
istore 5
start local 5 10: aload 3
iconst_0
dup2
baload
iload 5
iand
i2b
bastore
end local 5 11: StackMap locals: sun.security.ec.XDHPublicKeyImpl byte[] sun.security.ec.XECParameters byte[] int
StackMap stack:
aload 0
new java.math.BigInteger
dup
iconst_1
aload 3
invokespecial java.math.BigInteger.<init>:(I[B)V
putfield sun.security.ec.XDHPublicKeyImpl.u:Ljava/math/BigInteger;
12: aload 0
aload 2
invokevirtual sun.security.ec.XDHPublicKeyImpl.checkLength:(Lsun/security/ec/XECParameters;)V
13: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/security/ec/XDHPublicKeyImpl;
0 14 1 encoded [B
4 14 2 params Lsun/security/ec/XECParameters;
6 14 3 u_arr [B
8 14 4 bitsMod8 I
10 11 5 mask I
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
encoded
void checkLength(sun.security.ec.XECParameters);
descriptor: (Lsun/security/ec/XECParameters;)V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual sun.security.ec.XECParameters.getBytes:()I
bipush 8
imul
aload 0
invokevirtual sun.security.ec.XDHPublicKeyImpl.getKey:()Lsun/security/util/BitArray;
invokevirtual sun.security.util.BitArray.length:()I
if_icmpeq 4
1: new java.security.InvalidKeyException
dup
2: new java.lang.StringBuilder
dup
ldc "key length must be "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual sun.security.ec.XECParameters.getBytes:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/ec/XDHPublicKeyImpl;
0 5 1 params Lsun/security/ec/XECParameters;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
params
public java.math.BigInteger getU();
descriptor: ()Ljava/math/BigInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ec.XDHPublicKeyImpl.u:Ljava/math/BigInteger;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ec/XDHPublicKeyImpl;
public java.security.spec.AlgorithmParameterSpec getParams();
descriptor: ()Ljava/security/spec/AlgorithmParameterSpec;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ec.XDHPublicKeyImpl.paramSpec:Ljava/security/spec/NamedParameterSpec;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ec/XDHPublicKeyImpl;
public java.lang.String getAlgorithm();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "XDH"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ec/XDHPublicKeyImpl;
protected java.lang.Object writeReplace();
descriptor: ()Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=1, args_size=1
start local 0 0: new java.security.KeyRep
dup
getstatic java.security.KeyRep$Type.PUBLIC:Ljava/security/KeyRep$Type;
1: aload 0
invokevirtual sun.security.ec.XDHPublicKeyImpl.getAlgorithm:()Ljava/lang/String;
2: aload 0
invokevirtual sun.security.ec.XDHPublicKeyImpl.getFormat:()Ljava/lang/String;
3: aload 0
invokevirtual sun.security.ec.XDHPublicKeyImpl.getEncoded:()[B
4: invokespecial java.security.KeyRep.<init>:(Ljava/security/KeyRep$Type;Ljava/lang/String;Ljava/lang/String;[B)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/ec/XDHPublicKeyImpl;
Exceptions:
throws java.io.ObjectStreamException
private static void swap(byte[], int, int);
descriptor: ([BII)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
baload
istore 3
start local 3 1: aload 0
iload 1
aload 0
iload 2
baload
bastore
2: aload 0
iload 2
iload 3
bastore
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 arr [B
0 4 1 i I
0 4 2 j I
1 4 3 tmp B
MethodParameters:
Name Flags
arr
i
j
private static void reverse(byte[]);
descriptor: ([B)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
arraylength
iconst_1
isub
istore 2
start local 2 2: goto 6
3: StackMap locals: int int
StackMap stack:
aload 0
iload 1
iload 2
invokestatic sun.security.ec.XDHPublicKeyImpl.swap:([BII)V
4: iinc 1 1
5: iinc 2 -1
6: StackMap locals:
StackMap stack:
iload 1
iload 2
if_icmplt 3
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 arr [B
1 8 1 i I
2 8 2 j I
MethodParameters:
Name Flags
arr
}
SourceFile: "XDHPublicKeyImpl.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Type = java.security.KeyRep$Type of java.security.KeyRep