<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[wolfSSL - Embedded SSL Library — wc_ecc_import_raw is not working]]></title>
		<link>https://www.wolfssl.com/forums/topic1424-wceccimportraw-is-not-working.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1424.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in wc_ecc_import_raw is not working.]]></description>
		<lastBuildDate>Sat, 27 Jul 2019 20:49:59 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: wc_ecc_import_raw is not working]]></title>
			<link>https://www.wolfssl.com/forums/post4799.html#p4799</link>
			<description><![CDATA[<p>Anil,</p><p>Good deal! Happy to hear you identified the root cause. Let us know if anything else comes up!</p><p>- KH</p>]]></description>
			<author><![CDATA[null@example.com (Kaleb J. Himes)]]></author>
			<pubDate>Sat, 27 Jul 2019 20:49:59 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4799.html#p4799</guid>
		</item>
		<item>
			<title><![CDATA[Re: wc_ecc_import_raw is not working]]></title>
			<link>https://www.wolfssl.com/forums/post4798.html#p4798</link>
			<description><![CDATA[<p>Hi KH,</p><p>Thanks for the reply.</p><p>Found the root cause of the issue. I forgot to define the HAVE_ECC160&nbsp; in user_settings.h. Enabled all the other curves I was testing but not this one <img src="https://www.wolfssl.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><br /><p>Thanks<br />Anil.</p>]]></description>
			<author><![CDATA[null@example.com (anil.mylevahanan)]]></author>
			<pubDate>Fri, 26 Jul 2019 19:50:03 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4798.html#p4798</guid>
		</item>
		<item>
			<title><![CDATA[Re: wc_ecc_import_raw is not working]]></title>
			<link>https://www.wolfssl.com/forums/post4797.html#p4797</link>
			<description><![CDATA[<p>Hi Anil,</p><p>We have a few examples in wolfcrypt/test/test.c, have you tried comparing your application code to how we do it in our testing?</p><p>Warm Regards,</p><p>KH</p>]]></description>
			<author><![CDATA[null@example.com (Kaleb J. Himes)]]></author>
			<pubDate>Fri, 26 Jul 2019 19:05:03 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4797.html#p4797</guid>
		</item>
		<item>
			<title><![CDATA[wc_ecc_import_raw is not working]]></title>
			<link>https://www.wolfssl.com/forums/post4796.html#p4796</link>
			<description><![CDATA[<p>Hello,</p><p>I&#039;m trying out a sample code to load ECC keys generated using the OpenSSL command-line ( secp160r1) with wc_ecc_import_raw&nbsp; and the function is returning -140 as the return error code.</p><p>Step1 :<br />Here is the sample key I used</p><p>openssl ec -in pkey1.key -inform der -pubout -text -noout&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />read EC key<br />Private-Key: (161 bit)<br />priv:<br />&nbsp; &nbsp; 4c:69:49:c4:7e:e0:7c:24:6a:3d:d5:90:45:81:0e:<br />&nbsp; &nbsp; ee:53:5c:a8:9d<br />pub: <br />&nbsp; &nbsp; 04:76:9e:eb:0f:7e:11:71:81:7a:a0:01:7a:57:87:<br />&nbsp; &nbsp; 43:23:dc:6f:f8:2c:c6:91:34:e6:c4:9a:ed:3c:3c:<br />&nbsp; &nbsp; fb:cb:c2:a8:9b:69:a9:8b:74:71:72<br />ASN1 OID: secp160r1</p><p>Step 2: <br />Then I converted the keys to the hex string format required by the wc_ecc_import_raw</p><p>&nbsp; &nbsp; const char *X = &quot;769eeb0f7e1171817aa0017a57874323dc6ff82c&quot;;<br />&nbsp; &nbsp; const char *Y = &quot;c69134e6c49aed3c3cfbcbc2a89b69a98b747172&quot;;<br />&nbsp; &nbsp; const char *privateKey =&quot;4c6949c47ee07c246a3dd59045810eee535ca89d&quot;;<br />&nbsp; &nbsp; const char* curveName = &quot;SECP160R1&quot;;</p><br /><p>Step 3: Call the wc_ecc_import_raw method</p><p>wc_ecc_init(&amp;eccKey)<br />wc_ecc_import_raw(&amp;eccKey,X,Y,privateKey,curveName)</p><br /><p>Any thoughts on what could be wrong?</p>]]></description>
			<author><![CDATA[null@example.com (anil.mylevahanan)]]></author>
			<pubDate>Fri, 26 Jul 2019 17:37:48 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4796.html#p4796</guid>
		</item>
	</channel>
</rss>
