Bouncy Castle Cryptography Library 1.48

org.bouncycastle.jce.spec
Class IESParameterSpec

java.lang.Object
  extended by org.bouncycastle.jce.spec.IESParameterSpec
All Implemented Interfaces:
java.security.spec.AlgorithmParameterSpec

public class IESParameterSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec

Parameter spec for an integrated encryptor, as in IEEE P1363a


Constructor Summary
IESParameterSpec(byte[] derivation, byte[] encoding, int macKeySize)
          Set the IES engine parameters.
IESParameterSpec(byte[] derivation, byte[] encoding, int macKeySize, int cipherKeySize)
          Set the IES engine parameters.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IESParameterSpec

public IESParameterSpec(byte[] derivation,
                        byte[] encoding,
                        int macKeySize)
Set the IES engine parameters.

Parameters:
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.

IESParameterSpec

public IESParameterSpec(byte[] derivation,
                        byte[] encoding,
                        int macKeySize,
                        int cipherKeySize)
Set the IES engine parameters.

Parameters:
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.
Method Detail

getDerivationV

public byte[] getDerivationV()
return the derivation vector.


getEncodingV

public byte[] getEncodingV()
return the encoding vector.


getMacKeySize

public int getMacKeySize()
return the key size in bits for the MAC used with the message


getCipherKeySize

public int getCipherKeySize()
return the key size in bits for the block cipher used with the message


Bouncy Castle Cryptography Library 1.48