public final class sun.security.ec.ed.EdDSAPrivateKeyImpl extends sun.security.pkcs.PKCS8Key implements java.security.interfaces.EdECPrivateKey
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.security.ec.ed.EdDSAPrivateKeyImpl
super_class: sun.security.pkcs.PKCS8Key
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private final java.security.spec.NamedParameterSpec paramSpec;
descriptor: Ljava/security/spec/NamedParameterSpec;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private byte[] h;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
void <init>(sun.security.ec.ed.EdDSAParameters, byte[]);
descriptor: (Lsun/security/ec/ed/EdDSAParameters;[B)V
flags: (0x0000)
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial sun.security.pkcs.PKCS8Key.<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.EdDSAPrivateKeyImpl.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.EdDSAPrivateKeyImpl.algid:Lsun/security/x509/AlgorithmId;
3: aload 0
aload 2
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
putfield sun.security.ec.ed.EdDSAPrivateKeyImpl.h:[B
4: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 3
start local 3 5: aload 3
aload 2
invokevirtual sun.security.util.DerOutputStream.putOctetString:([B)V
6: aload 0
aload 3
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
putfield sun.security.ec.ed.EdDSAPrivateKeyImpl.key:[B
7: goto 10
StackMap locals: sun.security.ec.ed.EdDSAPrivateKeyImpl sun.security.ec.ed.EdDSAParameters byte[] sun.security.util.DerOutputStream
StackMap stack: java.io.IOException
8: astore 4
start local 4 9: new java.lang.AssertionError
dup
ldc "Should not happen"
aload 4
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 10: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual sun.security.ec.ed.EdDSAPrivateKeyImpl.checkLength:(Lsun/security/ec/ed/EdDSAParameters;)V
11: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/security/ec/ed/EdDSAPrivateKeyImpl;
0 12 1 params Lsun/security/ec/ed/EdDSAParameters;
0 12 2 h [B
5 12 3 derKey Lsun/security/util/DerOutputStream;
9 10 4 ex Ljava/io/IOException;
Exception table:
from to target type
5 7 8 Class java.io.IOException
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
params
h
void <init>(byte[]);
descriptor: ([B)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial sun.security.pkcs.PKCS8Key.<init>:([B)V
1: 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.EdDSAPrivateKeyImpl.algid:Lsun/security/x509/AlgorithmId;
2: invokestatic sun.security.ec.ed.EdDSAParameters.get:(Ljava/util/function/Function;Lsun/security/x509/AlgorithmId;)Lsun/security/ec/ed/EdDSAParameters;
astore 2
start local 2 3: 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.EdDSAPrivateKeyImpl.paramSpec:Ljava/security/spec/NamedParameterSpec;
4: new sun.security.util.DerInputStream
dup
aload 0
getfield sun.security.ec.ed.EdDSAPrivateKeyImpl.key:[B
invokespecial sun.security.util.DerInputStream.<init>:([B)V
astore 3
start local 3 5: aload 0
aload 3
invokevirtual sun.security.util.DerInputStream.getOctetString:()[B
putfield sun.security.ec.ed.EdDSAPrivateKeyImpl.h:[B
end local 3 6: goto 9
StackMap locals: sun.security.ec.ed.EdDSAPrivateKeyImpl byte[] sun.security.ec.ed.EdDSAParameters
StackMap stack: java.io.IOException
7: astore 3
start local 3 8: new java.security.InvalidKeyException
dup
aload 3
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 9: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual sun.security.ec.ed.EdDSAPrivateKeyImpl.checkLength:(Lsun/security/ec/ed/EdDSAParameters;)V
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/security/ec/ed/EdDSAPrivateKeyImpl;
0 11 1 encoded [B
3 11 2 params Lsun/security/ec/ed/EdDSAParameters;
5 6 3 derStream Lsun/security/util/DerInputStream;
8 9 3 ex Ljava/io/IOException;
Exception table:
from to target type
4 6 7 Class java.io.IOException
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
aload 0
getfield sun.security.ec.ed.EdDSAPrivateKeyImpl.h:[B
arraylength
if_icmpeq 4
1: new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "key length is "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.ec.ed.EdDSAPrivateKeyImpl.h:[B
arraylength
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
2: ldc ", key length must be "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
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/EdDSAPrivateKeyImpl;
0 5 1 params Lsun/security/ec/ed/EdDSAParameters;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
params
public byte[] getKey();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ec.ed.EdDSAPrivateKeyImpl.h:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ec/ed/EdDSAPrivateKeyImpl;
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/EdDSAPrivateKeyImpl;
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.EdDSAPrivateKeyImpl.paramSpec:Ljava/security/spec/NamedParameterSpec;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ec/ed/EdDSAPrivateKeyImpl;
public java.util.Optional<byte[]> getBytes();
descriptor: ()Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.security.ec.ed.EdDSAPrivateKeyImpl.getKey:()[B
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ec/ed/EdDSAPrivateKeyImpl;
Signature: ()Ljava/util/Optional<[B>;
}
SourceFile: "EdDSAPrivateKeyImpl.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles