<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[yaSSL - Embedded SSL Library]]></title>
		<link>http://www.yassl.com/forums/</link>
		<description><![CDATA[The most recent topics at yaSSL - Embedded SSL Library.]]></description>
		<lastBuildDate>Tue, 21 May 2013 21:31:21 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[CYASSL Installation error]]></title>
			<link>http://www.yassl.com/forums/topic377-cyassl-installation-error-new-posts.html</link>
			<description><![CDATA[<p>I am newbie to embeded crypto library CyaSSL. When I read its manual, it is really interesting. And I have downloaded cyassl-2.6.0 to ubuntu 13.04. As per the manual, I have changed the terminal directory to cyassl-2.6.0(i.e cd /home/wedikes/cyassl-2.6.0/). After changing to thsi directory<br />i just run ./configure<br />make</p><p>it provides some sort of errors as below</p><p>ctaocrypt/src/tfm.c: In function &#039;fp_mul_comba&#039;:<br />ctaocrypt/src/tfm.c:445:11: error: can&#039;t find a register in class &#039;GENERAL_REGS&#039; while reloading &#039;asm&#039;<br />ctaocrypt/src/tfm.c:445:11: error: &#039;asm&#039; operand has impossible constraints<br />make[1]: *** [ctaocrypt/src/src_libcyassl_la-tfm.lo] Error 1<br />make[1]: *** Waiting for unfinished jobs....<br />make: *** [all] Error 2</p><p>When I search on the Interent about the cause of the error, they are telling me the source of the erro is lack of registers? But I don&#039;t get what does that mean?&quot;You have to remember that these machines have a limited number of registers. And its possible to actually run out - that&#039;s what the error you&#039;re getting is telling you&quot; And my machine is lenovo y400 in 32 bit form.</p><p>Could you help me how to solve what I have faced?</p>]]></description>
			<author><![CDATA[dummy@example.com (chrisc)]]></author>
			<pubDate>Tue, 21 May 2013 21:31:21 +0000</pubDate>
			<guid>http://www.yassl.com/forums/topic377-cyassl-installation-error-new-posts.html</guid>
		</item>
		<item>
			<title><![CDATA[RSA PUBLIC KEY OPERATIONS]]></title>
			<link>http://www.yassl.com/forums/topic376-rsa-public-key-operations-new-posts.html</link>
			<description><![CDATA[<p>What should be the format of the key supplied to RsaPublicKeyDecode()? PEM or DER ?<br />I think it should be PEM but according to section 10.5.1 of <a href="http://yassl.com/yaSSL/Docs-cyassl-manual-10-ctaocrypt-usage-reference.html">http://yassl.com/yaSSL/Docs-cyassl-manu &#133; rence.html</a> , it seems it should be .der since it includes a comment refering to &quot;RsaPublicKey.der&quot;. Does that means a PEM key has to be first base64 decoded?</p><p>DECODING PUBLIC KEY<br />--------------<br />I am also of the impression that RsaPublicKeyDecode() in Cyassl can be be a replacement for PEM_read_bio_RSAPublicKey() or d2i_RSAPublicKey() in openssl without any issues since Cyassl provides openssl compatibility layer for only private key rsa private key operations </p><p>ENCODING PUBLIC KEY<br />-----------------------------<br />I couldn&#039;t find any function in Cyassl for encoding public keys. <br />Is there any Cyassl alternative for openssl i2d_RSAPublicKey()</p>]]></description>
			<author><![CDATA[dummy@example.com (chrisc)]]></author>
			<pubDate>Tue, 21 May 2013 21:27:00 +0000</pubDate>
			<guid>http://www.yassl.com/forums/topic376-rsa-public-key-operations-new-posts.html</guid>
		</item>
		<item>
			<title><![CDATA[AES in counter mode]]></title>
			<link>http://www.yassl.com/forums/topic375-aes-in-counter-mode-new-posts.html</link>
			<description><![CDATA[<p>I&#039;m porting my code from openssl to cyassl.<br />In my code I use AES in counter mode to encrypt data which arrives in parts and send it to the receiver.<br />In my code I use EVP_EncryptInit() to set the key and any time the data arrive, I encrypt it<br />with EVP_EncryptUpdate().<br />I never call EVP_EncryptFinal() since it will affect the context.<br />In Cyassl there is no compatibility for EVP_EncryptInit() but there is EVP_CipherInit(), so I intend to use EVP_CipherInit().<br />My difficulty comes down to EVP_EncryptUpdate().<br />Is their anyway I can achieve my objective since there is no alternative for EVP_EncryptUpdate()?</p><p>EDIT:<br />Further search through the source reveals that&nbsp; CyaSSL_EVP_Cipher [EVP_Cipher] is available<br />which i can use by passing CyaSSL_EVP_aes_128_ctr to select 128 counter mode.<br />I have realized that in counter mode, CyaSSL_EVP_Cipher only call AesCtrEncrypt()<br />This brings me back to the initial issue of context.<br />AesCtrEncrypt() does not accept context structure, hence will not update the context.</p><p>Thank you</p>]]></description>
			<author><![CDATA[dummy@example.com (chrisc)]]></author>
			<pubDate>Mon, 20 May 2013 15:59:29 +0000</pubDate>
			<guid>http://www.yassl.com/forums/topic375-aes-in-counter-mode-new-posts.html</guid>
		</item>
		<item>
			<title><![CDATA[DTLS crash after timeout (patch)]]></title>
			<link>http://www.yassl.com/forums/topic372-dtls-crash-after-timeout-patch-new-posts.html</link>
			<description><![CDATA[<p>We have had problems with CyaSSL 2.6 crashing after negotiations fail. It turns out that it tried to free a buffer that was never malloced, and I traced the problem to DtlsPoolSend. It should call CheckAvalaibleSize() [sic], shouldn&#039;t it?</p><p>The below patch (on cyassl-2.6.0) appears to solve the problem. Looking at the code, building without LARGE_STATIC_BUFFERS (which is what I do) makes things worse.</p><div class="codebox"><pre><code>Index: cyassl/src/internal.c
===================================================================
--- cyassl.orig/src/internal.c    2013-05-08 15:22:15.704663345 +0200
+++ cyassl/src/internal.c    2013-05-08 15:24:14.716658339 +0200
@@ -1791,6 +1791,7 @@
 
 int DtlsPoolSend(CYASSL* ssl)
 {
+    int ret;
     DtlsPool *pool = ssl-&gt;dtls_pool;
 
     if (pool != NULL &amp;&amp; pool-&gt;used &gt; 0) {
@@ -1807,6 +1808,9 @@
             c16toa(ssl-&gt;keys.dtls_epoch, dtls-&gt;epoch);
             c32to48(ssl-&gt;keys.dtls_sequence_number++, dtls-&gt;sequence_number);
 
+            if ((ret = CheckAvalaibleSize(ssl, buf-&gt;length)) != 0)
+                return ret;
+
             XMEMCPY(ssl-&gt;buffers.outputBuffer.buffer, buf-&gt;buffer, buf-&gt;length);
             ssl-&gt;buffers.outputBuffer.idx = 0;
             ssl-&gt;buffers.outputBuffer.length = buf-&gt;length;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (jonas)]]></author>
			<pubDate>Mon, 20 May 2013 12:31:38 +0000</pubDate>
			<guid>http://www.yassl.com/forums/topic372-dtls-crash-after-timeout-patch-new-posts.html</guid>
		</item>
		<item>
			<title><![CDATA[Decode RSA key from DER format]]></title>
			<link>http://www.yassl.com/forums/topic373-decode-rsa-key-from-der-format-new-posts.html</link>
			<description><![CDATA[<p>Hi All, </p><p>I have got a RSA private key in PKCS#8 DER format as output from Java (privateKey.getEncoded()), and would like to convert the DER binary into a RsaKey with the method: </p><p>RsaPrivateKeyDecode(keyDer, &amp;idx, privateKey, sizeKeyDer); </p><p>It failed in GetInt(), since (b != ASN_INTEGER). Instead of (b = 2), in my case (b = 48, or b = 0x30). I have attached the key. </p><p>Decoding a private key in DER format generated with openSSL was successful. Could you please tell me, which format CyaSSL supports for the DER - RsaKey conversion? </p><p>Thanks, </p><p>Yun</p>]]></description>
			<author><![CDATA[dummy@example.com (yun)]]></author>
			<pubDate>Thu, 16 May 2013 03:48:56 +0000</pubDate>
			<guid>http://www.yassl.com/forums/topic373-decode-rsa-key-from-der-format-new-posts.html</guid>
		</item>
		<item>
			<title><![CDATA[CyaSSL configuration]]></title>
			<link>http://www.yassl.com/forums/topic370-cyassl-configuration-new-posts.html</link>
			<description><![CDATA[<p>Hi All, </p><p>I am testing CyaSSL for embedded devices. Could you please advice the best configuration settings for runtime performance (i.e. speed)? We are running CyaSSL as pure software without any specific hardware support for crypto operations. </p><p>Especially for RSA there are a lot of configuration options to use different algorithms. In mpi_class.h I saw various configurations. </p><p>Thanks, <br />Yun</p>]]></description>
			<author><![CDATA[dummy@example.com (chrisc)]]></author>
			<pubDate>Fri, 10 May 2013 16:06:22 +0000</pubDate>
			<guid>http://www.yassl.com/forums/topic370-cyassl-configuration-new-posts.html</guid>
		</item>
		<item>
			<title><![CDATA[Verify server certs against a CTL?]]></title>
			<link>http://www.yassl.com/forums/topic369-verify-server-certs-against-a-ctl-new-posts.html</link>
			<description><![CDATA[<p>Is it possible to use a CTL contained on a single .pem file to verify server certificates, as a browser might? The instructions indicate that only a single cert can be loaded for verification at a time. This would seem dreadfully inefficient.</p>]]></description>
			<author><![CDATA[dummy@example.com (chrisc)]]></author>
			<pubDate>Fri, 10 May 2013 16:02:44 +0000</pubDate>
			<guid>http://www.yassl.com/forums/topic369-verify-server-certs-against-a-ctl-new-posts.html</guid>
		</item>
		<item>
			<title><![CDATA[multithreading with sniffer application - [suggested bug and fix]]]></title>
			<link>http://www.yassl.com/forums/topic366-multithreading-with-sniffer-application-suggested-bug-and-fix-new-posts.html</link>
			<description><![CDATA[<p>Hey all,<br />I monitor my own server and use the sniffer application using my server&#039;s private key. I register my server using ssl_setPrivateKey and do this only once (since i have only one server i monior). then, I call ssl_decodePacket for each packet. everything works just fine. recently, I tried to multithread the sniffer - I spawn some threads and call ssl_decodePacket from multiple threads. as far as i can see, the session table is thread safe, and it seems the application as a whole is built for it. however, I seem to crush when I ssl_decodePacket in a multithreaded fashion. I suspect it has to do with the fact that all the sessions to my server are using the same SnifferServer object, although, as I imagine, that has to be the case since I have only one server, accepting traffic on port 443. </p><p>I know SnifferServer is not being freed, this isn&#039;t the problem - I know it&#039;s quite general, but, any ideas?</p><p>sure, I can use the program with one thread, but I find the multithreaded version much faster to go over large data sets.</p><p>thanks,<br />Dan</p>]]></description>
			<author><![CDATA[dummy@example.com (SheldonCooper)]]></author>
			<pubDate>Fri, 10 May 2013 09:52:23 +0000</pubDate>
			<guid>http://www.yassl.com/forums/topic366-multithreading-with-sniffer-application-suggested-bug-and-fix-new-posts.html</guid>
		</item>
		<item>
			<title><![CDATA[Compile Mac i386 on a 64 machine]]></title>
			<link>http://www.yassl.com/forums/topic367-compile-mac-i386-on-a-64-machine-new-posts.html</link>
			<description><![CDATA[<p>The following used to work in an old cyassl version (1.5.0)</p><p>./configure --without-zlib --enable-static --enable-shared=no CFLAGS=&quot;-arch i386 -mmacosx-version-min=10.4&quot; LDFLAGS=&quot;-arch i386&quot;</p><p>Now I get an error when building a lot of the binaries. Probably means that some outputs are picking up the platform override and some ignore it. Is there a new way I should be using to specify architecture?</p><br /><br /><br /><br /><p>&nbsp; CCLD&nbsp; &nbsp; &nbsp;testsuite/testsuite<br />ldld: warning: ignoring file ctaocryptld/test/:test.o , warningfile:&nbsp; wasld :built&nbsp; warningfor:&nbsp; unsupportedignoring&nbsp; filefile&nbsp; formatctaocrypt /(benchmark /0xcfbenchmark.o ,0xfa&nbsp; file0xed&nbsp; was0xfe&nbsp; built0x&nbsp; for7&nbsp; unsupported0x&nbsp; file0&nbsp; format0x&nbsp; (0&nbsp; 0xcf0x&nbsp; 0xfa1&nbsp; 0xed0x&nbsp; 0xfe3&nbsp; 0x0x&nbsp; 70&nbsp; 0x0x&nbsp; 00&nbsp; 0x0x&nbsp; 00&nbsp; 0x0x&nbsp; 11&nbsp; 0x0x&nbsp; 30&nbsp; 0x0x&nbsp; 00&nbsp; 0x0x&nbsp; 00&nbsp; 0x)&nbsp; 0which&nbsp; 0xis&nbsp; 1not&nbsp; 0xthe&nbsp; 0architecture&nbsp; 0xbeing&nbsp; 0linked&nbsp; 0x( i3860) <img src="http://www.yassl.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; ctaocryptwhich/ testis/ test.onot<br /> ldthe:&nbsp; architecturewarning :being&nbsp; ignoringlinked&nbsp; file( i386src)/:. libsctaocrypt//libcyassl.abenchmark,/ benchmark.oignoringfile&nbsp; filewas&nbsp; srcbuilt/ .forlibs /archivelibcyassl.a ,which&nbsp; fileis&nbsp; wasnot&nbsp; builtthe&nbsp; forarchitecture&nbsp; archivebeing&nbsp; whichlinked&nbsp; is( i386not) :the&nbsp; srcarchitecture/ .beinglibs /linkedlibcyassl.a <br />(Undefinedi386 )symbols:&nbsp; forsrc /architecture. libsi386/:libcyassl.a</p> <br /><p> Undefined&quot; _mainsymbols&quot; ,for&nbsp; referencedarchitecture&nbsp; fromi386::</p><p>&nbsp; &nbsp; &nbsp;&quot; _main &quot; ,start&nbsp; referencedin&nbsp; fromcrt1.10.6.o:</p>]]></description>
			<author><![CDATA[dummy@example.com (yuvalperlov)]]></author>
			<pubDate>Tue, 07 May 2013 18:01:16 +0000</pubDate>
			<guid>http://www.yassl.com/forums/topic367-compile-mac-i386-on-a-64-machine-new-posts.html</guid>
		</item>
		<item>
			<title><![CDATA[DTLS timeouts]]></title>
			<link>http://www.yassl.com/forums/topic251-dtls-timeouts-new-posts.html</link>
			<description><![CDATA[<p>Hi,</p><p>I am looking into porting an app from OpenSSL to cyassl.</p><p>OpenSSL has a function &#039;DTLSv1_handle_timeout&#039; that can be used<br />to re-transmit packets when sockets in non-blocking<br />mode are used. Is there similar mechanism in cyassl?</p><p>I realize that data packets are not re-transmitted and could<br />be lost and that&#039;s the consequence of using DTLS,<br />but some method of re-transmissions is needed for DTLS&#039;<br />own protocol packets...</p>]]></description>
			<author><![CDATA[dummy@example.com (toe)]]></author>
			<pubDate>Tue, 07 May 2013 07:17:15 +0000</pubDate>
			<guid>http://www.yassl.com/forums/topic251-dtls-timeouts-new-posts.html</guid>
		</item>
		<item>
			<title><![CDATA[Fastmath on CortexM3]]></title>
			<link>http://www.yassl.com/forums/topic354-fastmath-on-cortexm3-new-posts.html</link>
			<description><![CDATA[<p>I&#039;m running cyassl 2.5.0 on cortex m3 (lpc1788) mcu. If I swith to fastmath, cyassl fails to verify RSA certificates&nbsp; (keys &amp; certificates were generated on x86 cyassl instance using default big integer lib). Is this behaviour normal (cyassl_fastmath&nbsp; is incompatible with cyassl_big_integer) and I need to make new keys using fast math?</p>]]></description>
			<author><![CDATA[dummy@example.com (chrisc)]]></author>
			<pubDate>Mon, 06 May 2013 21:38:23 +0000</pubDate>
			<guid>http://www.yassl.com/forums/topic354-fastmath-on-cortexm3-new-posts.html</guid>
		</item>
		<item>
			<title><![CDATA[Force Reuse, Porting Old Code]]></title>
			<link>http://www.yassl.com/forums/topic368-force-reuse-porting-old-code-new-posts.html</link>
			<description><![CDATA[<p>I am porting some code from cyassl 1.5 to 2.6.</p><p>Most APIs seem very stable but I came upon this which uses an internal api (used to be in cyassl_int.h):</p><p>static void saveforreuse(iao_connection *c)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; if (doreuse(c))<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; agentsslsession = SSL_get_session(c-&gt;ssl);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; agentsslsession-&gt;bornOn = LowResTimer();<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />}</p><p>I am guessing from the function names that the programmer was aiming to force the system to keep using the same ssl session across hits (the use case is a 5 minute https keep alive).</p><p>Does this make any sense? Would it have the intended effect?<br />What is the correct way of doing this in the 2.6 release?</p><p>Yuval</p>]]></description>
			<author><![CDATA[dummy@example.com (todd)]]></author>
			<pubDate>Mon, 06 May 2013 21:31:19 +0000</pubDate>
			<guid>http://www.yassl.com/forums/topic368-force-reuse-porting-old-code-new-posts.html</guid>
		</item>
		<item>
			<title><![CDATA[Certificate Expired]]></title>
			<link>http://www.yassl.com/forums/topic361-certificate-expired-new-posts.html</link>
			<description><![CDATA[<p>Hello,</p><p>I am testing the yaSSL GPL code. </p><p>I started testing all the crypto algorithms supported by yaSSL.</p><p>Most of the algorithms got passed. But RSA test failed. When I debugged I found that this test failed because certificate got expired. </p><p>I hope yaSSL tries to extract the public key from the certificate and while validating this certificate it failed.</p><p>Can someone help me from where I could get the new client certificate.</p><p>Regards,<br />Satish</p>]]></description>
			<author><![CDATA[dummy@example.com (chrisc)]]></author>
			<pubDate>Tue, 23 Apr 2013 18:07:03 +0000</pubDate>
			<guid>http://www.yassl.com/forums/topic361-certificate-expired-new-posts.html</guid>
		</item>
		<item>
			<title><![CDATA[variables used before set in internal.c]]></title>
			<link>http://www.yassl.com/forums/topic362-variables-used-before-set-in-internalc-new-posts.html</link>
			<description><![CDATA[<p>In our setup, the compiler warning &quot;variable is used before it is set&quot; is promoted from warning to error, so it breaks our builds.</p><p>In &quot;internal.c&quot; around line 9255, there is the following code:</p><div class="codebox"><pre><code>        byte*       out;
        int         outLen;
        byte        hashAlgo = sha_mac;
        byte        sigAlgo = anonymous_sa_algo;

        (void)out;
        (void)outLen;</code></pre></div><p>While I don&#039;t understand the meaning of the last two lines, the compiler throws an error for outLen because this line uses it before it is set.<br />What&#039;s the purpose of those lines?<br />Can you either remove them or set an initial value to the two variables in future releases?</p>]]></description>
			<author><![CDATA[dummy@example.com (chrisc)]]></author>
			<pubDate>Mon, 22 Apr 2013 18:05:00 +0000</pubDate>
			<guid>http://www.yassl.com/forums/topic362-variables-used-before-set-in-internalc-new-posts.html</guid>
		</item>
		<item>
			<title><![CDATA[Error while running configuration file]]></title>
			<link>http://www.yassl.com/forums/topic359-error-while-running-configuration-file-new-posts.html</link>
			<description><![CDATA[<p>Hi,</p><p> I have downloaded yaSSL GPL code and tried to build on Ubuntu platform.<br /> While runing ./configure, i am facing some error as follows.</p><br /><p>checking for g++ ... no<br />checking for c++... no<br />checking for gpp .. no<br />checking for aCC ... no<br />checking for CC ... no<br />checking for cxx ... no<br />checking for cc++ ... no<br />......<br />.....<br />checking whether c++ compiler works ... no<br />configure : error : C++ compiler cannot create executable.<br />see config.log for more details.</p><p>Can someone help me out how to fix thiis error?</p>]]></description>
			<author><![CDATA[dummy@example.com (chrisc)]]></author>
			<pubDate>Mon, 22 Apr 2013 15:56:43 +0000</pubDate>
			<guid>http://www.yassl.com/forums/topic359-error-while-running-configuration-file-new-posts.html</guid>
		</item>
	</channel>
</rss>
