<div dir="ltr">Hi Junxiao,<br><br>Thanks for your reply.<br>I tried to use the following command to diagnose my problem as your suggestion: ./waf --command-template="valgrind --leak-check=full --show-reachable=yes --log-file=error %s" --run ndn-simple<br>and get this output <a href="https://drive.google.com/file/d/1WuDottbiAgdpzgLHIkOS5vkJcwE0cyo_/view?usp=sharing">file</a>, which shows that this program has 35 error from 18 contexts.<br><br>However, I run the same command on unmodified ndnSIM, its output <a href="https://drive.google.com/file/d/1ALYX9HdZeVIFhEJuHwjux0Z5_AGGS0ud/view?usp=sharing">file</a> has 129 error from 5 context.<br>I'm so confused<br><br>Sincerely yours,<br>Walter Swift<br><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu">shijunxiao@email.arizona.edu</a>> 於 2021年11月8日 週一 上午6:32寫道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div>Hi Walter</div><div dir="auto"><br></div><div dir="auto">"The key length will change every time I run my program" indicates that your program contains uninitialized memory.</div><div dir="auto">Use <b>valgrind</b> tool to diagnose this problem.</div><div dir="auto">See this document on how to start an ns-3 scenario in valgrind: <a href="https://www.nsnam.org/wiki/HOWTO_use_Valgrind_to_debug_memory_problems" target="_blank">https://www.nsnam.org/wiki/HOWTO_use_Valgrind_to_debug_memory_problems</a></div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Mon, Nov 1, 2021, 09:16 Walter Swift via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p style="text-align:center"><font color="red"><strong>External Email</strong><br></font></p><div dir="ltr">Hello everyone,<div><br></div><div>I'm trying to create an Identity to create a key to sign the signature, the following is a snippet of my program:</div><div>ndn::KeyChain keychain;</div><div>auto pas = keychain.getDefaultKeyParams();<br></div><div>auto my_id = keychain.createIdentity("pro1, pas);</div><div><br></div><div>However, I receive an following message while running my program and it will be terminated:</div><div>terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::invalid_argument> >'</div><div>    what(): Unsupported EC key length 2120880896</div><div><br></div><div>The key length will change every time I run my program, could you help me to solve this?</div><div>Thanks and regards</div><div><br></div><div>Sincerely yours,</div><div>Walter Swift</div></div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" rel="noreferrer" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div></div></div>
</blockquote></div>