<?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: ippsGFpECPrivateKey for std521r1 elliptic curve issue: Error -6. in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippsGFpECPrivateKey-for-std521r1-elliptic-curve-issue-Error-6/m-p/1598187#M28685</link>
    <description>&lt;P&gt;Hi Ruqiu,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe my problem is now gone.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to create a simple reproducer, I realised that the randfunc() was the one sending back the&amp;nbsp;&lt;SPAN&gt;ippStsSizeErr error...&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jeremie&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2024 08:18:32 GMT</pubDate>
    <dc:creator>jlabbe</dc:creator>
    <dc:date>2024-05-16T08:18:32Z</dc:date>
    <item>
      <title>ippsGFpECPrivateKey for std521r1 elliptic curve issue: Error -6.</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippsGFpECPrivateKey-for-std521r1-elliptic-curve-issue-Error-6/m-p/1597333#M28682</link>
      <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm struggling to use the method ippsGFpECPrivateKey for an elliptic curve configured following this process:&lt;/P&gt;&lt;P&gt;1) Create Gallois Field using:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ippsGFpInitFixed(521,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;ippsGFpMethod_p521r1&lt;/SPAN&gt;&lt;SPAN&gt;(), gf_output);&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;gf_output size is 1768.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;2) Create Elliptic Curve using:&amp;nbsp;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ippsGFpECInitStd521r1(gf_output_GF, ec_output)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Note that ec_output was first reseat with ec_size_output (4064) extracted from&amp;nbsp;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ippsGFpECGetSize(gf_output_GF, ec_size_output)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;3) Create BigNum using:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ippsECCPGetSizeStd521r1(secret_key_size_output)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;convert secret_key_size_output (12808) into secret_key_size_word (401)&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ippsBigNumGetSize(secret_key_size_word, bn_size_output)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;big_num now reseat with bn_size_output (3271)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ippsBigNumInit(secret_key_size_word, big_num)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;4) Now onto using&amp;nbsp;ippsGFpECPrivateKey&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ippsGFpECPrivateKey(secret_key(size=3271), elliptic_curve(size=4064), randfunc, randctx)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The error returned is -6.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I can see from the documentation that -6&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Indicates an error condition if the parameter&amp;nbsp;pointed to by pPrivate has a memory size that is&amp;nbsp;less than the order n of the elliptic curve base point&amp;nbsp;G."&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This same process does produce the correct results, for std256r1 and std384r1, would somebody understand what i'm doing wrong for std521r1?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 May 2024 09:09:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippsGFpECPrivateKey-for-std521r1-elliptic-curve-issue-Error-6/m-p/1597333#M28682</guid>
      <dc:creator>jlabbe</dc:creator>
      <dc:date>2024-05-14T09:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: ippsGFpECPrivateKey for std521r1 elliptic curve issue: Error -6.</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippsGFpECPrivateKey-for-std521r1-elliptic-curve-issue-Error-6/m-p/1597711#M28684</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Can you tell us your OS, IPP version, and CPU information, as well as a simple reproducer for this problem?&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 01:14:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippsGFpECPrivateKey-for-std521r1-elliptic-curve-issue-Error-6/m-p/1597711#M28684</guid>
      <dc:creator>Ruqiu_C_Intel</dc:creator>
      <dc:date>2024-05-15T01:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: ippsGFpECPrivateKey for std521r1 elliptic curve issue: Error -6.</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippsGFpECPrivateKey-for-std521r1-elliptic-curve-issue-Error-6/m-p/1598187#M28685</link>
      <description>&lt;P&gt;Hi Ruqiu,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe my problem is now gone.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to create a simple reproducer, I realised that the randfunc() was the one sending back the&amp;nbsp;&lt;SPAN&gt;ippStsSizeErr error...&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jeremie&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 08:18:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippsGFpECPrivateKey-for-std521r1-elliptic-curve-issue-Error-6/m-p/1598187#M28685</guid>
      <dc:creator>jlabbe</dc:creator>
      <dc:date>2024-05-16T08:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: ippsGFpECPrivateKey for std521r1 elliptic curve issue: Error -6.</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippsGFpECPrivateKey-for-std521r1-elliptic-curve-issue-Error-6/m-p/1598418#M28686</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Jeremie,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you let us know the issue is gone. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And glad to know that you found out the real issue in your code when trying to create a reproducer.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Ruqiu&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 01:26:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippsGFpECPrivateKey-for-std521r1-elliptic-curve-issue-Error-6/m-p/1598418#M28686</guid>
      <dc:creator>Ruqiu_C_Intel</dc:creator>
      <dc:date>2024-05-17T01:26:59Z</dc:date>
    </item>
  </channel>
</rss>

