Class BaseBlockCipher

    • Constructor Detail

      • BaseBlockCipher

        protected BaseBlockCipher​(BlockCipher engine)
      • BaseBlockCipher

        protected BaseBlockCipher​(BlockCipher engine,
                                  int scheme,
                                  int digest,
                                  int keySizeInBits,
                                  int ivLength)
      • BaseBlockCipher

        protected BaseBlockCipher​(AEADCipher engine,
                                  boolean fixedIv,
                                  int ivLength)
      • BaseBlockCipher

        protected BaseBlockCipher​(AEADBlockCipher engine,
                                  boolean fixedIv,
                                  int ivLength)
      • BaseBlockCipher

        protected BaseBlockCipher​(BlockCipher engine,
                                  int ivLength)
      • BaseBlockCipher

        protected BaseBlockCipher​(BlockCipher engine,
                                  boolean fixedIv,
                                  int ivLength)
      • BaseBlockCipher

        protected BaseBlockCipher​(BufferedBlockCipher engine,
                                  boolean fixedIv,
                                  int ivLength)
    • Method Detail

      • engineSetMode

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

        protected void engineSetPadding​(java.lang.String padding)
                                 throws javax.crypto.NoSuchPaddingException
        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
      • engineUpdateAAD

        protected void engineUpdateAAD​(byte[] input,
                                       int offset,
                                       int length)
        Overrides:
        engineUpdateAAD in class javax.crypto.CipherSpi
      • engineUpdateAAD

        protected void engineUpdateAAD​(java.nio.ByteBuffer src)
        Overrides:
        engineUpdateAAD in class javax.crypto.CipherSpi
      • 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)
                                throws javax.crypto.IllegalBlockSizeException,
                                       javax.crypto.BadPaddingException
        Overrides:
        engineDoFinal in class BaseWrapCipher
        Throws:
        javax.crypto.IllegalBlockSizeException
        javax.crypto.BadPaddingException
      • engineDoFinal

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