public class LunaECIESParameterSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec
Modifier and Type | Class and Description |
---|---|
static class |
LunaECIESParameterSpec.DH_PRIMITIVE |
static class |
LunaECIESParameterSpec.ENCRYPTION_SCHEME |
static class |
LunaECIESParameterSpec.HMAC |
static class |
LunaECIESParameterSpec.KDF |
Constructor and Description |
---|
LunaECIESParameterSpec(LunaECIESParameterSpec.DH_PRIMITIVE dhPrimitive,
LunaECIESParameterSpec.KDF kdf,
LunaECIESParameterSpec.HMAC hmacScheme,
byte[] sharedData1,
byte[] sharedData2)
Sets the spec data
|
LunaECIESParameterSpec(LunaECIESParameterSpec.DH_PRIMITIVE dhPrimitive,
LunaECIESParameterSpec.KDF kdf,
LunaECIESParameterSpec.HMAC hmacScheme,
LunaECIESParameterSpec.ENCRYPTION_SCHEME encScheme,
int encKeyLen,
int macKeyLen,
int macLen,
byte[] sharedData1,
byte[] sharedData2)
Sets the spec data
|
Modifier and Type | Method and Description |
---|---|
long |
getDHPrimitive() |
int |
getEncKeyLen() |
long |
getEncScheme() |
long |
getHmacScheme() |
long |
getKDF() |
int |
getMacKeyLen() |
int |
getMacLen() |
byte[] |
getSharedData1() |
byte[] |
getSharedData2() |
java.lang.String |
toString() |
public LunaECIESParameterSpec(LunaECIESParameterSpec.DH_PRIMITIVE dhPrimitive, LunaECIESParameterSpec.KDF kdf, LunaECIESParameterSpec.HMAC hmacScheme, byte[] sharedData1, byte[] sharedData2)
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 operationpublic LunaECIESParameterSpec(LunaECIESParameterSpec.DH_PRIMITIVE dhPrimitive, LunaECIESParameterSpec.KDF kdf, LunaECIESParameterSpec.HMAC hmacScheme, LunaECIESParameterSpec.ENCRYPTION_SCHEME encScheme, int encKeyLen, int macKeyLen, int macLen, byte[] sharedData1, byte[] sharedData2)
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 operationpublic byte[] getSharedData1()
public byte[] getSharedData2()
public long getHmacScheme()
public long getKDF()
public long getEncScheme()
public int getEncKeyLen()
public int getMacKeyLen()
public int getMacLen()
public long getDHPrimitive()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2014-2018 SafeNet. All rights reserved.