Class IESKEMCipher

    • Method Detail

      • engineSetMode

        public void engineSetMode​(java.lang.String mode)
                           throws java.security.NoSuchAlgorithmException
        Overrides:
        engineSetMode in class BaseCipherSpi
        Throws:
        java.security.NoSuchAlgorithmException
      • engineSetPadding

        public void engineSetPadding​(java.lang.String padding)
                              throws javax.crypto.NoSuchPaddingException
        Overrides:
        engineSetPadding in class BaseCipherSpi
        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
        Specified by:
        engineInit in class javax.crypto.CipherSpi
        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
        Specified by:
        engineInit in class javax.crypto.CipherSpi
        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
        Specified by:
        engineInit in class javax.crypto.CipherSpi
        Throws:
        java.security.InvalidKeyException
      • engineUpdate

        public byte[] engineUpdate​(byte[] input,
                                   int inputOffset,
                                   int inputLen)
        Specified by:
        engineUpdate in class javax.crypto.CipherSpi
      • engineUpdate

        public int engineUpdate​(byte[] input,
                                int inputOffset,
                                int inputLen,
                                byte[] output,
                                int outputOffset)
        Specified by:
        engineUpdate in class javax.crypto.CipherSpi
      • engineDoFinal

        public byte[] engineDoFinal​(byte[] input,
                                    int inputOffset,
                                    int inputLen)
                             throws javax.crypto.IllegalBlockSizeException,
                                    javax.crypto.BadPaddingException
        Specified by:
        engineDoFinal in class javax.crypto.CipherSpi
        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
        Specified by:
        engineDoFinal in class javax.crypto.CipherSpi
        Throws:
        javax.crypto.ShortBufferException
        javax.crypto.IllegalBlockSizeException
        javax.crypto.BadPaddingException