public final class sun.security.ec.ed.EdDSAPublicKeyImpl extends sun.security.x509.X509Key implements java.security.interfaces.EdECPublicKey
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.security.ec.ed.EdDSAPublicKeyImpl
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.security.spec.EdECPoint point;
descriptor: Ljava/security/spec/EdECPoint;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.security.spec.NamedParameterSpec paramSpec;
descriptor: Ljava/security/spec/NamedParameterSpec;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(sun.security.ec.ed.EdDSAParameters, java.security.spec.EdECPoint);
descriptor: (Lsun/security/ec/ed/EdDSAParameters;Ljava/security/spec/EdECPoint;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, 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.ed.EdDSAParameters.getName:()Ljava/lang/String;
invokespecial java.security.spec.NamedParameterSpec.<init>:(Ljava/lang/String;)V
putfield sun.security.ec.ed.EdDSAPublicKeyImpl.paramSpec:Ljava/security/spec/NamedParameterSpec;
2: aload 0
new sun.security.x509.AlgorithmId
dup
aload 1
invokevirtual sun.security.ec.ed.EdDSAParameters.getOid:()Lsun/security/util/ObjectIdentifier;
invokespecial sun.security.x509.AlgorithmId.<init>:(Lsun/security/util/ObjectIdentifier;)V
putfield sun.security.ec.ed.EdDSAPublicKeyImpl.algid:Lsun/security/x509/AlgorithmId;
3: aload 0
aload 2
putfield sun.security.ec.ed.EdDSAPublicKeyImpl.point:Ljava/security/spec/EdECPoint;
4: aload 2
invokevirtual java.security.spec.EdECPoint.getY:()Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.toByteArray:()[B
astore 3
start local 3 5: aload 3
invokestatic sun.security.ec.ed.EdDSAPublicKeyImpl.reverse:([B)V
6: aload 3
aload 1
invokevirtual sun.security.ec.ed.EdDSAParameters.getKeyLength:()I
invokestatic java.util.Arrays.copyOf:([BI)[B
astore 3
7: aload 2
invokevirtual java.security.spec.EdECPoint.isXOdd:()Z
ifeq 8
sipush 128
goto 9
StackMap locals: sun.security.ec.ed.EdDSAPublicKeyImpl sun.security.ec.ed.EdDSAParameters java.security.spec.EdECPoint byte[]
StackMap stack:
8: iconst_0
StackMap locals:
StackMap stack: int
9: i2b
istore 4
start local 4 10: aload 3
aload 3
arraylength
iconst_1
isub
dup2
baload
iload 4
ior
i2b
bastore
11: 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.ed.EdDSAPublicKeyImpl.setKey:(Lsun/security/util/BitArray;)V
12: aload 0
aload 1
invokevirtual sun.security.ec.ed.EdDSAPublicKeyImpl.checkLength:(Lsun/security/ec/ed/EdDSAParameters;)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/ed/EdDSAPublicKeyImpl;
0 14 1 params Lsun/security/ec/ed/EdDSAParameters;
0 14 2 point Ljava/security/spec/EdECPoint;
5 14 3 encodedPoint [B
10 14 4 msb B
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
params
point
public void <init>(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, 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.ed.EdDSAPublicKeyImpl.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.ed.EdDSAPublicKeyImpl.algid:Lsun/security/x509/AlgorithmId;
invokestatic sun.security.ec.ed.EdDSAParameters.get:(Ljava/util/function/Function;Lsun/security/x509/AlgorithmId;)Lsun/security/ec/ed/EdDSAParameters;
3: astore 2
start local 2 4: aload 0
new java.security.spec.NamedParameterSpec
dup
aload 2
invokevirtual sun.security.ec.ed.EdDSAParameters.getName:()Ljava/lang/String;
invokespecial java.security.spec.NamedParameterSpec.<init>:(Ljava/lang/String;)V
putfield sun.security.ec.ed.EdDSAPublicKeyImpl.paramSpec:Ljava/security/spec/NamedParameterSpec;
5: aload 0
invokevirtual sun.security.ec.ed.EdDSAPublicKeyImpl.getKey:()Lsun/security/util/BitArray;
invokevirtual sun.security.util.BitArray.toByteArray:()[B
astore 3
start local 3 6: aload 3
aload 3
arraylength
iconst_1
isub
baload
istore 4
start local 4 7: aload 3
aload 3
arraylength
iconst_1
isub
dup2
baload
bipush 127
iand
i2b
bastore
8: iload 4
sipush 128
iand
ifeq 9
iconst_1
goto 10
StackMap locals: sun.security.ec.ed.EdDSAPublicKeyImpl byte[] sun.security.ec.ed.EdDSAParameters byte[] int
StackMap stack:
9: iconst_0
StackMap locals:
StackMap stack: int
10: istore 5
start local 5 11: aload 3
invokestatic sun.security.ec.ed.EdDSAPublicKeyImpl.reverse:([B)V
12: new java.math.BigInteger
dup
iconst_1
aload 3
invokespecial java.math.BigInteger.<init>:(I[B)V
astore 6
start local 6 13: aload 0
new java.security.spec.EdECPoint
dup
iload 5
aload 6
invokespecial java.security.spec.EdECPoint.<init>:(ZLjava/math/BigInteger;)V
putfield sun.security.ec.ed.EdDSAPublicKeyImpl.point:Ljava/security/spec/EdECPoint;
14: aload 0
aload 2
invokevirtual sun.security.ec.ed.EdDSAPublicKeyImpl.checkLength:(Lsun/security/ec/ed/EdDSAParameters;)V
15: return
end local 6 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 16 0 this Lsun/security/ec/ed/EdDSAPublicKeyImpl;
0 16 1 encoded [B
4 16 2 params Lsun/security/ec/ed/EdDSAParameters;
6 16 3 encodedPoint [B
7 16 4 msb B
11 16 5 xOdd Z
13 16 6 y Ljava/math/BigInteger;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
encoded
void checkLength(sun.security.ec.ed.EdDSAParameters);
descriptor: (Lsun/security/ec/ed/EdDSAParameters;)V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual sun.security.ec.ed.EdDSAParameters.getKeyLength:()I
bipush 8
imul
aload 0
invokevirtual sun.security.ec.ed.EdDSAPublicKeyImpl.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.ed.EdDSAParameters.getKeyLength:()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/ed/EdDSAPublicKeyImpl;
0 5 1 params Lsun/security/ec/ed/EdDSAParameters;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
params
public byte[] getEncodedPoint();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.security.ec.ed.EdDSAPublicKeyImpl.getKey:()Lsun/security/util/BitArray;
invokevirtual sun.security.util.BitArray.toByteArray:()[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ec/ed/EdDSAPublicKeyImpl;
public java.security.spec.EdECPoint getPoint();
descriptor: ()Ljava/security/spec/EdECPoint;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ec.ed.EdDSAPublicKeyImpl.point:Ljava/security/spec/EdECPoint;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ec/ed/EdDSAPublicKeyImpl;
public java.security.spec.NamedParameterSpec getParams();
descriptor: ()Ljava/security/spec/NamedParameterSpec;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ec.ed.EdDSAPublicKeyImpl.paramSpec:Ljava/security/spec/NamedParameterSpec;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ec/ed/EdDSAPublicKeyImpl;
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 "EdDSA"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ec/ed/EdDSAPublicKeyImpl;
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;
aload 0
invokevirtual sun.security.ec.ed.EdDSAPublicKeyImpl.getAlgorithm:()Ljava/lang/String;
aload 0
invokevirtual sun.security.ec.ed.EdDSAPublicKeyImpl.getFormat:()Ljava/lang/String;
1: aload 0
invokevirtual sun.security.ec.ed.EdDSAPublicKeyImpl.getEncoded:()[B
2: 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 3 0 this Lsun/security/ec/ed/EdDSAPublicKeyImpl;
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.ed.EdDSAPublicKeyImpl.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: "EdDSAPublicKeyImpl.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