|
IAIK PKCS#11 Wrapper version 1.2.16 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectiaik.pkcs.pkcs11.parameters.DHKeyDerivationParameters
iaik.pkcs.pkcs11.parameters.EcDH1KeyDerivationParameters
iaik.pkcs.pkcs11.parameters.EcDH2KeyDerivationParameters
This abstract class encapsulates parameters for the DH mechanism Mechanism.ECMQV_DERIVE.
| Nested Class Summary |
| Nested classes inherited from class iaik.pkcs.pkcs11.parameters.DHKeyDerivationParameters |
DHKeyDerivationParameters.KeyDerivationFunctionType |
| Field Summary | |
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 party’s second EC public key value. |
| Fields inherited from class iaik.pkcs.pkcs11.parameters.EcDH1KeyDerivationParameters |
sharedData_ |
| Fields inherited from class iaik.pkcs.pkcs11.parameters.DHKeyDerivationParameters |
keyDerivationFunction_, publicData_ |
| Constructor Summary | |
EcDH2KeyDerivationParameters(long keyDerivationFunction,
byte[] sharedData,
byte[] publicData,
long privateDataLength,
Object privateData,
byte[] publicData2)
Create a new EcDH1KeyDerivationParameters object with the given attributes. |
|
| Method Summary | |
Object |
clone()
Create a (deep) clone of this object. |
boolean |
equals(Object otherObject)
Compares all member variables of this object with the other object. |
Object |
getPKCS11ParamsObject()
Get this parameters object as an object of the CK_ECDH2_DERIVE_PARAMS class. |
Object |
getPrivateData()
Get the key for the second EC private key value. |
long |
getPrivateDataLength()
Get the length in bytes of the second EC private key. |
byte[] |
getPublicData2()
Get the other party’s second EC 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 EC private key value. |
void |
setPrivateDataLength(long privateDataLength)
Set the length in bytes of the second EC private key. |
void |
setPublicData2(byte[] publicData2)
Set the other party’s second EC public key value. |
String |
toString()
Returns the string representation of this object. |
| Methods inherited from class iaik.pkcs.pkcs11.parameters.EcDH1KeyDerivationParameters |
getSharedData, setSharedData |
| 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 long privateDataLength_
protected Object privateData_
protected byte[] publicData2_
| Constructor Detail |
public EcDH2KeyDerivationParameters(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 EC private key value.publicData2 - The other party’s second EC public key value.| Method Detail |
public Object clone()
clone in class EcDH1KeyDerivationParameterspublic Object getPKCS11ParamsObject()
getPKCS11ParamsObject in interface ParametersgetPKCS11ParamsObject in class EcDH1KeyDerivationParameterspublic Object getPrivateData()
public long getPrivateDataLength()
public byte[] getPublicData2()
public void setPrivateData(Object privateData)
privateData - The key for the second EC private key value.public void setPrivateDataLength(long privateDataLength)
privateDataLength - The length in bytes of the second EC private key.public void setPublicData2(byte[] publicData2)
publicData2 - The other party’s second EC public key value.public String toString()
toString in class EcDH1KeyDerivationParameterspublic boolean equals(Object otherObject)
equals in class EcDH1KeyDerivationParametersotherObject - The other object to compare to.
public int hashCode()
hashCode in class EcDH1KeyDerivationParameters
|
IAIK PKCS#11 Wrapper version 1.2.16 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||