public final class org.bouncycastle.crypto.params.X25519PrivateKeyParameters extends org.bouncycastle.crypto.params.AsymmetricKeyParameter
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.bouncycastle.crypto.params.X25519PrivateKeyParameters
super_class: org.bouncycastle.crypto.params.AsymmetricKeyParameter
{
public static final int KEY_SIZE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 32
public static final int SECRET_SIZE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 32
private final byte[] data;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.security.SecureRandom);
descriptor: (Ljava/security/SecureRandom;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
invokespecial org.bouncycastle.crypto.params.AsymmetricKeyParameter.<init>:(Z)V
1: aload 0
bipush 32
newarray 8
putfield org.bouncycastle.crypto.params.X25519PrivateKeyParameters.data:[B
2: aload 1
aload 0
getfield org.bouncycastle.crypto.params.X25519PrivateKeyParameters.data:[B
invokestatic org.bouncycastle.math.ec.rfc7748.X25519.generatePrivateKey:(Ljava/security/SecureRandom;[B)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/crypto/params/X25519PrivateKeyParameters;
0 4 1 random Ljava/security/SecureRandom;
MethodParameters:
Name Flags
random
public void <init>(byte[], int);
descriptor: ([BI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iconst_1
invokespecial org.bouncycastle.crypto.params.AsymmetricKeyParameter.<init>:(Z)V
1: aload 0
bipush 32
newarray 8
putfield org.bouncycastle.crypto.params.X25519PrivateKeyParameters.data:[B
2: aload 1
iload 2
aload 0
getfield org.bouncycastle.crypto.params.X25519PrivateKeyParameters.data:[B
iconst_0
bipush 32
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/crypto/params/X25519PrivateKeyParameters;
0 4 1 buf [B
0 4 2 off I
MethodParameters:
Name Flags
buf
off
public void <init>(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
invokespecial org.bouncycastle.crypto.params.AsymmetricKeyParameter.<init>:(Z)V
1: aload 0
bipush 32
newarray 8
putfield org.bouncycastle.crypto.params.X25519PrivateKeyParameters.data:[B
2: bipush 32
aload 1
aload 0
getfield org.bouncycastle.crypto.params.X25519PrivateKeyParameters.data:[B
invokestatic org.bouncycastle.util.io.Streams.readFully:(Ljava/io/InputStream;[B)I
if_icmpeq 4
3: new java.io.EOFException
dup
ldc "EOF encountered in middle of X25519 private key"
invokespecial java.io.EOFException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: org.bouncycastle.crypto.params.X25519PrivateKeyParameters java.io.InputStream
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/crypto/params/X25519PrivateKeyParameters;
0 5 1 input Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
input
public void encode(byte[], int);
descriptor: ([BI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.bouncycastle.crypto.params.X25519PrivateKeyParameters.data:[B
iconst_0
aload 1
iload 2
bipush 32
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/params/X25519PrivateKeyParameters;
0 2 1 buf [B
0 2 2 off I
MethodParameters:
Name Flags
buf
off
public byte[] getEncoded();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.params.X25519PrivateKeyParameters.data:[B
invokestatic org.bouncycastle.util.Arrays.clone:([B)[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/params/X25519PrivateKeyParameters;
public org.bouncycastle.crypto.params.X25519PublicKeyParameters generatePublicKey();
descriptor: ()Lorg/bouncycastle/crypto/params/X25519PublicKeyParameters;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: bipush 32
newarray 8
astore 1
start local 1 1: aload 0
getfield org.bouncycastle.crypto.params.X25519PrivateKeyParameters.data:[B
iconst_0
aload 1
iconst_0
invokestatic org.bouncycastle.math.ec.rfc7748.X25519.generatePublicKey:([BI[BI)V
2: new org.bouncycastle.crypto.params.X25519PublicKeyParameters
dup
aload 1
iconst_0
invokespecial org.bouncycastle.crypto.params.X25519PublicKeyParameters.<init>:([BI)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/crypto/params/X25519PrivateKeyParameters;
1 3 1 publicKey [B
public void generateSecret(org.bouncycastle.crypto.params.X25519PublicKeyParameters, byte[], int);
descriptor: (Lorg/bouncycastle/crypto/params/X25519PublicKeyParameters;[BI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: bipush 32
newarray 8
astore 4
start local 4 1: aload 1
aload 4
iconst_0
invokevirtual org.bouncycastle.crypto.params.X25519PublicKeyParameters.encode:([BI)V
2: aload 0
getfield org.bouncycastle.crypto.params.X25519PrivateKeyParameters.data:[B
iconst_0
aload 4
iconst_0
aload 2
iload 3
invokestatic org.bouncycastle.math.ec.rfc7748.X25519.calculateAgreement:([BI[BI[BI)Z
ifne 4
3: new java.lang.IllegalStateException
dup
ldc "X25519 agreement failed"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: byte[]
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/crypto/params/X25519PrivateKeyParameters;
0 5 1 publicKey Lorg/bouncycastle/crypto/params/X25519PublicKeyParameters;
0 5 2 buf [B
0 5 3 off I
1 5 4 encoded [B
MethodParameters:
Name Flags
publicKey
buf
off
}
SourceFile: "X25519PrivateKeyParameters.java"