public class EcMQVKeyDerivationParameters extends DHKeyDerivationParameters
DHKeyDerivationParameters.KeyDerivationFunctionType| Modifier and Type | Field and Description |
|---|---|
protected long |
hPrivateData_
key handle for second EC private key value.
|
protected byte[] |
pPublicData2_
pointer to other partyâs second EC public key value.
|
protected long |
publicKey_
Handle to the first partyâs ephemeral public key.
|
protected byte[] |
sharedData_
The data shared between the two parties.
|
protected long |
ulPrivateDataLen_
the length in bytes of the second EC private key.
|
keyDerivationFunction_, publicData_| Constructor and Description |
|---|
EcMQVKeyDerivationParameters(long keyDerivationFunction,
byte[] sharedData,
byte[] publicData,
long ulPrivateDataLen,
long hPrivateData,
byte[] pPublicData2,
long publicKey)
Create a new EcMQVKeyDerivationParameters 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.
|
long |
gethPrivateData()
Gets the key handle for the second EC private key value.
|
java.lang.Object |
getPKCS11ParamsObject()
Get this parameters object as an object of the CK_ECDH1_DERIVE_PARAMS class.
|
byte[] |
getpPublicData2()
Gets the other partyâs second EC public key value.
|
long |
getPublicKey()
Gets the handle to the first partyâs ephemeral public key .
|
byte[] |
getSharedData()
Get the data shared between the two parties.
|
long |
getUlPrivateDataLen()
Get the length in bytes of the second EC private key.
|
int |
hashCode()
The overriding of this method should ensure that the objects of this class work correctly in a
hashtable.
|
void |
sethPrivateData_(long hPrivateData)
Sets the key handle for the second EC private key value.
|
void |
setpPublicData2_(byte[] pPublicData2)
Sets the other partyâs second EC public key value.
|
void |
setPublicKey(long publicKey)
Sets the handle to the first partyâs ephemeral public key.
|
void |
setSharedData(byte[] sharedData)
Set the data shared between the two parties.
|
void |
setUlPrivateDataLen(long ulPrivateDataLen)
Set the length in bytes of the secon dEC private key.
|
java.lang.String |
toString()
Returns the string representation of this object.
|
getKeyDerivationFunction, getPublicData, setKeyDerivationFunction, setPublicDataprotected byte[] sharedData_
protected long ulPrivateDataLen_
protected long hPrivateData_
protected byte[] pPublicData2_
protected long publicKey_
public EcMQVKeyDerivationParameters(long keyDerivationFunction,
byte[] sharedData,
byte[] publicData,
long ulPrivateDataLen,
long hPrivateData,
byte[] pPublicData2,
long publicKey)
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.ulPrivateDataLen - the length in bytes of the second EC private keyhPrivateData - Key handle for second EC private key valuepPublicData2 - pointer to other party's second EC public key valuepublicKey - Handle to the first party's ephemeral public keypublic java.lang.Object clone()
clone in class DHKeyDerivationParameterspublic java.lang.Object getPKCS11ParamsObject()
public byte[] getSharedData()
public void setSharedData(byte[] sharedData)
sharedData - The data shared between the two parties.public long getUlPrivateDataLen()
public void setUlPrivateDataLen(long ulPrivateDataLen)
ulPrivateDataLen - the length in bytes of the secon dEC private keypublic long gethPrivateData()
public void sethPrivateData_(long hPrivateData)
hPrivateData - the key handle for the second EC private key valuepublic byte[] getpPublicData2()
public void setpPublicData2_(byte[] pPublicData2)
pPublicData2 - the other partyâs second EC public key valuepublic long getPublicKey()
public void setPublicKey(long publicKey)
publicKey - the handle to the first partyâs ephemeral public keypublic java.lang.String toString()
toString in class DHKeyDerivationParameterspublic boolean equals(java.lang.Object otherObject)
equals in class DHKeyDerivationParametersotherObject - The other object to compare to.public int hashCode()
hashCode in class DHKeyDerivationParametersIAIK 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