public class ECIESParameterSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec
Constructor and Description |
---|
ECIESParameterSpec()
Default constructor using defaults: SHA256, XOR and HmacSha256 and NO shared secrets.
|
ECIESParameterSpec(java.lang.String hashAlgorithm,
java.lang.String symmetricCipher,
int cryptOpt,
java.lang.String macAlgorithm,
int macOpt) |
ECIESParameterSpec(java.lang.String hashAlgorithm,
java.lang.String symmetricCipher,
int cryptOpt,
java.lang.String macAlgorithm,
int macOpt,
byte[] sharedSecret1,
byte[] sharedSecret2) |
Modifier and Type | Method and Description |
---|---|
int |
getCryptOpt() |
java.lang.String |
getHashAlgorithm() |
java.lang.String |
getMacAlgorithm() |
int |
getMacOpt() |
byte[] |
getSharedSecret1() |
byte[] |
getSharedSecret2() |
java.lang.String |
getSymmetricCipher() |
void |
setSharedSecret1(byte[] sharedSecret)
Set the shared secret
|
void |
setSharedSecret2(byte[] sharedSecret)
Set the shared secret
|
java.lang.String |
toString() |
public ECIESParameterSpec()
public ECIESParameterSpec(java.lang.String hashAlgorithm, java.lang.String symmetricCipher, int cryptOpt, java.lang.String macAlgorithm, int macOpt)
hashAlgorithm
- Valid options: SHA1, SHA224, SHA256, SHA384, SHA512, RIPEMD160 und MD5symmetricCipher
- Valid options: AES in ECB and CBC mode, XORcryptOpt
- Length of the symmetric cipher. 0 for XOR, 16 for AESmacAlgorithm
- Valid options: SHA1-HMAC, SHA224-HMAC, SHA256-HMAC, SHA384-HMAC, SHA512-HMAC, RIPEMD160-HMAC und MD5-HMACpublic ECIESParameterSpec(java.lang.String hashAlgorithm, java.lang.String symmetricCipher, int cryptOpt, java.lang.String macAlgorithm, int macOpt, byte[] sharedSecret1, byte[] sharedSecret2)
hashAlgorithm
- Valid options: SHA1, SHA224, SHA256, SHA384, SHA512, RIPEMD160 und MD5symmetricCipher
- Valid options: AES in ECB and CBC mode, XORcryptOpt
- Length of the symmetric cipher. 0 for XOR, 16 for AESmacAlgorithm
- Valid options: SHA1-HMAC, SHA224-HMAC, SHA256-HMAC, SHA384-HMAC, SHA512-HMAC, RIPEMD160-HMAC und MD5-HMACsharedSecret1
- a shared secret (optional)sharedSecret2
- a shared secret (optional)public java.lang.String getHashAlgorithm()
public java.lang.String getSymmetricCipher()
public int getCryptOpt()
public java.lang.String getMacAlgorithm()
public byte[] getSharedSecret1()
public byte[] getSharedSecret2()
public int getMacOpt()
public void setSharedSecret1(byte[] sharedSecret)
sharedSecret
- the shared secretpublic void setSharedSecret2(byte[] sharedSecret)
sharedSecret
- the shared secretpublic java.lang.String toString()
toString
in class java.lang.Object
IAIK JavaSecurity Website https://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. Version 1.9.4