<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jul 5, 2021, at 12:33 PM, Cheng-Wei Lin <<a href="mailto:bsotccccc@gmail.com" class="">bsotccccc@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Dear Dr. Alex,<div class=""><br class=""><div class="">Thanks for your reply, i'm very grateful.</div></div><div class=""><br class=""></div><div class="">Follow by your suggestion, i have set up that producer's attribute as following:</div><div class="">producerHelper.SetAttribute("Signature","Fake signature", UintegerValue(100));</div><div class="">producerHelper.SetAttribute("KeyLocator", StringValue("unique/key/locator"));<br class=""></div><div class=""><br class=""></div><div class="">However, as you mentioned in the email, it won't be an actual signing. What will it truly make?</div></div></div></blockquote><div><br class=""></div><div>It will write "100" as a "signature".  Again. This is a simulation and you could just interpret 100 as "valid" signature and other numbers as "invalid".   If you want to put real signature, then just follow that post, you could just modify directly the producer.cpp where it creates a data packet.</div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">I found this former email about signing and verification : <a href="https://www.lists.cs.ucla.edu/pipermail/nfd-dev/2017-December/002948.html" class="">https://www.lists.cs.ucla.edu/pipermail/nfd-dev/2017-December/002948.html</a> ,but i still don't know how to make it works on producer、consumer and router. Could you guide me more? Any advice will be appreciated.</div><div class=""><br class=""></div><div class=""><div class="">My best regards.</div><font color="#888888" class=""><div class=""><div class=""><font class="">Cheng-Wei Lin</font></div></div></font></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Alex Afanasyev <<a href="mailto:aa@cs.fiu.edu" class="">aa@cs.fiu.edu</a>> 於 2021年7月4日 週日 下午10:48寫道:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" class="">By default, the signatures that producer app is creating are fake, and it is up to your simulation scenario to determine which "fake" is considered good signature and which not.  You only need to set <span style="color:rgb(3,47,98);font-family:ui-monospace,SFMono-Regular,"SF Mono",Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;font-variant-ligatures:normal;white-space:pre-wrap;background-color:rgb(255,255,255)" class="">Signature</span>  property when installing this Producer app on a node.<div class=""><br class=""></div><div class="">If you want to play with actual signatures, you would need to create an updated version of the producer app and use KeyChain to do actual signing.</div><div class=""><br class=""></div><div class="">-</div><div class="">Alex<br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Jul 4, 2021, at 6:00 AM, Cheng-Wei Lin via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank" class="">ndnsim@lists.cs.ucla.edu</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class=""><span class="">Dear all,</span><div class=""><font class=""><br class=""></font><div class=""><span class="">I want to set an experiment with a producer which will always respond interest with data with fake signature, the consumer and router can verify those data's signature and return the result.</span></div><div class=""><span class=""><br class=""></span></div><div class=""><span class="">I see there is an verification-helpers.hpp in security folder, but i don't know how to make it works on consumer and router. Can anyone guide me how to do it? Any help will be appreciated.</span></div></div><div class=""><br class=""></div><div class="">My best regards.</div><div class=""><div class=""><font class="">Cheng-Wei Lin</font></div></div><div class=""><font class=""><br class=""></font></div><div class=""><font class=""><br class=""></font></div></div>
_______________________________________________<br class="">ndnSIM mailing list<br class=""><a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank" class="">ndnSIM@lists.cs.ucla.edu</a><br class=""><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br class=""></div></blockquote></div><br class=""></div></div></blockquote></div>
</div></blockquote></div><br class=""><div class="">
<div dir="auto" style="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; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">______________<br class="">Alex Afanasyev<br class="">Assistant Professor, SCIS, Florida International University<br class="">11200 SW 8th Street, PG6 Room 140D, Miami, FL 33199<br class="">phone: +1.305.348.4960 (office); <a href="mailto:aa@cs.fiu.edu" class="">email: aa@cs.fiu.edu</a><br class="">web: <a href="https://users.cs.fiu.edu/~afanasyev/" class="">https://users.cs.fiu.edu/~afanasyev/</a><br class=""><br class=""></div>

</div>
<br class=""></body></html>