Class AesFlushingCipher


  • public final class AesFlushingCipher
    extends Object
    A flushing variant of a AES/CTR/NoPadding Cipher.

    Unlike a regular Cipher, the update methods of this class are guaranteed to process all of the bytes input (and hence output the same number of bytes).

    • Constructor Detail

      • AesFlushingCipher

        public AesFlushingCipher​(int mode,
                                 byte[] secretKey,
                                 long nonce,
                                 long offset)
    • Method Detail

      • updateInPlace

        public void updateInPlace​(byte[] data,
                                  int offset,
                                  int length)
      • update

        public void update​(byte[] in,
                           int inOffset,
                           int length,
                           byte[] out,
                           int outOffset)