Package org.xipki.pkcs11.wrapper.params
Class ECDH2_DERIVE_PARAMS
- java.lang.Object
-
- org.xipki.pkcs11.wrapper.params.CkParams
-
- org.xipki.pkcs11.wrapper.params.ECDH2_DERIVE_PARAMS
-
public class ECDH2_DERIVE_PARAMS extends CkParams
Represents the CK_ECDH2_DERIVE_PARAMS.- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description ECDH2_DERIVE_PARAMS(long kdf, byte[] sharedData, byte[] publicData, int privateDataLength, long privateDataHandle, byte[] publicData2)Create a new ECDH2_DERIVE_PARAMS object with the given attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetMaxFieldLen()CK_ECDH2_DERIVE_PARAMSgetParams()Get this parameters object as an object of the corresponding *_PARAMS class of the iaik.pkcs.pkcs11.wrapper package.StringtoString(String indent)-
Methods inherited from class org.xipki.pkcs11.wrapper.params.CkParams
ptr2str, requireNonNull, toString, val2Str
-
-
-
-
Constructor Detail
-
ECDH2_DERIVE_PARAMS
public ECDH2_DERIVE_PARAMS(long kdf, byte[] sharedData, byte[] publicData, int privateDataLength, long privateDataHandle, byte[] publicData2)Create a new ECDH2_DERIVE_PARAMS object with the given attributes.- Parameters:
kdf- 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.privateDataHandle- The key for the second EC private key value.publicData2- The other party's second EC public key value.
-
-
Method Detail
-
getParams
public CK_ECDH2_DERIVE_PARAMS getParams()
Description copied from class:CkParamsGet this parameters object as an object of the corresponding *_PARAMS class of the iaik.pkcs.pkcs11.wrapper package.
-
getMaxFieldLen
protected int getMaxFieldLen()
- Specified by:
getMaxFieldLenin classCkParams
-
-