Class BCCipherFactory.BCBlockCipher

java.lang.Object
com.hierynomus.security.bc.BCCipherFactory.BCBlockCipher
All Implemented Interfaces:
Cipher
Enclosing class:
BCCipherFactory

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

    Nested classes/interfaces inherited from interface com.hierynomus.security.Cipher

    Cipher.CryptMode
  • Field Summary

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

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

    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
     
    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 Details

    • wrappedCipher

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

    • BCBlockCipher

      BCBlockCipher(org.bouncycastle.crypto.BufferedBlockCipher bufferedBlockCipher)
  • Method Details

    • init

      public void init(Cipher.CryptMode cryptMode, byte[] bytes)
      Specified by:
      init in interface Cipher
    • update

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

      public int doFinal(byte[] out, int outOff) throws SecurityException
      Specified by:
      doFinal in interface Cipher
      Throws:
      SecurityException
    • reset

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

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