[Nfd-dev] Data verification in jndn

meban meban at nehu.ac.in
Tue Dec 15 03:19:17 PST 2020


Hi all, 

I am trying to simulate the data verification process in NDN. I have defined a producer in Producer.java and run it in RunProducer.java (see attached file). Notice that the producer is signing its data using the RSA key. 

Based on examples given in jNDN, on the consumer side, I tried to verify the received data by implementing DataValidationSuccessCallback & DataValidationFailureCallback interfaces when defining the Consumer.java. However, it gives an error that keyChain.getFib() not supported in current security v1 (probably because jndn not supporting it). 

I also tried using KeyChain.verifyInterestWithHmacWithSha256(interest, key) as shown in some example but still not working. 

I will be grateful if someone can suggest a way/tutorials/etc to perform verification of data at the consumer side in NDN. 

[I am using JNDN ver. 0.24 
NFD ver. 0.7.0-28-gf3bc3ae9 
Both JNDN & NFD runs on the same pc 
] 

Regards 
Meban 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20201215/1b3b31cc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Producer.java
Type: text/x-java
Size: 2598 bytes
Desc: not available
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20201215/1b3b31cc/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RunProducers.java
Type: text/x-java
Size: 13099 bytes
Desc: not available
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20201215/1b3b31cc/attachment-0001.bin>


More information about the Nfd-dev mailing list