Class BCCipherFactory.BCBlockCipher

  • All Implemented Interfaces:
    Cipher
    Enclosing class:
    BCCipherFactory

    private abstract static class BCCipherFactory.BCBlockCipher
    extends java.lang.Object
    implements Cipher
    • Nested Class Summary

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.bouncycastle.crypto.BufferedBlockCipher wrappedCipher  
    • Constructor Summary

      Constructors 
      Constructor Description
      BCBlockCipher​(org.bouncycastle.crypto.BufferedBlockCipher bufferedBlockCipher)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract org.bouncycastle.crypto.CipherParameters createParams​(byte[] key)  
      int doFinal​(byte[] out, int outOff)  
      void init​(Cipher.CryptMode cryptMode, byte[] bytes)  
      void reset()  
      int update​(byte[] in, int inOff, int bytes, byte[] out, int outOff)  
      • Methods inherited from class java.lang.Object

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

      • wrappedCipher

        private org.bouncycastle.crypto.BufferedBlockCipher wrappedCipher
    • Constructor Detail

      • BCBlockCipher

        BCBlockCipher​(org.bouncycastle.crypto.BufferedBlockCipher bufferedBlockCipher)
    • Method Detail

      • update

        public int update​(byte[] in,
                          int inOff,
                          int bytes,
                          byte[] out,
                          int outOff)
        Specified by:
        update in interface Cipher
      • reset

        public void reset()
        Specified by:
        reset in interface Cipher
      • createParams

        protected abstract org.bouncycastle.crypto.CipherParameters createParams​(byte[] key)