Class BaseStreamCipher

    • Constructor Detail

      • BaseStreamCipher

        protected BaseStreamCipher​(StreamCipher engine,
                                   int ivLength)
      • BaseStreamCipher

        protected BaseStreamCipher​(StreamCipher engine,
                                   int ivLength,
                                   int keySizeInBits)
      • BaseStreamCipher

        protected BaseStreamCipher​(StreamCipher engine,
                                   int ivLength,
                                   int keySizeInBits,
                                   int digest)
    • Method Detail

      • engineSetMode

        protected void engineSetMode​(java.lang.String mode)
                              throws java.security.NoSuchAlgorithmException
        should never be called.
        Overrides:
        engineSetMode in class BaseWrapCipher
        Throws:
        java.security.NoSuchAlgorithmException
      • engineSetPadding

        protected void engineSetPadding​(java.lang.String padding)
                                 throws javax.crypto.NoSuchPaddingException
        should never be called.
        Overrides:
        engineSetPadding in class BaseWrapCipher
        Throws:
        javax.crypto.NoSuchPaddingException
      • engineInit

        protected void engineInit​(int opmode,
                                  java.security.Key key,
                                  java.security.spec.AlgorithmParameterSpec params,
                                  java.security.SecureRandom random)
                           throws java.security.InvalidKeyException,
                                  java.security.InvalidAlgorithmParameterException
        Overrides:
        engineInit in class BaseWrapCipher
        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
        Overrides:
        engineInit in class BaseWrapCipher
        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
        Overrides:
        engineInit in class BaseWrapCipher
        Throws:
        java.security.InvalidKeyException
      • engineUpdate

        protected byte[] engineUpdate​(byte[] input,
                                      int inputOffset,
                                      int inputLen)
        Overrides:
        engineUpdate in class BaseWrapCipher
      • engineUpdate

        protected int engineUpdate​(byte[] input,
                                   int inputOffset,
                                   int inputLen,
                                   byte[] output,
                                   int outputOffset)
                            throws javax.crypto.ShortBufferException
        Overrides:
        engineUpdate in class BaseWrapCipher
        Throws:
        javax.crypto.ShortBufferException
      • engineDoFinal

        protected byte[] engineDoFinal​(byte[] input,
                                       int inputOffset,
                                       int inputLen)
        Overrides:
        engineDoFinal in class BaseWrapCipher
      • engineDoFinal

        protected int engineDoFinal​(byte[] input,
                                    int inputOffset,
                                    int inputLen,
                                    byte[] output,
                                    int outputOffset)
                             throws javax.crypto.ShortBufferException
        Overrides:
        engineDoFinal in class BaseWrapCipher
        Throws:
        javax.crypto.ShortBufferException