<?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 Re: ipp 6.0 :  RSA Encryption problem: ippsRSAGenerate  crash in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/ipp-6-0-RSA-Encryption-problem-ippsRSAGenerate-crash/m-p/880519#M10140</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/61463"&gt;vdudnik&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;The code you provide does ot compile. I would recommend you to carefully check parameters you use for IPP function call (please also refer to IPP documentation to see if any limitations have to be considered)&lt;/P&gt;
&lt;P&gt;Vladimir&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Hi ,&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply. The code does actually compile. But I did not want to paste all parts in this thread. So I try to replicate a kind of pseudo-code for it.&lt;BR /&gt;Anyway thanks, I fixed the problem.&lt;/P&gt;
&lt;P&gt;Now my problem with &lt;STRONG&gt;ippsRSAGenerate&lt;/STRONG&gt; is the t=&lt;STRONG&gt;nTrials&lt;/STRONG&gt; Security parameter specified for the Miller-Rabin probable primality . When I use &lt;STRONG&gt;nTrials &lt;/STRONG&gt;values derived from the Miller-Rabin pure theory , the program takes too much time to compute. It just to much calculations.&lt;/P&gt;
&lt;P&gt;I'm using 2048-bit and 3072-bit keys. Do you have any suggestions (&lt;STRONG&gt; &lt;/STRONG&gt;tradoffs ) about &lt;STRONG&gt;nTrials &lt;/STRONG&gt;values ?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Dec 2008 20:22:36 GMT</pubDate>
    <dc:creator>ndehoumon</dc:creator>
    <dc:date>2008-12-18T20:22:36Z</dc:date>
    <item>
      <title>ipp 6.0 :  RSA Encryption problem: ippsRSAGenerate  crash</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ipp-6-0-RSA-Encryption-problem-ippsRSAGenerate-crash/m-p/880517#M10138</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ippsRSAGenerate&lt;/STRONG&gt; keeps crashing. What's the problem with that code:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;-static const Ipp32u dataE[] = {65537};&lt;/P&gt;
