<?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 Security Engine (PKEU) calculation in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/Security-Engine-PKEU-calculation/m-p/132768#M131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I am attempting to implement the Digital Signature Algorithm verification process using the PKEU's math functions. I can get every step of the verification to compute properly except what one would think is the easiest part: x mod q, where x is a 512-bit result of numerous calculations beforehand, and q is a 160-bit value.&lt;BR /&gt;&lt;BR /&gt;I tried converting x and the number 1 into Montgomery form, and using MOD_MULT2_DECONV. This doesn't work. I've also tried padding q with leading zeroes so it is 512 bits long and that doesn't help.&lt;BR /&gt;&lt;BR /&gt;Does anybody have a suggestions as to how to perform this simple calculation using the PKEU?&lt;BR /&gt;&lt;BR /&gt;Thank you for any help.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 May 2007 07:16:52 GMT</pubDate>
    <dc:creator>Soybean</dc:creator>
    <dc:date>2007-05-05T07:16:52Z</dc:date>
    <item>
      <title>Security Engine (PKEU) calculation</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Security-Engine-PKEU-calculation/m-p/132768#M131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I am attempting to implement the Digital Signature Algorithm verification process using the PKEU's math functions. I can get every step of the verification to compute properly except what one would think is the easiest part: x mod q, where x is a 512-bit result of numerous calculations beforehand, and q is a 160-bit value.&lt;BR /&gt;&lt;BR /&gt;I tried converting x and the number 1 into Montgomery form, and using MOD_MULT2_DECONV. This doesn't work. I've also tried padding q with leading zeroes so it is 512 bits long and that doesn't help.&lt;BR /&gt;&lt;BR /&gt;Does anybody have a suggestions as to how to perform this simple calculation using the PKEU?&lt;BR /&gt;&lt;BR /&gt;Thank you for any help.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 May 2007 07:16:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Security-Engine-PKEU-calculation/m-p/132768#M131</guid>
      <dc:creator>Soybean</dc:creator>
      <dc:date>2007-05-05T07:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Security Engine (PKEU) calculation</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Security-Engine-PKEU-calculation/m-p/132769#M132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT face="Courier" size="2"&gt;&lt;/FONT&gt;&lt;P&gt;&lt;FONT face="Courier" size="2"&gt;I have&amp;nbsp;a similar&amp;nbsp;problem.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="2"&gt;I am trying to perform a mod_inv execution with pkeu´s math funtions.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="2"&gt;I convert a k bignum to montgomery format and pass p a mont(k), to security engine and the result doesn't work.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="2"&gt;The descryptor has the next fields.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="2"&gt;sd_header -&amp;gt; 0x50f00081&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="2"&gt;ptr[0].len= 66&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="2"&gt;ptr[0].ptr= P -&amp;gt; prime of nist 521 bits curve&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="2"&gt;ptr[2].len= 3&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="2"&gt;ptr[2].ptr= [80 00 00] it is the montgomery representation of u= 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="2"&gt;ptr[4].len= 66&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="2"&gt;ptr[4].ptr= address of result&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 18:10:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Security-Engine-PKEU-calculation/m-p/132769#M132</guid>
      <dc:creator>macalleja</dc:creator>
      <dc:date>2008-12-02T18:10:10Z</dc:date>
    </item>
  </channel>
</rss>

