<?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 Problems running AES Rijndael-128 example code in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problems-running-AES-Rijndael-128-example-code/m-p/833282#M5736</link>
    <description>Hi folks,&lt;BR /&gt;&lt;BR /&gt;I got troubles running the AES example with Rijndael Functions.&lt;BR /&gt;&lt;BR /&gt;When the example calls the decryption function... in this case 'ippsRijndael128DecryptCTR(ctext, rtext, sizeof(ptext), pCtx, crt, ctrNumBitSize);' it returns fewer bytes as spected compared with the original plain text buffer.&lt;BR /&gt;&lt;BR /&gt;I made a function to dump the content of all buffers involved in the crypt/decrypt example, and I got this output:&lt;BR /&gt;&lt;BR /&gt;// \\\\ Plain text before crypt ... // \\\\&lt;BR /&gt;========================================== DUMP len (0035) =======================================&lt;BR /&gt;HEXA Output:&lt;BR /&gt;71 75 69 63 6b 20 62 72 6f 77 6e 20 66 6f 78 20 6a 75 70 6d 20 6f 76 65 72 20 6c 61 7a 79 20 64 6f 67 00&lt;BR /&gt;ASCII Output:&lt;BR /&gt;quick brown fox jupm over lazy dog.&lt;BR /&gt;==================================================================================================&lt;BR /&gt;// \\\\ Cipher text after encrypt ... // \\\\&lt;BR /&gt;========================================== DUMP len (0035) =======================================&lt;BR /&gt;HEXA Output:&lt;BR /&gt;40 5d 2a 06 ab d4 40 00 71 f8 a3 e6 47 28 2b e2 c1 8f 4d 89 44 48 c1 4b 92 42 70 5d c6 3f 97 6e 05 00 00&lt;BR /&gt;ASCII Output:&lt;BR /&gt;@]*...@.q...G(+...M.DH.K.Bp].?.n...&lt;BR /&gt;==================================================================================================&lt;BR /&gt;// \\\\ Plain text before crypt ... // \\\\&lt;BR /&gt;========================================== DUMP len (0035) =======================================&lt;BR /&gt;HEXA Output:&lt;BR /&gt;71 75 69 63 6b 20 62 72 6f 77 6e 20 66 6f 78 20 6a 75 70 6d 20 6f 76 65 72 20 6c 61 7a 79 20 64 02 00 00&lt;BR /&gt;ASCII Output:&lt;BR /&gt;quick brown fox jupm over lazy d...&lt;BR /&gt;==================================================================================================&lt;BR /&gt;&lt;BR /&gt;Last word sould be dog, and instead I got something else ...&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;Chuck&lt;BR /&gt;&lt;BR /&gt;P.D.: The example has been gotten from the ippcp reference manual&lt;BR /&gt;</description>
    <pubDate>Fri, 23 Apr 2010 21:42:17 GMT</pubDate>
    <dc:creator>charopy</dc:creator>
    <dc:date>2010-04-23T21:42:17Z</dc:date>
    <item>
      <title>Problems running AES Rijndael-128 example code</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problems-running-AES-Rijndael-128-example-code/m-p/833282#M5736</link>
      <description>Hi folks,&lt;BR /&gt;&lt;BR /&gt;I got troubles running the AES example with Rijndael Functions.&lt;BR /&gt;&lt;BR /&gt;When the example calls the decryption function... in this case 'ippsRijndael128DecryptCTR(ctext, rtext, sizeof(ptext), pCtx, crt, ctrNumBitSize);' it returns fewer bytes as spected compared with the original plain text buffer.&lt;BR /&gt;&lt;BR /&gt;I made a function to dump the content of all buffers involved in the crypt/decrypt example, and I got this output:&lt;BR /&gt;&lt;BR /&gt;// \\\\ Plain text before crypt ... // \\\\&lt;BR /&gt;========================================== DUMP len (0035) =======================================&lt;BR /&gt;HEXA Output:&lt;BR /&gt;71 75 69 63 6b 20 62 72 6f 77 6e 20 66 6f 78 20 6a 75 70 6d 20 6f 76 65 72 20 6c 61 7a 79 20 64 6f 67 00&lt;BR /&gt;ASCII Output:&lt;BR /&gt;quick brown fox jupm over lazy dog.&lt;BR /&gt;==================================================================================================&lt;BR /&gt;// \\\\ Cipher text after encrypt ... // \\\\&lt;BR /&gt;========================================== DUMP len (0035) =======================================&lt;BR /&gt;HEXA Output:&lt;BR /&gt;40 5d 2a 06 ab d4 40 00 71 f8 a3 e6 47 28 2b e2 c1 8f 4d 89 44 48 c1 4b 92 42 70 5d c6 3f 97 6e 05 00 00&lt;BR /&gt;ASCII Output:&lt;BR /&gt;@]*...@.q...G(+...M.DH.K.Bp].?.n...&lt;BR /&gt;==================================================================================================&lt;BR /&gt;// \\\\ Plain text before crypt ... // \\\\&lt;BR /&gt;========================================== DUMP len (0035) =======================================&lt;BR /&gt;HEXA Output:&lt;BR /&gt;71 75 69 63 6b 20 62 72 6f 77 6e 20 66 6f 78 20 6a 75 70 6d 20 6f 76 65 72 20 6c 61 7a 79 20 64 02 00 00&lt;BR /&gt;ASCII Output:&lt;BR /&gt;quick brown fox jupm over lazy d...&lt;BR /&gt;==================================================================================================&lt;BR /&gt;&lt;BR /&gt;Last word sould be dog, and instead I got something else ...&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;Chuck&lt;BR /&gt;&lt;BR /&gt;P.D.: The example has been gotten from the ippcp reference manual&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Apr 2010 21:42:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problems-running-AES-Rijndael-128-example-code/m-p/833282#M5736</guid>
      <dc:creator>charopy</dc:creator>
      <dc:date>2010-04-23T21:42:17Z</dc:date>
    </item>
    <item>
      <title>Problems running AES Rijndael-128 example code</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problems-running-AES-Rijndael-128-example-code/m-p/833283#M5737</link>
      <description>Hello Chuck,
