message: This is a workaround of a bug in Conscrypt.
  When one does
  cipher.update(buffer1, output);
  cipher.doFinal(buffer2, output)
  if buffer2 is empty Conscrypt didn't update output at all.
  This edge case happened in Tink when users write single bytes to an encrypting channel.
  Equivalent internal Cl: cr/171306593.
  ORIGINAL_AUTHOR=Thai Duong
  GitOrigin-RevId:
diff: @@ -71,7 +71,11 @@ class StreamingAeadEncryptingChannel implements WritableByteChannel {
  try {
  ptBuffer.flip();
  ctBuffer.clear();
  + if (slice.remaining() != 0) {
  encrypter.encryptSegment(ptBuffer, slice, false, ctBuffer);
  + } else {
  + encrypter.encryptSegment(ptBuffer, false, ctBuffer);
  + }
  } catch (GeneralSecurityException ex) {
  throw new IOException(ex);
  }
  