<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Feb 14, 2018 at 10:23 AM, Marian Beermann <span dir="ltr"><<a href="mailto:public@enkore.de" target="_blank">public@enkore.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">And then there is the general problem with streaming AEAD, namely, that<br>
it incentivises applications to process bits of plaintext that are not<br>
authenticated (possibly in the belief they are authenticated).<br></blockquote><div><br></div><div>With SIV modes you have to decrypt before authenticating, since the SIV tags are computed from the plaintext and not the ciphertext.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I believe that's the reason that lead e.g. libsodium to forgo any<br>
streaming AEAD APIs.</blockquote><div><br></div><div>libsodium supports a streaming API, however it authenticates ciphertexts in chunks and does not expose unauthenticated plaintexts:</div><div><br></div><div><a href="https://download.libsodium.org/doc/secret-key_cryptography/secretstream.html">https://download.libsodium.org/doc/secret-key_cryptography/secretstream.html</a><br></div></div><div><br></div>-- <br><div class="gmail_signature">Tony Arcieri<br></div>
</div></div>