<?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 BigNum to byte stream in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/BigNum-to-byte-stream/m-p/1096748#M25060</link>
    <description>&lt;P&gt;I am implementing an SGX Attestation Service Provider using IPP Crypto.&lt;/P&gt;

&lt;P&gt;I have derived a shared DH secret with the other party and now want to derive other keys from it using an AES CMAC.&lt;/P&gt;

&lt;P&gt;The DH secret is stored in a BigNum while ippsAES_CMAC_UPDATE receives its input message through a pointer to a byte-stream.&lt;/P&gt;

&lt;P&gt;Would just passing the BigNum pointer work? If not, is there another simple (preferably copy-free) way to get a pointer to a byte stream representing the number in &lt;SPAN style="font-size: 13.008px;"&gt;little-endian format&lt;/SPAN&gt;?&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2017 21:13:42 GMT</pubDate>
    <dc:creator>AArya2</dc:creator>
    <dc:date>2017-02-15T21:13:42Z</dc:date>
    <item>
      <title>BigNum to byte stream</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/BigNum-to-byte-stream/m-p/1096748#M25060</link>
      <description>&lt;P&gt;I am implementing an SGX Attestation Service Provider using IPP Crypto.&lt;/P&gt;

&lt;P&gt;I have derived a shared DH secret with the other party and now want to derive other keys from it using an AES CMAC.&lt;/P&gt;

&lt;P&gt;The DH secret is stored in a BigNum while ippsAES_CMAC_UPDATE receives its input message through a pointer to a byte-stream.&lt;/P&gt;

&lt;P&gt;Would just passing the BigNum pointer work? If not, is there another simple (preferably copy-free) way to get a pointer to a byte stream representing the number in &lt;SPAN style="font-size: 13.008px;"&gt;little-endian format&lt;/SPAN&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 21:13:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/BigNum-to-byte-stream/m-p/1096748#M25060</guid>
      <dc:creator>AArya2</dc:creator>
      <dc:date>2017-02-15T21:13:42Z</dc:date>
    </item>
    <item>
      <title>Dear customer,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/BigNum-to-byte-stream/m-p/1096749#M25061</link>
      <description>&lt;P&gt;Dear customer,&lt;/P&gt;

&lt;P&gt;You could use &lt;STRONG&gt;ippsGetOctString_BN&lt;/STRONG&gt; to transfer big number to Ipp8u byte array. I am not sure which Big number class you are using, if you use&amp;nbsp;&lt;STRONG&gt;IppsBigNumState &lt;/STRONG&gt;type, there's no any problem.&lt;/P&gt;

&lt;P&gt;But if you are using &lt;STRONG&gt;BigNumber&lt;/STRONG&gt;, it is the class written by ourselves, source code are provided in &lt;A href="https://software.intel.com/en-us/node/503848"&gt;appendix&lt;/A&gt;. I am afraid there's no exact sub-function for transferring BibNumber to String implemented in this class. Cause this class is only for setting bignumber &amp;amp; bignumber calculation. In the BigNumber class, the setting Bignumber function is actually use the same way of ipps&lt;STRONG&gt;Set&lt;/STRONG&gt;OctString_BN. So, you'd better create IppsBigNumState type value by call&amp;nbsp;NewIppBn, and then call&amp;nbsp;ippsGetOctString_BN.&lt;/P&gt;

&lt;P&gt;Or you could write a function by your self to split BigBumber string into 8 bits array(2 hex~1 byte). The BigNumber is actually an array that each element is 32*8bits. For more info, please refer to&lt;A href="https://software.intel.com/en-us/node/503357"&gt;&amp;nbsp;Big Number Arithmetic&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 06:47:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/BigNum-to-byte-stream/m-p/1096749#M25061</guid>
      <dc:creator>Zhen_Z_Intel</dc:creator>
      <dc:date>2017-02-16T06:47:22Z</dc:date>
    </item>
  </channel>
</rss>

