|
IAIK PKCS#11 Wrapper version 1.2.18 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--iaik.pkcs.pkcs11.parameters.DHKeyDerivationParameters
|
+--iaik.pkcs.pkcs11.parameters.EcMQVKeyDerivationParameters
This class encapsulates parameters for the DH mechanisms Mechanism.ECMQV_DERIVE.
| Inner classes inherited from class iaik.pkcs.pkcs11.parameters.DHKeyDerivationParameters |
DHKeyDerivationParameters.KeyDerivationFunctionType |
| Field Summary | |
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. |
| Fields inherited from class iaik.pkcs.pkcs11.parameters.DHKeyDerivationParameters |
keyDerivationFunction_, publicData_ |
| Constructor Summary | |
EcMQVKeyDerivationParameters(long keyDerivationFunction,
byte[] sharedData,
byte[] publicData,
long ulPrivateDataLen,
long hPrivateData,
byte[] pPublicData2,
long publicKey)
Create a new EcMQVKeyDerivationParameters object with the given attributes. |
|
| Method Summary | |
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. |
| Methods inherited from class iaik.pkcs.pkcs11.parameters.DHKeyDerivationParameters |
getKeyDerivationFunction, getPublicData, setKeyDerivationFunction, setPublicData |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected byte[] sharedData_
protected long ulPrivateDataLen_
protected long hPrivateData_
protected byte[] pPublicData2_
protected long publicKey_
| Constructor Detail |
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 key| Method Detail |
public 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 DHKeyDerivationParameters
|
IAIK PKCS#11 Wrapper version 1.2.18 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||