[ndnSIM] How to verify data's signature on consumer and router.
aa at cs.fiu.edu
Mon Jul 5 09:36:21 PDT 2021
> On Jul 5, 2021, at 12:33 PM, Cheng-Wei Lin <bsotccccc at gmail.com> wrote:
> Dear Dr. Alex,
> Thanks for your reply, i'm very grateful.
> Follow by your suggestion, i have set up that producer's attribute as following:
> producerHelper.SetAttribute("Signature","Fake signature", UintegerValue(100));
> producerHelper.SetAttribute("KeyLocator", StringValue("unique/key/locator"));
> However, as you mentioned in the email, it won't be an actual signing. What will it truly make?
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.
> I found this former email about signing and verification : https://www.lists.cs.ucla.edu/pipermail/nfd-dev/2017-December/002948.html <https://www.lists.cs.ucla.edu/pipermail/nfd-dev/2017-December/002948.html> ,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.
> My best regards.
> Cheng-Wei Lin
> Alex Afanasyev <aa at cs.fiu.edu <mailto:aa at cs.fiu.edu>> 於 2021年7月4日 週日 下午10:48寫道：
> 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 Signature property when installing this Producer app on a node.
> 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.
>> On Jul 4, 2021, at 6:00 AM, Cheng-Wei Lin via ndnSIM <ndnsim at lists.cs.ucla.edu <mailto:ndnsim at lists.cs.ucla.edu>> wrote:
>> Dear all,
>> 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.
>> 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.
>> My best regards.
>> Cheng-Wei Lin
>> ndnSIM mailing list
>> ndnSIM at lists.cs.ucla.edu <mailto:ndnSIM at lists.cs.ucla.edu>
>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim <http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim>
Assistant Professor, SCIS, Florida International University
11200 SW 8th Street, PG6 Room 140D, Miami, FL 33199
phone: +1.305.348.4960 (office); email: aa at cs.fiu.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM