Top Description Fields Constructors Methods
org.bouncycastle.jce.spec

public Class IESParameterSpec

extends Object
implements AlgorithmParameterSpec
Class Inheritance
All Implemented Interfaces
java.security.spec.AlgorithmParameterSpec
Imports
java.security.spec.AlgorithmParameterSpec, org.bouncycastle.util.Arrays

Parameter spec for an integrated encryptor, as in IEEE P1363a

Field Summary

Modifier and TypeField and Description
private int
private byte[]
private byte[]
private int
private byte[]
private boolean

Constructor Summary

AccessConstructor and Description
public
IESParameterSpec(byte[]
the optional derivation vector for the KDF.
derivation
,
byte[]
the optional encoding vector for the KDF.
encoding
,
int
the key size (in bits) for the MAC.
macKeySize
)

Set the IES engine parameters.

public
IESParameterSpec(byte[]
the optional derivation vector for the KDF.
derivation
,
byte[]
the optional encoding vector for the KDF.
encoding
,
int
the key size (in bits) for the MAC.
macKeySize
,
int
the key size (in bits) for the block cipher.
cipherKeySize
,
byte[]
an IV to use initialising the block cipher.
nonce
)

Set the IES engine parameters.

public
IESParameterSpec(byte[]
the optional derivation vector for the KDF.
derivation
,
byte[]
the optional encoding vector for the KDF.
encoding
,
int
the key size (in bits) for the MAC.
macKeySize
,
int
the key size (in bits) for the block cipher.
cipherKeySize
,
byte[]
an IV to use initialising the block cipher.
nonce
,
boolean
whether to use EC point compression or not (false by default)
usePointCompression
)

Set the IES engine parameters.

Method Summary

Modifier and TypeMethod and Description
public int
getCipherKeySize()

return the key size in bits for the block cipher used with the message

public byte[]
getDerivationV()

return the derivation vector.

public byte[]
getEncodingV()

return the encoding vector.

public int
getMacKeySize()

return the key size in bits for the MAC used with the message

public byte[]

Returns:

block cipher IV for message.
getNonce
()

Return the nonce (IV) value to be associated with message.

public boolean

Returns:

the point compression flag
getPointCompression
()

Return the 'point compression' flag.

public void
setPointCompression(boolean usePointCompression)

Set the 'point compression' flag.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cipherKeySizeback to summary
private int cipherKeySize
derivationback to summary
private byte[] derivation
encodingback to summary
private byte[] encoding
macKeySizeback to summary
private int macKeySize
nonceback to summary
private byte[] nonce
usePointCompressionback to summary
private boolean usePointCompression

Constructor Detail

IESParameterSpecback to summary
public IESParameterSpec(byte[] derivation, byte[] encoding, int macKeySize)

Set the IES engine parameters.

Parameters
derivation:byte[]

the optional derivation vector for the KDF.

encoding:byte[]

the optional encoding vector for the KDF.

macKeySize:int

the key size (in bits) for the MAC.

IESParameterSpecback to summary
public IESParameterSpec(byte[] derivation, byte[] encoding, int macKeySize, int cipherKeySize, byte[] nonce)

Set the IES engine parameters.

Parameters
derivation:byte[]

the optional derivation vector for the KDF.

encoding:byte[]

the optional encoding vector for the KDF.

macKeySize:int

the key size (in bits) for the MAC.

cipherKeySize:int

the key size (in bits) for the block cipher.

nonce:byte[]

an IV to use initialising the block cipher.

IESParameterSpecback to summary
public IESParameterSpec(byte[] derivation, byte[] encoding, int macKeySize, int cipherKeySize, byte[] nonce, boolean usePointCompression)

Set the IES engine parameters.

Parameters
derivation:byte[]

the optional derivation vector for the KDF.

encoding:byte[]

the optional encoding vector for the KDF.

macKeySize:int

the key size (in bits) for the MAC.

cipherKeySize:int

the key size (in bits) for the block cipher.

nonce:byte[]

an IV to use initialising the block cipher.

usePointCompression:boolean

whether to use EC point compression or not (false by default)

Method Detail

getCipherKeySizeback to summary
public int getCipherKeySize()

return the key size in bits for the block cipher used with the message

getDerivationVback to summary
public byte[] getDerivationV()

return the derivation vector.

getEncodingVback to summary
public byte[] getEncodingV()

return the encoding vector.

getMacKeySizeback to summary
public int getMacKeySize()

return the key size in bits for the MAC used with the message

getNonceback to summary
public byte[] getNonce()

Return the nonce (IV) value to be associated with message.

Returns:byte[]

block cipher IV for message.

getPointCompressionback to summary
public boolean getPointCompression()

Return the 'point compression' flag.

Returns:boolean

the point compression flag

setPointCompressionback to summary
public void setPointCompression(boolean usePointCompression)

Set the 'point compression' flag.