public class X942DH2KeyDerivationParameters extends DHKeyDerivationParameters
DHKeyDerivationParameters.KeyDerivationFunctionType| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
otherInfo
The data shared between the two parties.
|
protected PKCS11Object |
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 party's second EC public key value.
|
kdf, publicData| Constructor and Description |
|---|
X942DH2KeyDerivationParameters(long keyDerivationFunction,
byte[] sharedData,
byte[] publicData,
long privateDataLength,
PKCS11Object privateData,
byte[] publicData2)
Create a new X942DH1KeyDerivationParameters object with the given
attributes.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object otherObject)
Compares all member variables of this object with the other object.
|
byte[] |
getOtherInfo()
Get the data shared between the two parties.
|
sun.security.pkcs11.wrapper.CK_X9_42_DH2_DERIVE_PARAMS |
getPKCS11ParamsObject()
Get this parameters object as an object of the CK_X9_42_DH2_DERIVE_PARAMS
class.
|
PKCS11Object |
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 party's 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 |
setOtherInfo(byte[] otherInfo)
Set the data shared between the two parties.
|
void |
setPrivateData(PKCS11Object 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 party's second X9.42 public key value.
|
String |
toString()
Returns the string representation of this object.
|
getKeyDerivationFunction, getPublicData, setKeyDerivationFunction, setPublicDataprotected byte[] otherInfo
protected long privateDataLength
protected PKCS11Object privateData
protected byte[] publicData2
public X942DH2KeyDerivationParameters(long keyDerivationFunction,
byte[] sharedData,
byte[] publicData,
long privateDataLength,
PKCS11Object 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 party's second X9.42 public key value.public sun.security.pkcs11.wrapper.CK_X9_42_DH2_DERIVE_PARAMS getPKCS11ParamsObject()
public byte[] getOtherInfo()
public void setOtherInfo(byte[] otherInfo)
otherInfo - The data shared between the two parties.public PKCS11Object getPrivateData()
public long getPrivateDataLength()
public byte[] getPublicData2()
public void setPrivateData(PKCS11Object 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 party's second X9.42 public key value.public String toString()
toString in class DHKeyDerivationParameterspublic boolean equals(Object otherObject)
equals in class DHKeyDerivationParametersotherObject - The other object to compare to.public int hashCode()
hashCode in class DHKeyDerivationParametersCopyright © 2022. All rights reserved.