<div dir="ltr"><div>Hi all,</div><div><br></div><div>I want to use Signature in interest packets. Since I could not find InterestSignature class in ndnSim (<a href="http://named-data.net/doc/NDN-packet-spec/current/signature.html#interest-signature">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><br></div><div><span style="font-family:verdana,sans-serif"><b>Block block = ::ndn::makeNonNegativeIntegerBlock(::ndn::tlv::SignatureValue, m_signature); <br></b></span></div><div><span style="font-family:verdana,sans-serif"><b>signature.setValue(block);</b></span></div><div>to create a signaturevalue block and</div><div><br></div><span style="font-family:verdana,sans-serif"><b>Block signatureValueBlock = interest->getSignature().getValue();<br></b></span><div><span style="font-family:verdana,sans-serif"><b>signatureValueBlock.parse();</b></span></div><div>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><br></div><div><span style="font-family:verdana,sans-serif"><b>TLV-LENGTH of sub-element of type 252 exceeds TLV-VALUE boundary of parent block</b></span></div><div><span style="font-family:verdana,sans-serif"><b><br></b></span></div>When the default signatureValue of 0 is used, the error becomes<div><span style="font-family:verdana,sans-serif"><b><br></b></span></div><div><span style="font-family:verdana,sans-serif"><b>Empty buffer during TLV parsing</b></span></div><div><span style="font-family:verdana,sans-serif"><b><br></b></span></div><div><span style="font-family:verdana,sans-serif"><font face="arial,sans-serif">I would like to know whether there are any additional steps involved in parsing signature other than</font></span></div><div><ol><li><span style="font-family:verdana,sans-serif"><font face="arial,sans-serif">retrieve the signatureValue block.<br></font></span></li><li>parse the retrieved block.</li><li>Access the tlv using Block::elements();</li></ol><div>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><br></div><div>Thanks and regards,</div><div>Ananthakrishnan S</div><div>NITK Surathkal<br></div></div></div>