<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><br>To handle missing or out of order chunks, you could maintain an hmac digest of all blocks processed prior to the current block, in addition to the added block. A missing block would cause the HMAC to fail. There would also need to be a method to ensure that we only a certain number of chunks.</div><span class=""><div class="gmail_extra"><br></div></span></div></blockquote><div> </div><div>Sorry, the last sentence was incoherent. I meant to say you'd need to be able to identify a truncated stream of chunks. </div><div> </div></div>
</div></div>