<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">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><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><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><div style="font-size:12.8px">Trevor</div><div style="font-size:12.8px"><br></div></div></div></div>