public class LunaECIESExtParameterSpec extends LunaECIESParameterSpec
LunaECIESParameterSpec.DH_PRIMITIVE, LunaECIESParameterSpec.ENCRYPTION_SCHEME, LunaECIESParameterSpec.HMAC, LunaECIESParameterSpec.KDF
Modifier and Type | Field and Description |
---|---|
protected int |
encSchemeMechanismParameteLen |
protected byte[] |
encSchemeMechanismParameter |
Constructor and Description |
---|
LunaECIESExtParameterSpec(LunaECIESParameterSpec.DH_PRIMITIVE dhPrimitive,
LunaECIESParameterSpec.KDF kdf,
LunaECIESParameterSpec.HMAC hmacScheme,
byte[] sharedData1,
byte[] sharedData2,
byte[] encSchemeMechanismParameter,
int encSchemeMechanismParameteLen)
Sets the spec data
|
LunaECIESExtParameterSpec(LunaECIESParameterSpec.DH_PRIMITIVE dhPrimitive,
LunaECIESParameterSpec.KDF kdf,
LunaECIESParameterSpec.HMAC hmacScheme,
LunaECIESParameterSpec.ENCRYPTION_SCHEME encScheme,
int encKeyLen,
int macKeyLen,
int macLen,
byte[] sharedData1,
byte[] sharedData2,
byte[] encSchemeMechanismParameter,
int encSchemeMechanismParameteLen)
Sets the spec data
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getEncSchemeMechanismParameter() |
int |
getEncSchemeMechanismParameterLenLen() |
java.lang.String |
toString() |
getDHPrimitive, getEncKeyLen, getEncScheme, getHmacScheme, getKDF, getMacKeyLen, getMacLen, getSharedData1, getSharedData2
protected final byte[] encSchemeMechanismParameter
protected final int encSchemeMechanismParameteLen
public LunaECIESExtParameterSpec(LunaECIESParameterSpec.DH_PRIMITIVE dhPrimitive, LunaECIESParameterSpec.KDF kdf, LunaECIESParameterSpec.HMAC hmacScheme, byte[] sharedData1, byte[] sharedData2, byte[] encSchemeMechanismParameter, int encSchemeMechanismParameteLen)
dhPrimitive
- The DH Primitive, either ECDH or ECDHCkdf
- The KDF to use. SHA1, SHA224, SHA256, SHA384, SHA512hmacScheme
- The HMAC to use. hmacSHA1, HmacSha224, HmacSHA256, HmacSHA384, HmacSHA512sharedData1
- Bytes to use in conjunction with the dhPrimitivesharedData2
- Bytes to use in conjunction with the HMAC operationencSchemeMechanismParameter
- reference encryption scheme structure extensionencSchemeMechanismParameteLen
- The length of encSchemeMechanismParameterpublic LunaECIESExtParameterSpec(LunaECIESParameterSpec.DH_PRIMITIVE dhPrimitive, LunaECIESParameterSpec.KDF kdf, LunaECIESParameterSpec.HMAC hmacScheme, LunaECIESParameterSpec.ENCRYPTION_SCHEME encScheme, int encKeyLen, int macKeyLen, int macLen, byte[] sharedData1, byte[] sharedData2, byte[] encSchemeMechanismParameter, int encSchemeMechanismParameteLen)
dhPrimitive
- The DH Primitive, either ECDH or ECDHCkdf
- The KDF to use. SHA1, SHA224, SHA256, SHA384, SHA512hmacScheme
- The HMAC to use. hmacSHA1, HmacSha224, HmacSHA256, HmacSHA384, HmacSHA512encScheme
- The encryption scheme to use. XOR, AES_CBC_PAD, AES_CBC, DESede_CBC_PAD, DESede_CBCencKeyLen
- The length of the encryption keymacKeyLen
- The length of the MAC keymacLen
- The length of the MACsharedData1
- Bytes to use in conjunction with the dhPrimitivesharedData2
- Bytes to use in conjunction with the HMAC operationencSchemeMechanismParameter
- reference encryption scheme structure extensionencSchemeMechanismParameteLen
- The length of encSchemeMechanismParameterpublic byte[] getEncSchemeMechanismParameter()
public int getEncSchemeMechanismParameterLenLen()
public java.lang.String toString()
toString
in class LunaECIESParameterSpec
Copyright 2014-2018 SafeNet. All rights reserved.