<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>AES 128 CMAC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118588/aes-128-cmac</link><description>Hey , I want to implement a CMAC with the AES algorithm . In the prj.conf i added 
 
 CONFIG_PSA_WANT_ALG_CMAC =y but i received this error : error: #error &amp;quot;PSA_WANT_ALG_CMAC defined, but not all prerequisites&amp;quot; 
 i would like to know , which prerequisites</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Feb 2025 12:10:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118588/aes-128-cmac" /><item><title>RE: AES 128 CMAC</title><link>https://devzone.nordicsemi.com/thread/521294?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2025 12:10:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40eedc47-0b52-4512-a74e-3fab4868abdb</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The prerequisites you&amp;#39;re missing seems to be either one or both of the following. Please try enabling these configs and see if that makes a difference:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_PSA_WANT_KEY_TYPE_AES"&gt;PSA_WANT_KEY_TYPE_AES &lt;/a&gt;and&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_PSA_WANT_ALG_ECB_NO_PADDING"&gt;PSA_WANT_ALG_ECB_NO_PADDING&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Potentially, by setting &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_PSA_CRYPTO_ENABLE_ALL"&gt;CONFIG_PSA_CRYPTO_ENABLE_ALL&lt;/a&gt;&amp;nbsp;to enable all PSA crypto features should set both of these to y by default.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>