[Nfd-dev] Signature verification by the consumer

Thompson, Jeff jefft0 at remap.ucla.edu
Fri Feb 9 09:55:40 PST 2018


Usually, the client uses a Validator in the NDN library which fetches the public key certificate of the producer using the key name in the data packet. Can you say more about how your application is set up?

Here is a self-contained example which makes a Data packet, then validates it using a Validator that is pre-loaded with the signer’s public key.
https://github.com/named-data/ndn-cpp/blob/master/examples/test-encode-decode-data.cpp#L323

Thanks,
- Jeff T

From: Nfd-dev <nfd-dev-bounces at lists.cs.ucla.edu<mailto:nfd-dev-bounces at lists.cs.ucla.edu>> on behalf of Garegin Grigoryan <grigorg at clarkson.edu<mailto:grigorg at clarkson.edu>>
Date: Friday, February 9, 2018 at 9:40:00
To: nfd-dev <nfd-dev at lists.cs.ucla.edu<mailto:nfd-dev at lists.cs.ucla.edu>>
Subject: [Nfd-dev] Signature verification by the consumer

Hello,

I’m new to NFD and NDN. I wonder,  are there any examples of code, where consumer:

1) Extracts the public key of the producer;

2) Verifies the signature of the data packet using that public key?

Thank you very much.


Sincerely,
Garegin Grigoryan
grigorg at clarkson.edu<mailto:grigorg at clarkson.edu>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20180209/acec5542/attachment.html>


More information about the Nfd-dev mailing list