<div dir="ltr">Dear folks<div><br></div><div>Details about HMAC algorithm, or any other crypto algorithm, SHOULD NOT appear in NDN Packet Format spec.</div><div>Instead, the implementer should be referred to RFC.</div><div><br></div><div>Those details are duplication of RFC, and they would make the spec unnecessary long.<br></div><div>They also increase the probability of incorrect implementations because the implementer is unsure whether it's exactly same as what she/he has in the library, and would have to implement it again.</div><div>"don't have HMAC in their crypto library" is not a valid argument - it's easier to find an RFC-compliant library or snippet for most languages than to implement according to the (duplicate of RFC in) spec.</div><div><br></div><div>Yours, Junxiao<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 18, 2015 at 4:00 PM, Thompson, Jeff <span dir="ltr"><<a href="mailto:jefft0@remap.ucla.edu" target="_blank">jefft0@remap.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>The proposed SignatureHmacWithSha256 spec (below) repeats the details of the HMAC algorithm from RFC 2104. But should the details be removed and just refer to RFC 2104? Arguments for keeping the details are that it provides details for the discussion of
 creating the KeyDIgest and also because some applications don't have HMAC in their crypto library and need to implement it directly. An argument against keeping the details is that the info is in RFC 2104 so an application writer can read the RFC if needed,
 and that we don't repeat the details of other algorithms like SHA-256.</div>
<div><br>
</div>
<div>Any opinions on removing the algorithm details?</div>
<span>
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div><br>
</div>
<div>- Jeff T</div></div></span></div></blockquote></div></div></div></div>