public class IESParameterSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec
| Constructor and Description | 
|---|
IESParameterSpec(byte[] derivation,
                byte[] encoding,
                int macKeySize)
Set the IES engine parameters. 
 | 
IESParameterSpec(byte[] derivation,
                byte[] encoding,
                int macKeySize,
                int cipherKeySize,
                byte[] nonce)
Set the IES engine parameters. 
 | 
IESParameterSpec(byte[] derivation,
                byte[] encoding,
                int macKeySize,
                int cipherKeySize,
                byte[] nonce,
                boolean usePointCompression)
Set the IES engine parameters. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getCipherKeySize()
return the key size in bits for the block cipher used with the message 
 | 
byte[] | 
getDerivationV()
return the derivation vector. 
 | 
byte[] | 
getEncodingV()
return the encoding vector. 
 | 
int | 
getMacKeySize()
return the key size in bits for the MAC used with the message 
 | 
byte[] | 
getNonce()
Return the nonce (IV) value to be associated with message. 
 | 
boolean | 
getPointCompression()
Return the 'point compression' flag. 
 | 
void | 
setPointCompression(boolean usePointCompression)
Set the 'point compression' flag. 
 | 
public IESParameterSpec(byte[] derivation,
                        byte[] encoding,
                        int macKeySize)
derivation - the optional derivation vector for the KDF.encoding - the optional encoding vector for the KDF.macKeySize - the key size (in bits) for the MAC.public IESParameterSpec(byte[] derivation,
                        byte[] encoding,
                        int macKeySize,
                        int cipherKeySize,
                        byte[] nonce)
derivation - the optional derivation vector for the KDF.encoding - the optional encoding vector for the KDF.macKeySize - the key size (in bits) for the MAC.cipherKeySize - the key size (in bits) for the block cipher.nonce - an IV to use initialising the block cipher.public IESParameterSpec(byte[] derivation,
                        byte[] encoding,
                        int macKeySize,
                        int cipherKeySize,
                        byte[] nonce,
                        boolean usePointCompression)
derivation - the optional derivation vector for the KDF.encoding - the optional encoding vector for the KDF.macKeySize - the key size (in bits) for the MAC.cipherKeySize - the key size (in bits) for the block cipher.nonce - an IV to use initialising the block cipher.usePointCompression - whether to use EC point compression or not (false by default)public byte[] getDerivationV()
public byte[] getEncodingV()
public int getMacKeySize()
public int getCipherKeySize()
public byte[] getNonce()
public void setPointCompression(boolean usePointCompression)
public boolean getPointCompression()