<div dir="ltr"><div><div>Oops, yeah not how that happened. Corrected.<br><br></div>Thanks,<br></div>Adam<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 25, 2016 at 12:12 PM, Trevor Perrin <span dir="ltr"><<a href="mailto:trevp@trevp.net" target="_blank">trevp@trevp.net</a>></span> wrote:<br><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><div class="gmail_quote"><span class="">On Mon, Jul 18, 2016 at 5:29 PM, Adam Crain <span dir="ltr"><<a href="mailto:jadamcrain@automatak.com" target="_blank">jadamcrain@automatak.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>Hi Trevor,<br><br></div>I've captured this discussion here:<br><br><a href="https://github.com/noiseprotocol/noise_wiki/wiki/Authentication-only-modes-functions-for-Noise" target="_blank">https://github.com/noiseprotocol/noise_wiki/wiki/Authentication-only-modes-functions-for-Noise</a></div></div></div></blockquote><div><br></div></span><div>Hi Adam,</div><div><br></div><div>It looks like the nonce "n" got omitted from the HMAC, you should add that back in:</div><span class=""><div><br></div><div><div style="font-size:12.8px">ENCRYPT(k, n, ad, plaintext): </div><div style="font-size:12.8px">  plaintext || HMAC(k, n || len(ad) || ad || plaintext)</div></div><div style="font-size:12.8px"><br></div></span><span class="HOEnZb"><font color="#888888"><div style="font-size:12.8px">Trevor</div><div style="font-size:12.8px"><br></div></font></span></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><pre style="white-space:pre-wrap">J Adam Crain - Partner</pre><pre style="white-space:pre-wrap"><a href="http://www.automatak.com" style="font-family:arial,sans-serif;font-size:12.666666984558105px" target="_blank"><img src="http://www.automatak.com/images/automatak_letter_logo.png" width="96" height="14"></a><br></pre><pre style="white-space:pre-wrap">PGP 4096R/<a href="https://www.automatak.com/keys/jadamcrain.asc" style="color:rgb(17,85,204)" target="_blank">E2984A0C</a> 2013-05-03</pre></div></div></div></div></div></div>
</div>