<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi,
<div class=""><br class="">
</div>
<div class="">Are you sure that the Interest you receive carries a signature in the first place?</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class=""><br class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div>Spyridon (Spyros) Mastorakis<br class="">
Assistant Professor<br class="">
Computer Science Department<br class="">
University of Nebraska, Omaha<br class="">
Peter Kiewit Institute Room 175A<br class="">
<a href="https://sites.google.com/site/spyridonmastorakis" class="">https://sites.google.com/site/spyridonmastorakis</a><br class="">
</div>
</div>
</div>
</div>
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Jan 15, 2020, at 3:45 AM, Anantha krishnan saji via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" class="">ndnsim@lists.cs.ucla.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">Hi all,</div>
<div class=""><br class="">
</div>
<div class="">I want to use Signature in interest packets. Since I could not find InterestSignature class in ndnSim (<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__named-2Ddata.net_doc_NDN-2Dpacket-2Dspec_current_signature.html-23interest-2Dsignature&d=DwMFaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=aNexH4sM2MOP3WZq3KHw4FakjxdFte_otC2AV9FLzK4&s=HBLrQsPQMcXUXUG86_9LXf5FQ4iH9wS7TifZmRKi4fM&e=" class="">http://named-data.net/doc/NDN-packet-spec/current/signature.html#interest-signature</a>),
 I used DataSignature (ndn-cxx/signature.cpp). I made the necessary changes in encoding and decoding of interest packet. I am using </div>
<div class=""><br class="">
</div>
<div class=""><span style="font-family:verdana,sans-serif" class=""><b class="">Block block = ::ndn::makeNonNegativeIntegerBlock(::ndn::tlv::SignatureValue, m_signature);
<br class="">
</b></span></div>
<div class=""><span style="font-family:verdana,sans-serif" class=""><b class="">signature.setValue(block);</b></span></div>
<div class="">to create a signaturevalue block and</div>
<div class=""><br class="">
</div>
<span style="font-family:verdana,sans-serif" class=""><b class="">Block signatureValueBlock = interest->getSignature().getValue();<br class="">
</b></span>
<div class=""><span style="font-family:verdana,sans-serif" class=""><b class="">signatureValueBlock.parse();</b></span></div>
<div class="">to parse the block on producer side. I am able to parse signatureInfo similarly. But the problem is signatureValue is not getting parsed. I am getting the following error:</div>
<div class=""><br class="">
</div>
<div class=""><span style="font-family:verdana,sans-serif" class=""><b class="">TLV-LENGTH of sub-element of type 252 exceeds TLV-VALUE boundary of parent block</b></span></div>
<div class=""><span style="font-family:verdana,sans-serif" class=""><b class=""><br class="">
</b></span></div>
When the default signatureValue of 0 is used, the error becomes
<div class=""><span style="font-family:verdana,sans-serif" class=""><b class=""><br class="">
</b></span></div>
<div class=""><span style="font-family:verdana,sans-serif" class=""><b class="">Empty buffer during TLV parsing</b></span></div>
<div class=""><span style="font-family:verdana,sans-serif" class=""><b class=""><br class="">
</b></span></div>
<div class=""><span style="font-family:verdana,sans-serif" class=""><font face="arial,sans-serif" class="">I would like to know whether there are any additional steps involved in parsing signature other than</font></span></div>
<div class="">
<ol class="">
<li class=""><span style="font-family:verdana,sans-serif" class=""><font face="arial,sans-serif" class="">retrieve the signatureValue block.<br class="">
</font></span></li><li class="">parse the retrieved block.</li><li class="">Access the tlv using Block::elements();</li></ol>
<div class="">I have used the same steps in multiple places in my code to create and parse blocks and all that is working fine. Is parsing Signature any different?</div>
<div class=""><br class="">
</div>
<div class="">Thanks and regards,</div>
<div class="">Ananthakrishnan S</div>
<div class="">NITK Surathkal<br class="">
</div>
</div>
</div>
_______________________________________________<br class="">
ndnSIM mailing list<br class="">
<a href="mailto:ndnSIM@lists.cs.ucla.edu" class="">ndnSIM@lists.cs.ucla.edu</a><br class="">
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.lists.cs.ucla.edu_mailman_listinfo_ndnsim&d=DwICAg&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=aNexH4sM2MOP3WZq3KHw4FakjxdFte_otC2AV9FLzK4&s=jIZm1rO4wtEz4cMr4shGKLQprymKM0XveBPrAzIP_5M&e=
<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>