<?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>i.MX ProcessorsのトピックCAAM Black Blob Implementation on i.MX6</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-Black-Blob-Implementation-on-i-MX6/m-p/1197342#M166251</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have followed this doc:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12714.pdf" target="_blank" rel="noopener"&gt;https://www.nxp.com/docs/en/application-note/AN12714.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But facing the following problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;:~# caam-keygen create randomkey ecb -s 16
Unable to open device /dev/caam-keygen&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running the following kernel version from boundaydevices:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;:/# uname -r
4.14.98-2.0.0_ga+yocto+gde875982909f&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And having the following kernel configs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@marsboard:~# zcat /proc/config.gz | grep -i caam                                                                                        
CONFIG_CRYPTO_DEV_FSL_CAAM=y
CONFIG_CRYPTO_DEV_FSL_CAAM_JR=y
CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9
# CONFIG_CRYPTO_DEV_FSL_CAAM_INTC is not set
CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_TK_API=y
# CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_TEST is not set
CONFIG_CRYPTO_DEV_FSL_CAAM_SM=y
CONFIG_CRYPTO_DEV_FSL_CAAM_SM_SLOTSIZE=7
# CONFIG_CRYPTO_DEV_FSL_CAAM_SM_TEST is not set
# CONFIG_CRYPTO_DEV_FSL_CAAM_SECVIO is not set
# CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG is not set
CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC=y
CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API_DESC=y&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just noticed that the node&amp;nbsp;/dev/caam-keygen is missing and this is all that I have on the target:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;:/# find -name "caam-keygen"  
./usr/bin/caam-keygen&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your support is appreciated!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;a_1359&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2020 10:30:12 GMT</pubDate>
    <dc:creator>a_1359</dc:creator>
    <dc:date>2020-12-10T10:30:12Z</dc:date>
    <item>
      <title>CAAM Black Blob Implementation on i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-Black-Blob-Implementation-on-i-MX6/m-p/1197342#M166251</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have followed this doc:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12714.pdf" target="_blank" rel="noopener"&gt;https://www.nxp.com/docs/en/application-note/AN12714.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But facing the following problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;:~# caam-keygen create randomkey ecb -s 16
Unable to open device /dev/caam-keygen&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running the following kernel version from boundaydevices:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;:/# uname -r
4.14.98-2.0.0_ga+yocto+gde875982909f&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And having the following kernel configs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@marsboard:~# zcat /proc/config.gz | grep -i caam                                                                                        
CONFIG_CRYPTO_DEV_FSL_CAAM=y
CONFIG_CRYPTO_DEV_FSL_CAAM_JR=y
CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9
# CONFIG_CRYPTO_DEV_FSL_CAAM_INTC is not set
CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_TK_API=y
# CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_TEST is not set
CONFIG_CRYPTO_DEV_FSL_CAAM_SM=y
CONFIG_CRYPTO_DEV_FSL_CAAM_SM_SLOTSIZE=7
# CONFIG_CRYPTO_DEV_FSL_CAAM_SM_TEST is not set
# CONFIG_CRYPTO_DEV_FSL_CAAM_SECVIO is not set
# CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG is not set
CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC=y
CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API_DESC=y&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just noticed that the node&amp;nbsp;/dev/caam-keygen is missing and this is all that I have on the target:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;:/# find -name "caam-keygen"  
./usr/bin/caam-keygen&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your support is appreciated!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;a_1359&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 10:30:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-Black-Blob-Implementation-on-i-MX6/m-p/1197342#M166251</guid>
      <dc:creator>a_1359</dc:creator>
      <dc:date>2020-12-10T10:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM Black Blob Implementation on i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-Black-Blob-Implementation-on-i-MX6/m-p/1198026#M166333</link>
      <description>&lt;P&gt;Due to the following reasons:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The link of the keyctl_caam that I have been using i.e.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://source.codeaurora.org/external/imx/keyctl_caam/?h=imx_5.4.47_2.2.0" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://source.codeaurora.org/external/imx/keyctl_caam/?h=imx_5.4.47_2.2.0&amp;nbsp;&lt;/A&gt;is on 5.4.47 branch!&lt;/LI&gt;&lt;LI&gt;Problems can happen due to the Linux kernel API mismatches, I mean the older kernel that I was running and the kernel that&amp;nbsp;&lt;A href="https://source.codeaurora.org/external/imx/keyctl_caam/?h=imx_5.4.47_2.2.0" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;keyctl_caam&lt;/A&gt;&amp;nbsp;has been written for.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;I have got it working by updating my kernel to version 5.4.x!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;:/# find -name "caam-keygen"
./usr/bin/caam-keygen
./sys/devices/virtual/misc/caam-keygen
./sys/class/misc/caam-keygen
./dev/caam-keygen&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;:~# caam-keygen create randomkeyCCM ccm -s 24

:~# ls -al /data/caam/randomkeyCCM*
-rw-r--r-- 1 root root  56 Dec 10 20:11 /data/caam/randomkeyCCM
-rw-r--r-- 1 root root 104 Dec 10 20:11 /data/caam/randomkeyCCM.bb

:~# hexdump /data/caam/randomkeyCCM
0000000 674f 5461 0000 0000 0009 0000 0018 0000
0000010 0024 0000 0000 0000 0000 2676 c743 613c
0000020 ad0c f7f7 0cab 5feb 23f9 6523 82ed 55ac
0000030 7700 bddc 6a66 cd02                    
0000038

:~# hexdump /data/caam/randomkeyCCM.bb 
0000000 674f 5461 0000 0000 0009 0000 0018 0000
0000010 0054 0000 8a74 43ca a8c3 7533 f456 9428
0000020 edfc 026f 6d15 314b 7508 c2b0 dae8 fa5f
0000030 02bc e313 1462 470b c627 6c4a 7ef1 f290
0000040 3a2b a78f 362a 364d af7b 0839 91cf 2c93
0000050 c86d 632b 29ed 1b5e 6de2 cbeb 0001 0000
0000060 09c0 0000 0034 0000                    
0000068&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 10:06:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-Black-Blob-Implementation-on-i-MX6/m-p/1198026#M166333</guid>
      <dc:creator>a_1359</dc:creator>
      <dc:date>2020-12-11T10:06:57Z</dc:date>
    </item>
  </channel>
</rss>