&lt;BR /&gt;
&lt;BR /&gt;
Not sure if it will impact the results, but the sample you show above and the sample I found in the documentation are different on one line. Here's the sample in the current version of the on-line documentation:
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://software.intel.com/sites/products/documentation/hpc/ipp/ippcp/index.htm"&gt;http://software.intel.com/sites/products/documentation/hpc/ipp/ippcp/index.htm&lt;/A&gt;
&lt;BR /&gt;
&lt;BR /&gt;
This is the line in your code:
&lt;BR /&gt;
&lt;BR /&gt;
ippsRijndael128Init(key,IppsRijndaelKey256, pCtx);
&lt;BR /&gt;
&lt;BR /&gt;
and this is the line in the sample referenced above:
&lt;BR /&gt;
&lt;BR /&gt;
ippsRijndael128Init(key,IppsRijndaelKey128, pCtx);
&lt;BR /&gt;
&lt;BR /&gt;
which looks like a mistake in the key length input parameter.
&lt;BR /&gt;
&lt;BR /&gt;
Paul</description>
      <pubDate>Sat, 24 Apr 2010 00:46:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problems-running-AES-Rijndael-128-example-code/m-p/833283#M5737</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2010-04-24T00:46:14Z</dc:date>
    </item>
    <item>
      <title>Problems running AES Rijndael-128 example code</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problems-running-AES-Rijndael-128-example-code/m-p/833284#M5738</link>
      <description>You are right Paul. I've allready fixed it and got the same thing.&lt;BR /&gt;&lt;BR /&gt;// \\ Plain text before crypt ... // \\&lt;BR /&gt;========================================== DUMP len (0035) =======================================&lt;BR /&gt;HEXA Output:&lt;BR /&gt;71 75 69 63 6b 20 62 72 6f 77 6e 20 66 6f 78 20 6a 75 70 6d 20 6f 76 65 72 20 6c 61 7a 79 20 64 6f 67 00&lt;BR /&gt;ASCII Output:&lt;BR /&gt;quick brown fox jupm over lazy dog.&lt;BR /&gt;==================================================================================================&lt;BR /&gt;// \\ Cipher text after encrypt ... // \\&lt;BR /&gt;========================================== DUMP len (0035) =======================================&lt;BR /&gt;HEXA Output:&lt;BR /&gt;f9 54 2a 89 0d 5f 6b 5c f4 ff 39 46 58 7e 84 ed e7 fe 38 c2 de 83 4d d8 6d 14 05 18 35 75 f7 de 05 00 00&lt;BR /&gt;ASCII Output:&lt;BR /&gt;.T*.._k\..9FX~....8...M.m...5u.....&lt;BR /&gt;==================================================================================================&lt;BR /&gt;// \\ Plain text before crypt ... // \\&lt;BR /&gt;========================================== DUMP len (0035) =======================================&lt;BR /&gt;HEXA Output:&lt;BR /&gt;71 75 69 63 6b 20 62 72 6f 77 6e 20 66 6f 78 20 6a 75 70 6d 20 6f 76 65 72 20 6c 61 7a 79 20 64 02 00 00&lt;BR /&gt;ASCII Output:&lt;BR /&gt;quick brown fox jupm over lazy d...&lt;BR /&gt;==================================================================================================&lt;BR /&gt;&lt;BR /&gt;I attached the changed source code.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Chuck&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Apr 2010 14:48:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problems-running-AES-Rijndael-128-example-code/m-p/833284#M5738</guid>
      <dc:creator>charopy</dc:creator>
      <dc:date>2010-04-27T14:48:01Z</dc:date>
    </item>
  </channel>
</rss>

