public class X942DH2KeyDerivationParameters extends X942DH1KeyDerivationParameters
DHKeyDerivationParameters.KeyDerivationFunctionType| Modifier and Type | Field and Description |
|---|---|
protected Object |
privateData_
The key for the second EC private key value.
|
protected long |
privateDataLength_
The length in bytes of the second EC private key.
|
protected byte[] |
publicData2_
The other partys second EC public key value.
|
otherInfo_keyDerivationFunction_, publicData_| Constructor and Description |
|---|
X942DH2KeyDerivationParameters(long keyDerivationFunction,
byte[] sharedData,
byte[] publicData,
long privateDataLength,
Object privateData,
byte[] publicData2)
Create a new X942DH1KeyDerivationParameters object with the given attributes.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Create a (deep) clone of this object.
|
boolean |
equals(java.lang.Object otherObject)
Compares all member variables of this object with the other object.
|
java.lang.Object |
getPKCS11ParamsObject()
Get this parameters object as an object of the CK_X9_42_DH2_DERIVE_PARAMS class.
|
Object |
getPrivateData()
Get the key for the second X9.42 private key value.
|
long |
getPrivateDataLength()
Get the length in bytes of the second X9.42 private key.
|
byte[] |
getPublicData2()
Get the other partys second X9.42 public key value.
|
int |
hashCode()
The overriding of this method should ensure that the objects of this class work correctly in a
hashtable.
|
void |
setPrivateData(Object privateData)
Set the key for the second X9.42 private key value.
|
void |
setPrivateDataLength(long privateDataLength)
Set the length in bytes of the second X9.42 private key.
|
void |
setPublicData2(byte[] publicData2)
Set the other partys second X9.42 public key value.
|
java.lang.String |
toString()
Returns the string representation of this object.
|
getOtherInfo, setOtherInfogetKeyDerivationFunction, getPublicData, setKeyDerivationFunction, setPublicDataprotected long privateDataLength_
protected Object privateData_
protected byte[] publicData2_
public X942DH2KeyDerivationParameters(long keyDerivationFunction,
byte[] sharedData,
byte[] publicData,
long privateDataLength,
Object privateData,
byte[] publicData2)
keyDerivationFunction - The key derivation function used on the shared secret value. One of the values defined
in KeyDerivationFunctionType.sharedData - The data shared between the two parties.publicData - The other partie's public key value.privateDataLength - The length in bytes of the second EC private key.privateData - The key for the second X9.42 private key value.publicData2 - The other partys second X9.42 public key value.public java.lang.Object clone()
clone in class X942DH1KeyDerivationParameterspublic java.lang.Object getPKCS11ParamsObject()
getPKCS11ParamsObject in interface ParametersgetPKCS11ParamsObject in class X942DH1KeyDerivationParameterspublic Object getPrivateData()
public long getPrivateDataLength()
public byte[] getPublicData2()
public void setPrivateData(Object privateData)
privateData - The key for the second X9.42 private key value.public void setPrivateDataLength(long privateDataLength)
privateDataLength - The length in bytes of the second X9.42 private key.public void setPublicData2(byte[] publicData2)
publicData2 - The other partys second X9.42 public key value.public java.lang.String toString()
toString in class X942DH1KeyDerivationParameterspublic boolean equals(java.lang.Object otherObject)
equals in class X942DH1KeyDerivationParametersotherObject - The other object to compare to.public int hashCode()
hashCode in class X942DH1KeyDerivationParametersIAIK JavaSecurity Website http://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. version 1.6.9