<?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 — PIC32MZ with HW Crypto, RSA question]]></title>
		<link>https://www.wolfssl.com/forums/topic1092-pic32mz-with-hw-crypto-rsa-question.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1092.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in PIC32MZ with HW Crypto, RSA question.]]></description>
		<lastBuildDate>Mon, 18 Sep 2017 19:13:12 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: PIC32MZ with HW Crypto, RSA question]]></title>
			<link>https://www.wolfssl.com/forums/post3545.html#p3545</link>
			<description><![CDATA[<p>Hi Csaba,</p><p>The wolfCrypt test results up to the point of failure look normal. Typically when we see a failure in RSA its because of a memory or configuration issue.</p><p>Please check the following:<br />1. Make sure your stack enough reserved space. For my wolfCrypt test on a PIC32MZ here I set it to 20480 bytes.<br />2. If you are setting the FP_MAX_BITS make sure and use the max key size times 2 (so 2048-bit RSA will require `#define FP_MAX_BITS 4096`).<br />3. For the wolfCrypt self test it requires certificates. Typically these come from the file system in ./certs. If NO_FILESYSTEM is defined then you&#039;ll need to set either USE_CERT_BUFFERS_2048 or USE_CERT_BUFFERS_1024 depending on your FP_MAX_BITS.</p><p>For setting up the library to just enable SHA1 and RSA you can define `WOLFSSL_USER_SETTINGS` and the `user_settings.h`file somewhere in your include path. You can find examples for this here:</p><p><a href="https://github.com/wolfSSL/wolfssl/blob/master/mplabx/user_settings.h">https://github.com/wolfSSL/wolfssl/blob … settings.h</a></p><p>If this doesn&#039;t help please let me know the error code from the failed wc_Rsa function and the test which is failing.</p><p>Thanks,<br />David Garske, wolfSSL</p>]]></description>
			<author><![CDATA[null@example.com (dgarske)]]></author>
			<pubDate>Mon, 18 Sep 2017 19:13:12 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post3545.html#p3545</guid>
		</item>
		<item>
			<title><![CDATA[PIC32MZ with HW Crypto, RSA question]]></title>
			<link>https://www.wolfssl.com/forums/post3534.html#p3534</link>
			<description><![CDATA[<p>Hi,</p><p>I have: <br />PIC32MZ EF Starter Kit w/Crypto Engine (P/N: DM320007-C)<br />MPLAB X IDE v3.65<br />XC32 v1.42</p><p>wolfSSL 3.11.0 - couldn&#039;t compile it after many tries...<br />wolfSSL 3.12.0 - lots of warnings about optimization levels not supported and such but it does compile and the test runs halfway through, the result is this:</p><br /><p> WolfCrypt Test:<br />error&nbsp; &nbsp; test passed!<br />base64&nbsp; &nbsp;test passed!<br />MD5&nbsp; &nbsp; &nbsp; test passed!<br />SHA&nbsp; &nbsp; &nbsp; test passed!<br />SHA-256&nbsp; test passed!<br />SHA-384&nbsp; test passed!<br />SHA-512&nbsp; test passed!<br />Hash&nbsp; &nbsp; &nbsp;test passed!<br />HMAC-MD5 test passed!<br />HMAC-SHA test passed!<br />HMAC-SHA256 test passed!<br />HMAC-SHA384 test passed!<br />HMAC-SHA512 test passed!<br />GMAC&nbsp; &nbsp; &nbsp;test passed!<br />DES&nbsp; &nbsp; &nbsp; test passed!<br />DES3&nbsp; &nbsp; &nbsp;test passed!<br />AES&nbsp; &nbsp; &nbsp; test passed!<br />AES192&nbsp; &nbsp;test passed!<br />AES256&nbsp; &nbsp;test passed!<br />AES-GCM&nbsp; test passed!<br />AES-CCM&nbsp; test passed!<br />RANDOM&nbsp; &nbsp;test passed!<br />GetLength value exceeds buffer length<br />GetLength value exceeds buffer length<br />GetLength value exceeds buffer length<br />wc_SignatureGetSize: Invalid RsaKey key size<br />RSA Signature Verify difference!<br />wolfSSL Using RSA OAEP padding<br />wolfSSL Using RSA OAEP un-padding</p><p>then some error number and it exits. Any suggestions where should i start looking? I only need SHA1 and RSA, my luck that of course it dies out at RSA....</p><p>The HW Crypto can only do the SHA, not the RSA right?</p>]]></description>
			<author><![CDATA[null@example.com (Csaba.Bacskay)]]></author>
			<pubDate>Tue, 12 Sep 2017 08:21:28 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post3534.html#p3534</guid>
		</item>
	</channel>
</rss>
