Bouncy Castle Cryptography Library 1.64

org.bouncycastle.jcajce.provider.asymmetric.dh
Class IESCipher

java.lang.Object
  extended byjavax.crypto.CipherSpi
      extended byorg.bouncycastle.jcajce.provider.asymmetric.dh.IESCipher
Direct Known Subclasses:
IESCipher.IES, IESCipher.IESwithAESCBC, IESCipher.IESwithDESedeCBC

public class IESCipher
extends javax.crypto.CipherSpi


Nested Class Summary
static class IESCipher.IES
          Classes that inherit from us
static class IESCipher.IESwithAESCBC
           
static class IESCipher.IESwithDESedeCBC
           
 
Constructor Summary
IESCipher(IESEngine engine)
           
IESCipher(IESEngine engine, int ivLength)
           
 
Method Summary
 byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen)
           
 int engineDoFinal(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset)
           
 int engineGetBlockSize()
           
 byte[] engineGetIV()
           
 int engineGetKeySize(java.security.Key key)
           
 int engineGetOutputSize(int inputLen)
           
 java.security.AlgorithmParameters engineGetParameters()
           
 void engineInit(int opmode, java.security.Key key, java.security.spec.AlgorithmParameterSpec engineSpec, java.security.SecureRandom random)
           
 void engineInit(int opmode, java.security.Key key, java.security.AlgorithmParameters params, java.security.SecureRandom random)
           
 void engineInit(int opmode, java.security.Key key, java.security.SecureRandom random)
           
 void engineSetMode(java.lang.String mode)
           
 void engineSetPadding(java.lang.String padding)
           
 byte[] engineUpdate(byte[] input, int inputOffset, int inputLen)
           
 int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)
           
 
Methods inherited from class javax.crypto.CipherSpi
engineUnwrap, engineWrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IESCipher

public IESCipher(IESEngine engine)

IESCipher

public IESCipher(IESEngine engine,
                 int ivLength)
Method Detail

engineGetBlockSize

public int engineGetBlockSize()

engineGetKeySize

public int engineGetKeySize(java.security.Key key)

engineGetIV

public byte[] engineGetIV()

engineGetParameters

public java.security.AlgorithmParameters engineGetParameters()

engineSetMode

public void engineSetMode(java.lang.String mode)
                   throws java.security.NoSuchAlgorithmException
Throws:
java.security.NoSuchAlgorithmException

engineGetOutputSize

public int engineGetOutputSize(int inputLen)

engineSetPadding

public void engineSetPadding(java.lang.String padding)
                      throws javax.crypto.NoSuchPaddingException
Throws:
javax.crypto.NoSuchPaddingException

engineInit

public void engineInit(int opmode,
                       java.security.Key key,
                       java.security.AlgorithmParameters params,
                       java.security.SecureRandom random)
                throws java.security.InvalidKeyException,
                       java.security.InvalidAlgorithmParameterException
Throws:
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException

engineInit

public void engineInit(int opmode,
                       java.security.Key key,
                       java.security.spec.AlgorithmParameterSpec engineSpec,
                       java.security.SecureRandom random)
                throws java.security.InvalidAlgorithmParameterException,
                       java.security.InvalidKeyException
Throws:
java.security.InvalidAlgorithmParameterException
java.security.InvalidKeyException

engineInit

public void engineInit(int opmode,
                       java.security.Key key,
                       java.security.SecureRandom random)
                throws java.security.InvalidKeyException
Throws:
java.security.InvalidKeyException

engineUpdate

public byte[] engineUpdate(byte[] input,
                           int inputOffset,
                           int inputLen)

engineUpdate

public int engineUpdate(byte[] input,
                        int inputOffset,
                        int inputLen,
                        byte[] output,
                        int outputOffset)

engineDoFinal

public byte[] engineDoFinal(byte[] input,
                            int inputOffset,
                            int inputLen)
                     throws javax.crypto.IllegalBlockSizeException,
                            javax.crypto.BadPaddingException
Throws:
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException

engineDoFinal

public int engineDoFinal(byte[] input,
                         int inputOffset,
                         int inputLength,
                         byte[] output,
                         int outputOffset)
                  throws javax.crypto.ShortBufferException,
                         javax.crypto.IllegalBlockSizeException,
                         javax.crypto.BadPaddingException
Throws:
javax.crypto.ShortBufferException
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException

Bouncy Castle Cryptography Library 1.64