<?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 — Random test failed ! in wolfssl-fips-ready v5.5.0]]></title>
		<link>https://www.wolfssl.com/forums/topic1916-random-test-failed-in-wolfsslfipsready-v550.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1916.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Random test failed ! in wolfssl-fips-ready v5.5.0.]]></description>
		<lastBuildDate>Mon, 26 Sep 2022 01:46:50 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Random test failed ! in wolfssl-fips-ready v5.5.0]]></title>
			<link>https://www.wolfssl.com/forums/post6758.html#p6758</link>
			<description><![CDATA[<p>&quot;Is it changing after you change it in fips_test.c and rebuild?&quot; =&gt; no change when I rebuilt . <br />&quot;Is your FIPS hash unstable?&quot; =&gt; what it mean ?</p>]]></description>
			<author><![CDATA[null@example.com (karikjame2021)]]></author>
			<pubDate>Mon, 26 Sep 2022 01:46:50 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6758.html#p6758</guid>
		</item>
		<item>
			<title><![CDATA[Re: Random test failed ! in wolfssl-fips-ready v5.5.0]]></title>
			<link>https://www.wolfssl.com/forums/post6753.html#p6753</link>
			<description><![CDATA[<p>Is your FIPS hash unstable?&nbsp; Is it changing after you change it in fips_test.c and rebuild?<br />If so, make sure you are linking wolfCrypt FIPS in the right order, see our linker script here for an example: <a href="https://github.com/wolfSSL/wolfssl/blob/master/IDE/GCC-ARM/linker_fips.ld">https://github.com/wolfSSL/wolfssl/blob … er_fips.ld</a>&nbsp; Specifically, wolfcrypt_first.o needs to come first, then the FIPS objects, and lastly wolfcrypt_last.o.</p>]]></description>
			<author><![CDATA[null@example.com (kareem_wolfssl)]]></author>
			<pubDate>Fri, 23 Sep 2022 17:45:49 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6753.html#p6753</guid>
		</item>
		<item>
			<title><![CDATA[Re: Random test failed ! in wolfssl-fips-ready v5.5.0]]></title>
			<link>https://www.wolfssl.com/forums/post6751.html#p6751</link>
			<description><![CDATA[<p>thanks for reply. I met it when run testsuite. I try to set new hash to fips_test.c and rebuild but no luckly. I want to try first before I can ask my company buy it</p>]]></description>
			<author><![CDATA[null@example.com (karikjame2021)]]></author>
			<pubDate>Fri, 23 Sep 2022 03:39:53 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6751.html#p6751</guid>
		</item>
		<item>
			<title><![CDATA[Re: Random test failed ! in wolfssl-fips-ready v5.5.0]]></title>
			<link>https://www.wolfssl.com/forums/post6750.html#p6750</link>
			<description><![CDATA[<p>Hi karikjame2021,</p><p>In addition to the above, you will need to register a FIPS hash callback in your application.&nbsp; See below for how to register this.&nbsp; Note that our test suite already has its own FIPS hash callback.</p><div class="codebox"><pre><code>#ifdef HAVE_FIPS
    wolfCrypt_SetCb_fips(myFipsCb);
#endif</code></pre></div><div class="codebox"><pre><code>#ifdef HAVE_FIPS
    #include &lt;wolfssl/wolfcrypt/fips_test.h&gt;

    static void myFipsCb(int ok, int err, const char* hash)
    {
        printf(&quot;in my Fips callback, ok = %d, err = %d\n&quot;, ok, err);
        printf(&quot;message = %s\n&quot;, wc_GetErrorString(err));
        printf(&quot;hash = %s\n&quot;, hash);

        if (err == IN_CORE_FIPS_E) {
            printf(&quot;In core integrity hash check failure, copy above hash\n&quot;);
            printf(&quot;into verifyCore[] in fips_test.c and rebuild\n&quot;);
        }
    }
#endif</code></pre></div><p>May I ask where you are located, and if this is for a commercial project?&nbsp; Feel free to reach out to us at support [AT] wolfssl [DOT] com if this is sensitive information.</p><p>Thanks,<br />Kareem</p>]]></description>
			<author><![CDATA[null@example.com (kareem_wolfssl)]]></author>
			<pubDate>Thu, 22 Sep 2022 21:29:22 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6750.html#p6750</guid>
		</item>
		<item>
			<title><![CDATA[Re: Random test failed ! in wolfssl-fips-ready v5.5.0]]></title>
			<link>https://www.wolfssl.com/forums/post6749.html#p6749</link>
			<description><![CDATA[<p>Hi karikjame2021,</p><p>This is most likely caused by an outdated FIPS hash, you will need to update your FIPS hash and rebuild.&nbsp; The easiest way to do this is to run the script &quot;fips-hash.sh&quot; in the root of your wolfSSL directory.<br />You will need to register our FIPS seed callback in your application with the following code:</p><div class="codebox"><pre><code>#ifdef WC_RNG_SEED_CB
 wc_SetSeed_Cb(wc_GenerateSeed);
#endif</code></pre></div><p>Thanks,<br />Kareem</p>]]></description>
			<author><![CDATA[null@example.com (kareem_wolfssl)]]></author>
			<pubDate>Thu, 22 Sep 2022 21:04:44 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6749.html#p6749</guid>
		</item>
		<item>
			<title><![CDATA[Random test failed ! in wolfssl-fips-ready v5.5.0]]></title>
			<link>https://www.wolfssl.com/forums/post6748.html#p6748</link>
			<description><![CDATA[<p>- I built it successfully, but when i ran the test. It always failed. Please support to me. Thanks</p>]]></description>
			<author><![CDATA[null@example.com (karikjame2021)]]></author>
			<pubDate>Thu, 22 Sep 2022 11:02:28 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6748.html#p6748</guid>
		</item>
	</channel>
</rss>
