<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic IPP Crypto link error - undefined reference to `ippsRijndael128 in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Crypto-link-error-undefined-reference-to/m-p/814333#M4170</link>
    <description>Hello James, &lt;BR /&gt;&lt;BR /&gt;does "icpc -o timing_aes timing_aes.o libcrypto.a libssl.a libippcpemerged.a libippcpmerged.a libippcore.a" work?&lt;BR /&gt;&lt;BR /&gt;The library order is essential under linux asGNU linkerjustreview the library once time in order. So the symboldefinedlibrary need belocatedafter the symbol-used library.&lt;BR /&gt;&lt;BR /&gt;One more reference, the sample of crypto should provided a buildscriptfile and Makefile. You may try them first following by the readme.htm, thenlook atthe build command in the log file.&lt;BR /&gt;For example, as the step in the KB article &lt;A href="http://software.intel.com/en-us/articles/boosting-openssl-aes-encryption-with-intel-ipp/"&gt;&lt;B&gt;Boosting OpenSSL AES Encryption with Intel IPP &lt;/B&gt;&lt;/A&gt;&lt;A target="_blank" href="http://software.intel.com/en-us/articles/boosting-openssl-aes-encryption-with-intel-ipp/feed/"&gt;&lt;IMG src="http://software.intel.com/media/images/small_icons/rss.png" border="0" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;P align="left"&gt;&lt;B&gt;Step 4&lt;/B&gt;&lt;B&gt;:&lt;/B&gt; Build the performance test program&lt;BR /&gt;$. ./build_perftest.sh linuxem64t&lt;BR /&gt;The resulting executables timing_aes , timing_rsa and timing_sha will be created in ./bin.&lt;/P&gt;the build log is in ssl_ipp_test.log. &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Ying &lt;BR /&gt;</description>
    <pubDate>Mon, 10 Jan 2011 03:48:58 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2011-01-10T03:48:58Z</dc:date>
    <item>
      <title>IPP Crypto link error - undefined reference to `ippsRijndael128GetSize'</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Crypto-link-error-undefined-reference-to/m-p/814328#M4165</link>
      <description>&lt;P&gt;I tried a sample (below) from the forum with IPP crypto library and encoutnered some link errors. Can you please help?&lt;/P&gt;&lt;P&gt;jawei-lnx-v1:537&amp;gt; echo $LIB&lt;/P&gt;&lt;P&gt;/ws/jawei-sjc/intel/ipp/ia32/lib&lt;/P&gt;&lt;P&gt;jawei-lnx-v1:538&amp;gt; echo $INCLUDE&lt;/P&gt;&lt;P&gt;/ws/jawei-sjc/intel/ipp/ia32/include:/ws/jawei-sjc/intel/mkl/include&lt;/P&gt;&lt;P&gt;jawei-lnx-v1:539&amp;gt; which icpc&lt;/P&gt;&lt;P&gt;/ws/jawei-sjc/intel/bin/ia32/icpc&lt;/P&gt;&lt;P&gt;jawei-lnx-v1:540&amp;gt; icpc -c sample.c&lt;/P&gt;&lt;P&gt;jawei-lnx-v1:541&amp;gt; &lt;/P&gt;&lt;P&gt;jawei-lnx-v1:541&amp;gt; ls sample.o libippcpmerged.a libippcore.a&lt;/P&gt;&lt;P&gt;libippcore.a libippcpmerged.a sample.o&lt;/P&gt;&lt;P&gt;jawei-lnx-v1:542&amp;gt; icpc -o sample sample.o libippcpmerged.a libippcore.a&lt;/P&gt;&lt;P&gt;sample.o: In function `main':&lt;/P&gt;&lt;P&gt;sample.c:(.text+0xb5): undefined reference to `ippsRijndael128GetSize'&lt;/P&gt;&lt;P&gt;sample.c:(.text+0xd0): undefined reference to `ippsRijndael128Init'&lt;/P&gt;&lt;P&gt;sample.c:(.text+0xec): undefined reference to `ippsRijndael128EncryptOFB'&lt;/P&gt;&lt;P&gt;sample.c:(.text+0x102): undefined reference to `ippsRijndael128DecryptOFB'&lt;/P&gt;&lt;P&gt;IPP / Crypto used:&lt;/P&gt;&lt;P&gt;l_cproc_p_11.1.073_ia32.tgz&lt;/P&gt;&lt;P&gt;l_cproc_crypto_ipp_p_11.1.073_ia32.tgz&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-James&lt;/P&gt;&lt;P&gt;==============================================&lt;/P&gt;&lt;P&gt;#include &lt;IOSTREAM&gt;&lt;/IOSTREAM&gt;&lt;/P&gt;&lt;P&gt;#include&lt;CSTRING&gt;&lt;/CSTRING&gt;&lt;/P&gt;&lt;P&gt;#include &lt;STDIO.H&gt; &lt;/STDIO.H&gt;&lt;/P&gt;&lt;P&gt;#include "ippcp.h" &lt;/P&gt;&lt;P&gt;using namespace std; &lt;/P&gt;&lt;P&gt;int main() &lt;/P&gt;&lt;P&gt;{ &lt;/P&gt;&lt;P&gt;Ipp8u i_key[32] = {0x60, 0x3d, 0xeb, 0x10, 0x15, 0xca, 0x71, 0xbe, 0x2b, 0x73, &lt;/P&gt;&lt;P&gt;0xae, 0xf0, 0x85, 0x7d, 0x77, 0x81, 0x1f, 0x35, 0x2c, 0x07, &lt;/P&gt;&lt;P&gt;0x3b, 0x61, 0x08, 0xd7, 0x2d, 0x98, 0x10, 0xa3, 0x09, 0x14, &lt;/P&gt;&lt;P&gt;0xdf, 0xf4}; &lt;/P&gt;&lt;P&gt;Ipp8u i_iv0[16] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, &lt;/P&gt;&lt;P&gt;0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f};&lt;/P&gt;&lt;P&gt;Ipp8u i_iv[16];&lt;/P&gt;&lt;P&gt;memcpy(i_iv,i_iv0,sizeof(i_iv0)); &lt;/P&gt;&lt;P&gt;Ipp8u i_data[16] = {0x6b, 0xc1, 0xbe, 0xe2, 0x2e, 0x40, 0x9f, 0x96, 0xe9, 0x3d, &lt;/P&gt;&lt;P&gt;0x7e, 0x11, 0x73, 0x93, 0x17, 0x2a}; &lt;/P&gt;&lt;P&gt;Ipp8u i_enc_data[16]; &lt;/P&gt;&lt;P&gt;Ipp8u i_dec_data[16]; &lt;/P&gt;&lt;P&gt;int context_size; &lt;/P&gt;&lt;P&gt;ippsRijndael128GetSize(&amp;amp;context_size); &lt;/P&gt;&lt;P&gt;IppsRijndael128Spec* aes_spec = (IppsRijndael128Spec*)(new Ipp8u[context_size]); &lt;/P&gt;&lt;P&gt;ippsRijndael128Init(i_key, IppsRijndaelKey256, aes_spec); &lt;/P&gt;&lt;P&gt;ippsRijndael128EncryptOFB(i_data, i_enc_data, 16, 16, aes_spec, i_iv0); &lt;/P&gt;&lt;P&gt;ippsRijndael128DecryptOFB(i_enc_data, i_dec_data, 16, 16, aes_spec, i_iv); &lt;/P&gt;&lt;P&gt;cout &amp;lt;&amp;lt; "Encrypted: "; &lt;/P&gt;&lt;P&gt;for (int i = 0; i &amp;lt; 16; ++i) &lt;/P&gt;&lt;P&gt;printf("%x ", i_enc_data&lt;I&gt;); &lt;/I&gt;&lt;/P&gt;&lt;P&gt;cout &amp;lt;&amp;lt; endl &amp;lt;&amp;lt; "Decrypted: "; &lt;/P&gt;&lt;P&gt;for (int i = 0; i &amp;lt; 16; ++i) &lt;/P&gt;&lt;P&gt;printf("%x ", i_dec_data&lt;I&gt;); &lt;/I&gt;&lt;/P&gt;&lt;P&gt;cout &amp;lt;&amp;lt; endl; &lt;/P&gt;&lt;P&gt;return 0; &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2010 00:22:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Crypto-link-error-undefined-reference-to/m-p/814328#M4165</guid>
      <dc:creator>James_Wei</dc:creator>
      <dc:date>2010-09-30T00:22:58Z</dc:date>
    </item>
    <item>
      <title>IPP Crypto link error - undefined reference to `ippsRijndael128</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Crypto-link-error-undefined-reference-to/m-p/814329#M4166</link>
      <description>Hello James, &lt;BR /&gt;&lt;BR /&gt;You may try &lt;BR /&gt;&amp;gt;icpc -o sample sample.o libippcpemerged.alibippcpmerged.a libippcore.a &lt;BR /&gt;and see if it works. &lt;BR /&gt;&lt;BR /&gt;Some KB for your reference:&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/intel-integrated-performance-primitives-intel-ipp-for-windows-find-the-intel-ipp-libraries-needed-by-your-application"&gt;&lt;STRONG&gt; Find the Intel IPP Libraries Needed by Your Application &lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/how-to-build-ipp-application-in-linux-environment/"&gt;&lt;STRONG&gt;How to build IPP application in Linux environment&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ying</description>
      <pubDate>Thu, 30 Sep 2010 03:31:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Crypto-link-error-undefined-reference-to/m-p/814329#M4166</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2010-09-30T03:31:13Z</dc:date>
    </item>
    <item>
      <title>IPP Crypto link error - undefined reference to `ippsRijndael128</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Crypto-link-error-undefined-reference-to/m-p/814330#M4167</link>
      <description>Hi Ying,&lt;BR /&gt;&lt;BR /&gt;Yourinfo worked and thank you for the KB links. I really appreicate your prompthelp!&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;-James</description>
      <pubDate>Thu, 30 Sep 2010 05:37:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Crypto-link-error-undefined-reference-to/m-p/814330#M4167</guid>
      <dc:creator>James_Wei</dc:creator>
      <dc:date>2010-09-30T05:37:32Z</dc:date>
    </item>
    <item>
      <title>IPP Crypto link error - undefined reference to `ippsRijndael128</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Crypto-link-error-undefined-reference-to/m-p/814331#M4168</link>
      <description>Hi Ying,&lt;BR /&gt;&lt;BR /&gt;What Itry to do is to statically build "timing_aes" from l_ipp-samples-cryptography_p_6.1.6.073.tgz that is supposed to enable AES-NI with patched OpenSSL. I was able tobuildlibscrypto.a and libssl.a withbuild_ssl_ipp.sh. I checked again and again but still received the following similar link errors?&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;jawei-lnx-v1:556&amp;gt; icpc -o timing_aes timing_aes.o libippcpemerged.a libippcpmerged.a libippcore.a libcrypto.a libssl.a &lt;/P&gt;&lt;P&gt;libcrypto.a(aes_cfb.o): In function `AES_cfb8_encrypt':&lt;/P&gt;&lt;P&gt;aes_cfb.c:(.text+0xa9): undefined reference to `ippsRijndael128DecryptCFB'&lt;/P&gt;&lt;P&gt;aes_cfb.c:(.text+0x162): undefined reference to `ippsRijndael128EncryptCFB'&lt;/P&gt;&lt;P&gt;libcrypto.a(aes_cfb.o): In function `AES_cfb128_encrypt':&lt;/P&gt;&lt;P&gt;aes_cfb.c:(.text+0x255): undefined reference to `ippsRijndael128DecryptCFB'&lt;/P&gt;&lt;P&gt;aes_cfb.c:(.text+0x2d2): undefined reference to `ippsRijndael128EncryptCFB'&lt;/P&gt;&lt;P&gt;libcrypto.a(aes_ofb.o): In function `AES_InitIppContext':&lt;/P&gt;&lt;P&gt;aes_ofb.c:(.text+0x190): undefined reference to `ippGetCpuFeatures'&lt;/P&gt;&lt;P&gt;libcrypto.a(aes_ofb.o): In function `AES_ofb128_encrypt':&lt;/P&gt;&lt;P&gt;aes_ofb.c:(.text+0x21c): undefined reference to `ippGetCpuFeatures'&lt;/P&gt;&lt;P&gt;aes_ofb.c:(.text+0x303): undefined reference to `ippsRijndael128EncryptOFB'&lt;/P&gt;&lt;P&gt;libcrypto.a(aes_cbc.o): In function `AES_cbc_encrypt':&lt;/P&gt;&lt;P&gt;aes_cbc.c:(.text+0xd8): undefined reference to `ippsRijndael128DecryptCBC'&lt;/P&gt;&lt;P&gt;aes_cbc.c:(.text+0x170): undefined reference to `ippsRijndael128EncryptCBC'&lt;/P&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;-James</description>
      <pubDate>Thu, 30 Sep 2010 06:08:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Crypto-link-error-undefined-reference-to/m-p/814331#M4168</guid>
      <dc:creator>James_Wei</dc:creator>
      <dc:date>2010-09-30T06:08:55Z</dc:date>
    </item>
    <item>
      <title>IPP Crypto link error - undefined reference to `ippsRijndael128</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Crypto-link-error-undefined-reference-to/m-p/814332#M4169</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;James,&lt;BR /&gt;&lt;BR /&gt;"libippcpemerged.a libippcpmerged.a libippcore.a" needs to be after "libcrypto.a libssl.a", could you try if the following linking line works: &lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;icpc -o timing_aes timing_aes.o libcrypto.a libssl.a libippcpemerged.a libippcpmerged.a libippcore.a</description>
      <pubDate>Fri, 08 Oct 2010 06:22:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Crypto-link-error-undefined-reference-to/m-p/814332#M4169</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2010-10-08T06:22:06Z</dc:date>
    </item>
    <item>
      <title>IPP Crypto link error - undefined reference to `ippsRijndael128</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Crypto-link-error-undefined-reference-to/m-p/814333#M4170</link>
      <description>Hello James, &lt;BR /&gt;&lt;BR /&gt;does "icpc -o timing_aes timing_aes.o libcrypto.a libssl.a libippcpemerged.a libippcpmerged.a libippcore.a" work?&lt;BR /&gt;&lt;BR /&gt;The library order is essential under linux asGNU linkerjustreview the library once time in order. So the symboldefinedlibrary need belocatedafter the symbol-used library.&lt;BR /&gt;&lt;BR /&gt;One more reference, the sample of crypto should provided a buildscriptfile and Makefile. You may try them first following by the readme.htm, thenlook atthe build command in the log file.&lt;BR /&gt;For example, as the step in the KB article &lt;A href="http://software.intel.com/en-us/articles/boosting-openssl-aes-encryption-with-intel-ipp/"&gt;&lt;B&gt;Boosting OpenSSL AES Encryption with Intel IPP &lt;/B&gt;&lt;/A&gt;&lt;A target="_blank" href="http://software.intel.com/en-us/articles/boosting-openssl-aes-encryption-with-intel-ipp/feed/"&gt;&lt;IMG src="http://software.intel.com/media/images/small_icons/rss.png" border="0" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;P align="left"&gt;&lt;B&gt;Step 4&lt;/B&gt;&lt;B&gt;:&lt;/B&gt; Build the performance test program&lt;BR /&gt;$. ./build_perftest.sh linuxem64t&lt;BR /&gt;The resulting executables timing_aes , timing_rsa and timing_sha will be created in ./bin.&lt;/P&gt;the build log is in ssl_ipp_test.log. &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Ying &lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jan 2011 03:48:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Crypto-link-error-undefined-reference-to/m-p/814333#M4170</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2011-01-10T03:48:58Z</dc:date>
    </item>
  </channel>
</rss>

