<?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: CAAM : AES-ECB application ? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386156#M55928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I've not found AES-CMAC example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jul 2020 04:55:30 GMT</pubDate>
    <dc:creator>Yuri</dc:creator>
    <dc:date>2020-07-17T04:55:30Z</dc:date>
    <item>
      <title>CAAM : AES-ECB application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386149#M55921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I'm new to IMX6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I would like to develop a little application in c language which use the CAAM cryptographic hardware accelerator (CHA).&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I've 2 main problem:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;- I think I don't understand very well all concepts: job descriptor/trusted descriptor , job rings, shared descriptors, etc... &lt;SPAN class="emoticon-inline emoticon_confused" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;- I try to read some register (like MCFGR — Master Configuration Register for example) and it spawn an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I've read the Document Number: IMX6DQ6SDLSRM :&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Security Reference Manual for i.MX6Dual, 6Quad, 6Solo, and 6DualLite Families of Applications Processors&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;but for beginning I would like a little application example. It's easier in order to understand the main idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;As concerning the register reading,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I use this (simple) command in my c program :&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #33cccc;"&gt;#define&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt; reg32_read(addr)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *((&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;volatile&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #993300;"&gt;uint_32_t&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #575757;"&gt; *) (addr))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and in my program, when I call :&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;reg32_read(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #339966;"&gt;0x02100004&lt;/SPAN&gt;);&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #993300;"&gt;//0x02100004 : Master Configuration Register address&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;the program return me :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;[1] + stopped (signal)&amp;nbsp; ./caam_test&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I don't understand the real problem.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Is it a right problem ?&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Is their a register setting that I missed in order to read all registers?&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;How to read/write into register in order to use CHA of CAAM ?&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Is there some code examples of AES ECB mode encryption using the CAAM ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Please, could you help me please ? Any suggestions are welcome... &lt;SPAN class="emoticon-inline emoticon_happy" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 13:03:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386149#M55921</guid>
      <dc:creator>jumeyer</dc:creator>
      <dc:date>2015-01-05T13:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM : AES-ECB application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386150#M55922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; Please look at my comments below.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1.&lt;/P&gt;&lt;P&gt;&amp;nbsp; You may look at the Platform SDK - it contains an example regarding blob using.&lt;/P&gt;&lt;P&gt;"The i.MX6 Platform SDK is located at:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is SDK link :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://www.freescale.com/webapp/Download?colCode=i.MX6_PLATFORM_SDK&amp;amp;location=null"&gt;https://www.freescale.com/webapp/Download?colCode=i.MX6_PLATFORM_SDK&amp;amp;location=null&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Summary page :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX6Q&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX6Q&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;&amp;nbsp; There is “sm_test.c” (Linux) example (located at "drivers/crypto/caam/sm_test.c")&lt;/P&gt;&lt;P&gt;for testing encapsulating and decapsulating of black keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Also, please look at the enclosed example : simple job that will decrypt &lt;BR /&gt;a 1024-byte message using AES in CBC mode. I hope it helps.&lt;/P&gt;&lt;P&gt;[00] B080000F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jobhdr: stidx=0 len=15&lt;/P&gt;&lt;P&gt;[01] 12200010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ld: ccb1-ctx len=16 offs=0&lt;/P&gt;&lt;P&gt;[02] 00000002&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ptr-&amp;gt;@0x225a84662&lt;/P&gt;&lt;P&gt;[03] 25A84662&lt;/P&gt;&lt;P&gt;[04] 02000010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; key: class1-keyreg len=16&lt;/P&gt;&lt;P&gt;[05] 00000001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ptr-&amp;gt;@0x1e767e1b5&lt;/P&gt;&lt;P&gt;[06] E767E1B5&lt;/P&gt;&lt;P&gt;[07] 8210010C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; operation: cls1-op aes cbc init-final dec&lt;/P&gt;&lt;P&gt;[08] 22120400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fifold: class1 msgdata-last1 len=1024&lt;/P&gt;&lt;P&gt;[09] 00000002&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ptr-&amp;gt;@0x23ab4850a&lt;/P&gt;&lt;P&gt;[10] 3AB4850A&lt;/P&gt;&lt;P&gt;[11] 60700000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fifostr: msgdata ext&lt;/P&gt;&lt;P&gt;[12] 00000004&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ptr-&amp;gt;@0x4de37d42c&lt;/P&gt;&lt;P&gt;[13] DE37D42C&lt;/P&gt;&lt;P&gt;[14] 00000400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extlen=1024&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The steps involved are:&lt;/P&gt;&lt;P&gt;[01] Load the CBC IV into the Class 1 Context Register&lt;/P&gt;&lt;P&gt;[04] Load the 128-bit AES key into the Class 1 Key Register&lt;/P&gt;&lt;P&gt;[07] Configure the AESA CHA to decrypt with the CBC mode&lt;/P&gt;&lt;P&gt;[08] Read 1024 bytes of input data with the FIFO LOAD command. The data will be&lt;/P&gt;&lt;P&gt;directed to the Class 1 Alignment Block, and the 'last data' flag will be presented&lt;/P&gt;&lt;P&gt;along with the end of it.&lt;/P&gt;&lt;P&gt;[11] Store the deciphered data with the FIFO STORE command. The 'ext' flag means&lt;/P&gt;&lt;P&gt;that the length field in the first word is not used. Instead, the length comes after the&lt;/P&gt;&lt;P&gt;pointer. The class field value is not interpreted when data source/type is 'msgdata',&lt;/P&gt;&lt;P&gt;which means the OFIFO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; This is a good model for data encryption and decryption. If not all of the data is passed&lt;/P&gt;&lt;P&gt;through at once, but processing will continue in other job(s), it might be necessary to&lt;/P&gt;&lt;P&gt;store the context register as the last step of the descriptor. How many bytes to store is&lt;/P&gt;&lt;P&gt;dependent upon the algorithm and mode. This requirement will also affect the 'algorithm&lt;/P&gt;&lt;P&gt;state' value, as init-final is proper for a complete message. RC4 (the AFHA) has a&lt;/P&gt;&lt;P&gt;separate solution in this regard, as the 'context' is 258 bytes (256 bytes of key material of&lt;/P&gt;&lt;P&gt;the RC4 SBox and 1-byte each of the context pointers i and j).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Below are some details how&amp;nbsp; to create a Black Key :&lt;/P&gt;&lt;P&gt;Load the desired key into a key register, (Class 1,Class2, PKHA E, or AFHA Sbox),&lt;/P&gt;&lt;P&gt;using the Key command with the NoWriteBack bit cleared, and then write out the&lt;/P&gt;&lt;P&gt;key register using the FIFO Store command.&lt;/P&gt;&lt;P&gt;&amp;nbsp; The FIFO Store command OutputDataType field is used to specify the source of&lt;/P&gt;&lt;P&gt;the key, the encryption algorithm (AES-ECB or AES-CCM) and the KEK (either JDKEK&lt;/P&gt;&lt;P&gt;or TDKEK). Note that only a Trusted Descriptor may specify using the TDKEK for creating&lt;/P&gt;&lt;P&gt;a Black Key. Otherwise, an error will result.&lt;/P&gt;&lt;P&gt;&amp;nbsp; A Black Key will be larger than a plaintext key. When using AES-CCM mode, the Black Key&lt;/P&gt;&lt;P&gt;will be 12 bytes longer than the plaintext key. Six of the extra bytes contain the nonce for&lt;/P&gt;&lt;P&gt;the Black Key, and the other six bytes contain a 48-bit integrity check tag. If the tag is&lt;/P&gt;&lt;P&gt;incorrect when a descriptor loads an AES-CCM Black Key, the descriptor will stop with an error.&lt;/P&gt;&lt;P&gt; When loading a Black Key into a key register using the Key command, the value&lt;/P&gt;&lt;P&gt;specified in the length field is the length of the plaintext key, not the size of the Black&lt;/P&gt;&lt;P&gt;Key buffer. When creating a Black Key using the FIFO Store command, the value in the&lt;/P&gt;&lt;P&gt;length field is the length of the plaintext key. The buffer must be large enough to hold the&lt;/P&gt;&lt;P&gt;encrypted key plus the additional padding.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 08:07:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386150#M55922</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2015-01-06T08:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM : AES-ECB application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386151#M55923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First : Great thank you for your detailed explanation and links (that are not broken...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But some little problems...&lt;/P&gt;&lt;P&gt;1- I don't find &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"drivers/crypto/caam/sm_test.c"file.. (neither in "/sdk/drivers" nor "/output/')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;2- the detailed explanation of the code execution (in 3) is very interesting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;but where this code is located/loaded ? in which memory address ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is possible to write directly in memory/registers thanks to the code like this for example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define part1 B080000F;&lt;/P&gt;&lt;P&gt;#define part2 22 12200010;&lt;/P&gt;&lt;P&gt;#define part3 12 00000002;&lt;/P&gt;&lt;P&gt;#define part4 2225A84662;&lt;/P&gt;&lt;P&gt;#define part5 02000010;&lt;/P&gt;&lt;P&gt;#define part6 00000001;&lt;/P&gt;&lt;P&gt;#define part7 E767E1B5;&lt;/P&gt;&lt;P&gt;#define part8 8210010C;&lt;/P&gt;&lt;P&gt;#define part9 22120400;&lt;/P&gt;&lt;P&gt;#define part10 00000002;&lt;/P&gt;&lt;P&gt;#define part11 3AB4850A;&lt;/P&gt;&lt;P&gt;#define part12 60700000;&lt;/P&gt;&lt;P&gt;#define part13 00000004;&lt;/P&gt;&lt;P&gt;#define part14 DE37D42C;&lt;/P&gt;&lt;P&gt;#define part15 00000400;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint32_t job_descriptor[] =&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; part1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; part2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; part3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; part4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; part5,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; part6,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; part7,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; part8,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; part9,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; part10,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; part11,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; part12,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; part13,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; part14,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; part15&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;Specify in job rings registers the address of this job descriptor ?&lt;/P&gt;&lt;P&gt;and run the job, read the result ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words, can I do the work myself, without using the SDK ? writing directly the value of registers ?&lt;/P&gt;&lt;P&gt;But which registers must I set up to do this simple work... ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3- when I've built the SDK. All built file are in "/output" directory.&lt;/P&gt;&lt;P&gt;there are no directory for my boards : (SabreLite or RioTboard...)&lt;/P&gt;&lt;P&gt;And when I load and test every sdk_unit_test_caam.elf or sdk_unit_test_caam.bin it return an error...&lt;/P&gt;&lt;P&gt;CAAM register configuration is not the same for all mx6dq processor ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm still stuck...&lt;/P&gt;&lt;P&gt;I hope read you soon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Julien.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 14:50:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386151#M55923</guid>
      <dc:creator>jumeyer</dc:creator>
      <dc:date>2015-01-06T14:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM : AES-ECB application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386152#M55924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Julien, good day !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I should clarify that, the items in my previous reply relate to fully &lt;BR /&gt;different approaches. The first (Platform SDK) is stand alone example.&lt;BR /&gt;The second relates to Linux&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/Download?colCode=L3.0.35_4.1.0_ER_SOURCE_BSP&amp;amp;appType=license&amp;amp;location=null&amp;amp;fsrch=1&amp;amp;sr=1&amp;amp;Parent_nodeId=from%20search&amp;amp;Parent_pageType=from%20search&amp;amp;Parent_nodeId=1337699481071706174845&amp;amp;Parent_pageType=product" title="http://www.freescale.com/webapp/Download?colCode=L3.0.35_4.1.0_ER_SOURCE_BSP&amp;amp;appType=license&amp;amp;location=null&amp;amp;fsrch=1&amp;amp;sr=1&amp;amp;Parent_nodeId=from%20search&amp;amp;Parent_pageType=from%20search&amp;amp;Parent_nodeId=1337699481071706174845&amp;amp;Parent_pageType=product"&gt;http://www.freescale.com/webapp/Download?colCode=L3.0.35_4.1.0_ER_SOURCE_BSP&amp;amp;appType=license&amp;amp;location=null&amp;amp;fsrch=1&amp;amp;sr=1&amp;amp;…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Summary Page :&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=IMX6_SW" title="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=IMX6_SW"&gt;i.MX 6 Series Software and Development Tool R|Freescale&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the third is just a "text" example, that may be used as base for own design.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 05:07:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386152#M55924</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2015-01-08T05:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM : AES-ECB application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386153#M55925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuri,&lt;/P&gt;&lt;P&gt;To give the address of plane text, key etc.., why you are using another descriptors&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;00000002,00000001,00000004 etc...?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Can we give the plane text and array like below?(AES-CBC encryption)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;0x12200010,&amp;nbsp;&lt;BR /&gt; (uint32_t)init_vector,&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you tell me the mistake in my descriptor?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; 0xB080000A,&lt;BR /&gt; 0x12200010,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*Load IV*/&lt;BR /&gt; (uint32_t)init_vector,&lt;BR /&gt; 0x02000010,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*Key*/&lt;BR /&gt; (uint32_t)key,&lt;BR /&gt;0x8210010D,&lt;BR /&gt; 0x22120010,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*plain text*/&lt;BR /&gt; (uint32_t)plaintext,&lt;BR /&gt; 0x60300010,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/*store cipher text*/&lt;BR /&gt; (uint32_t)out_ptr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For me what happening is ...I am getting an encrypted value and when i decrypt that cipher text i am getting plain text as well... but that cipher text is not same as in the test vectors...&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sreelakshmy M A&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2020 15:01:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386153#M55925</guid>
      <dc:creator>ma_sreelakshmi</dc:creator>
      <dc:date>2020-07-10T15:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM : AES-ECB application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386154#M55926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got output with the above descriptors.. It was some other problem in data arrays..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sreelakshmy M A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2020 19:11:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386154#M55926</guid>
      <dc:creator>ma_sreelakshmi</dc:creator>
      <dc:date>2020-07-10T19:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM : AES-ECB application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386155#M55927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Can you provide descriptors for AES-CMAC ?&lt;/P&gt;&lt;P&gt;2.From the above code i changed the operation command, but i am not getting output... Can you help me with the changes i have to do to get CMAC?&lt;/P&gt;&lt;P&gt;3.Can i use same fifostore for CMAC as well or are we using store command(to take MAC from context register)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read the SRM for iMX6. Is there anything else i need to consider?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reply asap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sreelakshmy M A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2020 11:48:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386155#M55927</guid>
      <dc:creator>ma_sreelakshmi</dc:creator>
      <dc:date>2020-07-15T11:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM : AES-ECB application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386156#M55928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I've not found AES-CMAC example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2020 04:55:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386156#M55928</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2020-07-17T04:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM : AES-ECB application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386157#M55929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0xB080000A,&lt;BR /&gt; 0x12200010,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/*Load IV*/&lt;BR /&gt; (uint32_t)init_vector,&lt;BR /&gt; 0x02000010,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*Key*/&lt;BR /&gt; (uint32_t)key,&lt;BR /&gt; 0x8210060C,&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* CMAC*/&lt;BR /&gt; 0x22120010,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*fifo load plain text*/&lt;BR /&gt; (uint32_t)plaintext,&lt;BR /&gt; 0x52200010,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/*store cipher text*/&lt;BR /&gt; (uint32_t)out_ptrr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with this descriptors for AES-CMAC....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am getting this as answer(which is not the correct one)... There is no error detecting for CAAM...something is processing and i got this...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;0x6b&lt;BR /&gt;0x4f&lt;BR /&gt;0x25&lt;BR /&gt;0x13&lt;BR /&gt;0x4b&lt;BR /&gt;0xa9&lt;BR /&gt;0xef&lt;BR /&gt;0xd0&lt;BR /&gt;0x52&lt;BR /&gt;0x46&lt;BR /&gt;0xfd&lt;BR /&gt;0x87&lt;BR /&gt;0x36&lt;BR /&gt;0xaa&lt;BR /&gt;0x9e&lt;BR /&gt;0x1f&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is wrong in my code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2020 09:59:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386157#M55929</guid>
      <dc:creator>ma_sreelakshmi</dc:creator>
      <dc:date>2020-07-20T09:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM : AES-ECB application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386158#M55930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ma.sreelakshmi@gmail.com"&gt;ma.sreelakshmi@gmail.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think it makes sense to create new thread regarding&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;AES-CMAC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2020 09:54:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386158#M55930</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2020-07-22T09:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM : AES-ECB application ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386159#M55931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yuri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got correct output with this descriptor... The test vector i used were wrong in the above scenario...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS:Those who are beginners in CAAM try to use NIST test vectors...Don't depend upon any online AES, SHA calculators..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sreelakshmy M A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2020 10:01:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-AES-ECB-application/m-p/386159#M55931</guid>
      <dc:creator>ma_sreelakshmi</dc:creator>
      <dc:date>2020-07-22T10:01:11Z</dc:date>
    </item>
  </channel>
</rss>

