<?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 — RsaPublicKeyDecode and --enable-opensslextra]]></title>
		<link>https://www.wolfssl.com/forums/topic501-rsapublickeydecode-and-enableopensslextra.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic501.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in RsaPublicKeyDecode and --enable-opensslextra.]]></description>
		<lastBuildDate>Fri, 07 Feb 2014 18:57:30 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: RsaPublicKeyDecode and --enable-opensslextra]]></title>
			<link>https://www.wolfssl.com/forums/post1535.html#p1535</link>
			<description><![CDATA[<p>Hi Chris,</p><p>I tested both alternatives, compiling wolfSSL embedded SSL with either a raw ./configure or ./configure --enable-opensslextra</p><p>Here is the code (der data was removed in here).</p><div class="codebox"><pre><code>#include &lt;cyassl/ctaocrypt/rsa.h&gt;
#include &lt;stdio.h&gt;
unsigned char der[] = { 0xAA ... };
size_t ksize = sizeof(der);
int main() {
    word32 idx =0;
    RsaKey *key = calloc(1,sizeof(RsaKey)); 
    CyaSSL_Init(); 
    InitRsaKey(key,0); 
    int res = RsaPublicKeyDecode(der, &amp;idx, key, ksize);
    printf(&quot;res=%d\n&quot;,res);
    return res;
}</code></pre></div><p>compiled using :<br /></p><div class="codebox"><pre><code>gcc -DUSE_FAST_MATH -ggdb -I./cyassl-2.8.0 foo.c -L ./cyassl-2.8.0/src/.libs/ -lcyassl</code></pre></div><p>got either 0 or -143 depending on the configure/build option.</p><p>Regards,</p><p>Stéphane.</p><p>PS : host is ubuntu 13.10 x86_64 Kernel : 3.11.0-15-generic #25-Ubuntu SMP</p>]]></description>
			<author><![CDATA[null@example.com (stf)]]></author>
			<pubDate>Fri, 07 Feb 2014 18:57:30 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post1535.html#p1535</guid>
		</item>
		<item>
			<title><![CDATA[Re: RsaPublicKeyDecode and --enable-opensslextra]]></title>
			<link>https://www.wolfssl.com/forums/post1534.html#p1534</link>
			<description><![CDATA[<p>Hi Stéphane,</p><p>Are you initializing your RsaKey structure with InitRsaKey() before your call to RsaPublicKeyDecode?</p><p>Regards,<br />Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrisc)]]></author>
			<pubDate>Fri, 07 Feb 2014 18:32:44 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post1534.html#p1534</guid>
		</item>
		<item>
			<title><![CDATA[RsaPublicKeyDecode and --enable-opensslextra]]></title>
			<link>https://www.wolfssl.com/forums/post1526.html#p1526</link>
			<description><![CDATA[<p>Hi,</p><p>I&#039;m using RsaPublicKeyDecode to load a public key, DER format, and it appears to me that the key decoding only works when --enable-opensslextra is used (wolfSSL 2.8.0). </p><p>Hopefully I missed something in the doc. </p><p>I did all tests on several Ubuntu (13.10 and 12.04) with two basic builds : raw ./configure&nbsp; and ./configure --enable-opensslextra both on a C file limited to&nbsp; a single :</p><div class="codebox"><pre><code>int res = RsaPublicKeyDecode(buffer, &amp;idx, &amp;key, ksize);</code></pre></div><p>In the first case I got a -143 error code, while second case is OK.</p><p>Are these the expected results ?</p><p>Thanks a lot,</p><p>Stéphane.</p>]]></description>
			<author><![CDATA[null@example.com (stf)]]></author>
			<pubDate>Thu, 30 Jan 2014 09:45:51 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post1526.html#p1526</guid>
		</item>
	</channel>
</rss>
