code: @Override
      public void close() throws IOException {
          if (!closed) {
              closed = true;
              if (closeInput) {
                  super.close();
              }
              if (!noMoreInput) {
                  try {
                      cipher.doFinal();
                  } catch (IllegalBlockSizeException | BadPaddingException e) {
                      throw new CipherException(e);
                  }
              }
              ostart = ofinish = 0;
          }
      }
docs: {@inheritDoc}