<?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 sample code for sgx_aes_ctr_encrypt in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/sample-code-for-sgx-aes-ctr-encrypt/m-p/1138635#M2148</link>
    <description>&lt;P&gt;Is there any sample code available for encrypting in AES? The development guide has:&lt;/P&gt;&lt;P&gt;sgx_status_t sgx_aes_ctr_encrypt( const sgx_aes_ctr_128bit_key_t *p_key, const uint8_t *p_src, const uint32_t src_len, uint8_t *p_ctr, const uint32_t ctr_inc_bits, uint8_t *p_dst, );&lt;/P&gt;&lt;P&gt;but i need more assistance in implementing it.&lt;/P&gt;&lt;P&gt;Also, if I want to hard code my own key instead of using a function to generate code, how can I declare that? Right now, I've declared it as an integer and passed 16 numbers into it. I'm not sure if that's the right way to do it though&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;(Please be nice, I'm new to this)&lt;/P&gt;</description>
    <pubDate>Mon, 05 Aug 2019 19:22:12 GMT</pubDate>
    <dc:creator>nhleko__sibahle</dc:creator>
    <dc:date>2019-08-05T19:22:12Z</dc:date>
    <item>
      <title>sample code for sgx_aes_ctr_encrypt</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/sample-code-for-sgx-aes-ctr-encrypt/m-p/1138635#M2148</link>
      <description>&lt;P&gt;Is there any sample code available for encrypting in AES? The development guide has:&lt;/P&gt;&lt;P&gt;sgx_status_t sgx_aes_ctr_encrypt( const sgx_aes_ctr_128bit_key_t *p_key, const uint8_t *p_src, const uint32_t src_len, uint8_t *p_ctr, const uint32_t ctr_inc_bits, uint8_t *p_dst, );&lt;/P&gt;&lt;P&gt;but i need more assistance in implementing it.&lt;/P&gt;&lt;P&gt;Also, if I want to hard code my own key instead of using a function to generate code, how can I declare that? Right now, I've declared it as an integer and passed 16 numbers into it. I'm not sure if that's the right way to do it though&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;(Please be nice, I'm new to this)&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 19:22:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/sample-code-for-sgx-aes-ctr-encrypt/m-p/1138635#M2148</guid>
      <dc:creator>nhleko__sibahle</dc:creator>
      <dc:date>2019-08-05T19:22:12Z</dc:date>
    </item>
  </channel>
</rss>

