Class JCEIESCipher

  • Direct Known Subclasses:
    JCEIESCipher.ECIES

    public class JCEIESCipher
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  JCEIESCipher.ECIES
      classes that inherit from us.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] engineDoFinal​(byte[] input, int inputOffset, int inputLen)  
      int engineDoFinal​(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)  
      protected int engineGetBlockSize()  
      protected byte[] engineGetIV()  
      protected int engineGetKeySize​(java.security.Key key)  
      protected int engineGetOutputSize​(int inputLen)  
      protected java.security.AlgorithmParameters engineGetParameters()  
      protected void engineInit​(int opmode, java.security.Key key, java.security.AlgorithmParameters params, java.security.SecureRandom random)  
      protected void engineInit​(int opmode, java.security.Key key, java.security.SecureRandom random)  
      void engineInit​(int opmode, java.security.Key key, java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random)  
      protected void engineSetMode​(java.lang.String mode)  
      protected 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • state

        private int state
      • buffer

        private java.io.ByteArrayOutputStream buffer
      • engineParam

        private java.security.AlgorithmParameters engineParam
      • availableSpecs

        private java.lang.Class[] availableSpecs
    • Constructor Detail

      • JCEIESCipher

        public JCEIESCipher​(IESEngine engine)
    • Method Detail

      • engineGetBlockSize

        protected int engineGetBlockSize()
      • engineGetIV

        protected byte[] engineGetIV()
      • engineGetKeySize

        protected int engineGetKeySize​(java.security.Key key)
      • engineGetOutputSize

        protected int engineGetOutputSize​(int inputLen)
      • engineGetParameters

        protected java.security.AlgorithmParameters engineGetParameters()
      • engineSetMode

        protected void engineSetMode​(java.lang.String mode)
      • engineSetPadding

        protected 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.spec.AlgorithmParameterSpec params,
                               java.security.SecureRandom random)
                        throws java.security.InvalidKeyException,
                               java.security.InvalidAlgorithmParameterException
        Throws:
        java.security.InvalidKeyException
        java.security.InvalidAlgorithmParameterException
      • engineInit

        protected 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

        protected 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 inputLen,
                                 byte[] output,
                                 int outputOffset)
                          throws javax.crypto.IllegalBlockSizeException,
                                 javax.crypto.BadPaddingException
        Throws:
        javax.crypto.IllegalBlockSizeException
        javax.crypto.BadPaddingException