<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">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">ndnsim@lists.cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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" target="_blank" rel="noreferrer">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>