public class org.bouncycastle.crypto.agreement.kdf.ECDHKEKGenerator implements org.bouncycastle.crypto.DerivationFunction
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.agreement.kdf.ECDHKEKGenerator
super_class: java.lang.Object
{
private org.bouncycastle.crypto.DerivationFunction kdf;
descriptor: Lorg/bouncycastle/crypto/DerivationFunction;
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.asn1.DERObjectIdentifier algorithm;
descriptor: Lorg/bouncycastle/asn1/DERObjectIdentifier;
flags: (0x0002) ACC_PRIVATE
private int keySize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private byte[] z;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
public void <init>(org.bouncycastle.crypto.Digest);
descriptor: (Lorg/bouncycastle/crypto/Digest;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new org.bouncycastle.crypto.generators.KDF2BytesGenerator
dup
aload 1
invokespecial org.bouncycastle.crypto.generators.KDF2BytesGenerator.<init>:(Lorg/bouncycastle/crypto/Digest;)V
putfield org.bouncycastle.crypto.agreement.kdf.ECDHKEKGenerator.kdf:Lorg/bouncycastle/crypto/DerivationFunction;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/crypto/agreement/kdf/ECDHKEKGenerator;
0 3 1 digest Lorg/bouncycastle/crypto/Digest;
MethodParameters:
Name Flags
digest
public void init(org.bouncycastle.crypto.DerivationParameters);
descriptor: (Lorg/bouncycastle/crypto/DerivationParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
checkcast org.bouncycastle.crypto.agreement.kdf.DHKDFParameters
astore 2
start local 2 1: aload 0
aload 2
invokevirtual org.bouncycastle.crypto.agreement.kdf.DHKDFParameters.getAlgorithm:()Lorg/bouncycastle/asn1/DERObjectIdentifier;
putfield org.bouncycastle.crypto.agreement.kdf.ECDHKEKGenerator.algorithm:Lorg/bouncycastle/asn1/DERObjectIdentifier;
2: aload 0
aload 2
invokevirtual org.bouncycastle.crypto.agreement.kdf.DHKDFParameters.getKeySize:()I
putfield org.bouncycastle.crypto.agreement.kdf.ECDHKEKGenerator.keySize:I
3: aload 0
aload 2
invokevirtual org.bouncycastle.crypto.agreement.kdf.DHKDFParameters.getZ:()[B
putfield org.bouncycastle.crypto.agreement.kdf.ECDHKEKGenerator.z:[B
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/crypto/agreement/kdf/ECDHKEKGenerator;
0 5 1 param Lorg/bouncycastle/crypto/DerivationParameters;
1 5 2 params Lorg/bouncycastle/crypto/agreement/kdf/DHKDFParameters;
MethodParameters:
Name Flags
param
public org.bouncycastle.crypto.Digest getDigest();
descriptor: ()Lorg/bouncycastle/crypto/Digest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.agreement.kdf.ECDHKEKGenerator.kdf:Lorg/bouncycastle/crypto/DerivationFunction;
invokeinterface org.bouncycastle.crypto.DerivationFunction.getDigest:()Lorg/bouncycastle/crypto/Digest;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/agreement/kdf/ECDHKEKGenerator;
public int generateBytes(byte[], int, int);
descriptor: ([BII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new org.bouncycastle.asn1.ASN1EncodableVector
dup
invokespecial org.bouncycastle.asn1.ASN1EncodableVector.<init>:()V
astore 4
start local 4 1: aload 4
new org.bouncycastle.asn1.x509.AlgorithmIdentifier
dup
aload 0
getfield org.bouncycastle.crypto.agreement.kdf.ECDHKEKGenerator.algorithm:Lorg/bouncycastle/asn1/DERObjectIdentifier;
new org.bouncycastle.asn1.DERNull
dup
invokespecial org.bouncycastle.asn1.DERNull.<init>:()V
invokespecial org.bouncycastle.asn1.x509.AlgorithmIdentifier.<init>:(Lorg/bouncycastle/asn1/DERObjectIdentifier;Lorg/bouncycastle/asn1/DEREncodable;)V
invokevirtual org.bouncycastle.asn1.ASN1EncodableVector.add:(Lorg/bouncycastle/asn1/DEREncodable;)V
2: aload 4
new org.bouncycastle.asn1.DERTaggedObject
dup
iconst_1
iconst_2
new org.bouncycastle.asn1.DEROctetString
dup
aload 0
aload 0
getfield org.bouncycastle.crypto.agreement.kdf.ECDHKEKGenerator.keySize:I
invokevirtual org.bouncycastle.crypto.agreement.kdf.ECDHKEKGenerator.integerToBytes:(I)[B
invokespecial org.bouncycastle.asn1.DEROctetString.<init>:([B)V
invokespecial org.bouncycastle.asn1.DERTaggedObject.<init>:(ZILorg/bouncycastle/asn1/DEREncodable;)V
invokevirtual org.bouncycastle.asn1.ASN1EncodableVector.add:(Lorg/bouncycastle/asn1/DEREncodable;)V
3: aload 0
getfield org.bouncycastle.crypto.agreement.kdf.ECDHKEKGenerator.kdf:Lorg/bouncycastle/crypto/DerivationFunction;
new org.bouncycastle.crypto.params.KDFParameters
dup
aload 0
getfield org.bouncycastle.crypto.agreement.kdf.ECDHKEKGenerator.z:[B
new org.bouncycastle.asn1.DERSequence
dup
aload 4
invokespecial org.bouncycastle.asn1.DERSequence.<init>:(Lorg/bouncycastle/asn1/ASN1EncodableVector;)V
invokevirtual org.bouncycastle.asn1.DERSequence.getDEREncoded:()[B
invokespecial org.bouncycastle.crypto.params.KDFParameters.<init>:([B[B)V
invokeinterface org.bouncycastle.crypto.DerivationFunction.init:(Lorg/bouncycastle/crypto/DerivationParameters;)V
4: aload 0
getfield org.bouncycastle.crypto.agreement.kdf.ECDHKEKGenerator.kdf:Lorg/bouncycastle/crypto/DerivationFunction;
aload 1
iload 2
iload 3
invokeinterface org.bouncycastle.crypto.DerivationFunction.generateBytes:([BII)I
ireturn
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/agreement/kdf/ECDHKEKGenerator;
0 5 1 out [B
0 5 2 outOff I
0 5 3 len I
1 5 4 v Lorg/bouncycastle/asn1/ASN1EncodableVector;
Exceptions:
throws org.bouncycastle.crypto.DataLengthException, java.lang.IllegalArgumentException
MethodParameters:
Name Flags
out
outOff
len
private byte[] integerToBytes(int);
descriptor: (I)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: iconst_4
newarray 8
astore 2
start local 2 1: aload 2
iconst_0
iload 1
bipush 24
ishr
i2b
bastore
2: aload 2
iconst_1
iload 1
bipush 16
ishr
i2b
bastore
3: aload 2
iconst_2
iload 1
bipush 8
ishr
i2b
bastore
4: aload 2
iconst_3
iload 1
i2b
bastore
5: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/crypto/agreement/kdf/ECDHKEKGenerator;
0 6 1 keySize I
1 6 2 val [B
MethodParameters:
Name Flags
keySize
}
SourceFile: "ECDHKEKGenerator.java"