/** Constructs a CipherInputStream from an InputStream and an AEADBlockCipher. */ public CipherInputStream(InputStream is, AEADBlockCipher cipher) { super(is); this.aeadBlockCipher = cipher; buf = new byte[cipher.getOutputSize(INPUT_BUF_SIZE)]; inBuf = new byte[INPUT_BUF_SIZE]; }