&lt;P&gt;static const int keyLen = 2048;&lt;BR /&gt; primeLen_ = keyLen/2;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//pseudo-random engine&lt;BR /&gt; int rngSize;&lt;BR /&gt; ippsPRNGGetSize(&amp;amp;rngSize);&lt;BR /&gt; &lt;BR /&gt; IppsPRNGState* pRNG = (IppsPRNGState*)ippsMalloc_8u(rngSize);&lt;BR /&gt;&lt;BR /&gt; int MaxSeedBitsize=512;&lt;BR /&gt; ippsPRNGInit(MaxSeedBitsize, pRNG);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;// Give entropy to the PRNG&lt;BR /&gt; BigNum b(data32Len);&lt;BR /&gt; b.Randomize();&lt;/P&gt;
&lt;P&gt;status=ippsPRNGSetSeed(b.GetBN(), pRNG);&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;BigNum publicExponent(sizeof(dataE)/sizeof(dataE[0]));&lt;BR /&gt; publicExponent.Set(1,dataE); // calls ippsSet_BN&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ippsRSAGenerate&lt;/STRONG&gt;(&lt;BR /&gt; publicExponent.GetBN(),&lt;BR /&gt; keyLen_,&lt;BR /&gt; primeLen_,&lt;BR /&gt; gen_t(primeLen_), &lt;BR /&gt; pRSADecKey_,&lt;BR /&gt; ippsPRNGen,&lt;BR /&gt; pRNG&lt;BR /&gt; );&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;with :&lt;/P&gt;
&lt;P&gt;int gen_t(int kp)&lt;BR /&gt;{&lt;BR /&gt; int t;&lt;BR /&gt;&lt;BR /&gt; t = 27;&lt;BR /&gt; if(kp&amp;gt;150) t = 18;&lt;BR /&gt; if(kp&amp;gt;200) t = 15;&lt;BR /&gt; if(kp&amp;gt;250) t = 12;&lt;BR /&gt; if(kp&amp;gt;300) t = 9;&lt;BR /&gt; if(kp&amp;gt;350) t = 8;&lt;BR /&gt; if(kp&amp;gt;400) t = 7;&lt;BR /&gt; if(kp&amp;gt;450) t = 6;&lt;BR /&gt; return t;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Any suggestions will be very helpful Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2008 01:04:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ipp-6-0-RSA-Encryption-problem-ippsRSAGenerate-crash/m-p/880517#M10138</guid>
      <dc:creator>ndehoumon</dc:creator>
      <dc:date>2008-12-18T01:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: ipp 6.0 :  RSA Encryption problem: ippsRSAGenerate  crash</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ipp-6-0-RSA-Encryption-problem-ippsRSAGenerate-crash/m-p/880518#M10139</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;The code you provide does ot compile. I would recommend you to carefully check parameters you use for IPP function call (please also refer to IPP documentation to see if any limitations have to be considered)&lt;/P&gt;
&lt;P&gt;Vladimir&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2008 09:49:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ipp-6-0-RSA-Encryption-problem-ippsRSAGenerate-crash/m-p/880518#M10139</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2008-12-18T09:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: ipp 6.0 :  RSA Encryption problem: ippsRSAGenerate  crash</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ipp-6-0-RSA-Encryption-problem-ippsRSAGenerate-crash/m-p/880519#M10140</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/61463"&gt;vdudnik&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;The code you provide does ot compile. I would recommend you to carefully check parameters you use for IPP function call (please also refer to IPP documentation to see if any limitations have to be considered)&lt;/P&gt;
&lt;P&gt;Vladimir&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Hi ,&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply. The code does actually compile. But I did not want to paste all parts in this thread. So I try to replicate a kind of pseudo-code for it.&lt;BR /&gt;Anyway thanks, I fixed the problem.&lt;/P&gt;
&lt;P&gt;Now my problem with &lt;STRONG&gt;ippsRSAGenerate&lt;/STRONG&gt; is the t=&lt;STRONG&gt;nTrials&lt;/STRONG&gt; Security parameter specified for the Miller-Rabin probable primality . When I use &lt;STRONG&gt;nTrials &lt;/STRONG&gt;values derived from the Miller-Rabin pure theory , the program takes too much time to compute. It just to much calculations.&lt;/P&gt;
&lt;P&gt;I'm using 2048-bit and 3072-bit keys. Do you have any suggestions (&lt;STRONG&gt; &lt;/STRONG&gt;tradoffs ) about &lt;STRONG&gt;nTrials &lt;/STRONG&gt;values ?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2008 20:22:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ipp-6-0-RSA-Encryption-problem-ippsRSAGenerate-crash/m-p/880519#M10140</guid>
      <dc:creator>ndehoumon</dc:creator>
      <dc:date>2008-12-18T20:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: ipp 6.0 :  RSA Encryption problem: ippsRSAGenerate  crash</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ipp-6-0-RSA-Encryption-problem-ippsRSAGenerate-crash/m-p/880520#M10141</link>
      <description>&lt;DIV style="margin:0px;"&gt;Hello,&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;our expert recommend you to try something like this:&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;
&lt;PRE&gt;[cpp]int gen_t(int kp)
{
int t;

t = 27;
if(kp&amp;gt;150) t = 18;
if(kp&amp;gt;200) t = 15;
if(kp&amp;gt;250) t = 12;
if(kp&amp;gt;300) t = 9;
if(kp&amp;gt;350) t = 8;
if(kp&amp;gt;400) t = 7;
if(kp&amp;gt;450) t = 6;
return t;
}
[/cpp]&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Regards,&lt;BR /&gt; Vladimir&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Dec 2008 06:02:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ipp-6-0-RSA-Encryption-problem-ippsRSAGenerate-crash/m-p/880520#M10141</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2008-12-19T06:02:23Z</dc:date>
    </item>
  </channel>
</rss>

