public final class sun.security.ec.XDHPrivateKeyImpl extends sun.security.pkcs.PKCS8Key implements java.security.interfaces.XECPrivateKey
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.security.ec.XDHPrivateKeyImpl
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.AlgorithmParameterSpec paramSpec;
descriptor: Ljava/security/spec/AlgorithmParameterSpec;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private byte[] k;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
void <init>(sun.security.ec.XECParameters, byte[]);
descriptor: (Lsun/security/ec/XECParameters;[B)V
flags: (0x0000)
Code:
stack=4, locals=3, 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.XECParameters.getName:()Ljava/lang/String;
invokespecial java.security.spec.NamedParameterSpec.<init>:(Ljava/lang/String;)V
putfield sun.security.ec.XDHPrivateKeyImpl.paramSpec:Ljava/security/spec/AlgorithmParameterSpec;
2: aload 0
aload 2
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
putfield sun.security.ec.XDHPrivateKeyImpl.k:[B
3: 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.XDHPrivateKeyImpl.algid:Lsun/security/x509/AlgorithmId;
4: aload 0
invokevirtual sun.security.ec.XDHPrivateKeyImpl.encodeKey:()V
5: aload 0
aload 1
invokevirtual sun.security.ec.XDHPrivateKeyImpl.checkLength:(Lsun/security/ec/XECParameters;)V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/ec/XDHPrivateKeyImpl;
0 7 1 params Lsun/security/ec/XECParameters;
0 7 2 k [B
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
params
k
void <init>(byte[]);
descriptor: ([B)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial sun.security.pkcs.PKCS8Key.<init>:()V
1: aload 0
aload 1
invokevirtual sun.security.ec.XDHPrivateKeyImpl.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.XDHPrivateKeyImpl.algid:Lsun/security/x509/AlgorithmId;
3: invokestatic sun.security.ec.XECParameters.get:(Ljava/util/function/Function;Lsun/security/x509/AlgorithmId;)Lsun/security/ec/XECParameters;
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.XDHPrivateKeyImpl.paramSpec:Ljava/security/spec/AlgorithmParameterSpec;
5: aload 0
invokevirtual sun.security.ec.XDHPrivateKeyImpl.decodeKey:()V
6: aload 0
aload 2
invokevirtual sun.security.ec.XDHPrivateKeyImpl.checkLength:(Lsun/security/ec/XECParameters;)V
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/ec/XDHPrivateKeyImpl;
0 8 1 encoded [B
4 8 2 params Lsun/security/ec/XECParameters;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
encoded
private void decodeKey();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: new sun.security.util.DerInputStream
dup
aload 0
getfield sun.security.ec.XDHPrivateKeyImpl.key:[B
invokespecial sun.security.util.DerInputStream.<init>:([B)V
astore 1
start local 1 1: aload 0
aload 1
invokevirtual sun.security.util.DerInputStream.getOctetString:()[B
putfield sun.security.ec.XDHPrivateKeyImpl.k:[B
end local 1 2: goto 5
StackMap locals:
StackMap stack: java.io.IOException
3: astore 1
start local 1 4: new java.security.InvalidKeyException
dup
aload 1
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/ec/XDHPrivateKeyImpl;
1 2 1 derStream Lsun/security/util/DerInputStream;
4 5 1 ex Ljava/io/IOException;
Exception table:
from to target type
0 2 3 Class java.io.IOException
Exceptions:
throws java.security.InvalidKeyException
private void encodeKey();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=1
start local 0 0: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
getfield sun.security.ec.XDHPrivateKeyImpl.k:[B
invokevirtual sun.security.util.DerOutputStream.putOctetString:([B)V
2: aload 0
aload 1
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
putfield sun.security.ec.XDHPrivateKeyImpl.key:[B
3: goto 6
StackMap locals: sun.security.ec.XDHPrivateKeyImpl sun.security.util.DerOutputStream
StackMap stack: java.io.IOException
4: astore 2
start local 2 5: new java.security.ProviderException
dup
aload 2
invokespecial java.security.ProviderException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/ec/XDHPrivateKeyImpl;
1 7 1 derKey Lsun/security/util/DerOutputStream;
5 6 2 ex Ljava/io/IOException;
Exception table:
from to target type
1 3 4 Class java.io.IOException
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
aload 0
getfield sun.security.ec.XDHPrivateKeyImpl.k:[B
arraylength
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/XDHPrivateKeyImpl;
0 5 1 params Lsun/security/ec/XECParameters;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
params
public byte[] getK();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ec.XDHPrivateKeyImpl.k:[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/XDHPrivateKeyImpl;
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/XDHPrivateKeyImpl;
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.XDHPrivateKeyImpl.paramSpec:Ljava/security/spec/AlgorithmParameterSpec;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ec/XDHPrivateKeyImpl;
public java.util.Optional<byte[]> getScalar();
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.XDHPrivateKeyImpl.getK:()[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/XDHPrivateKeyImpl;
Signature: ()Ljava/util/Optional<[B>;
}
SourceFile: "XDHPrivateKeyImpl.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles