<?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 calculation with PSA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109266/aes-128-cmac-calculation-with-psa</link><description>Hi, I am trying to calculate a AES-128 CMAC using the PSA crypto libraries but running into some issues. 
 Are there any sample code that I can reference to implement this? 
 Currently I am doing the following: 
 
 where: 
 
 inKey is the raw key in bytes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Mar 2024 13:45:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109266/aes-128-cmac-calculation-with-psa" /><item><title>RE: AES-128 CMAC calculation with PSA</title><link>https://devzone.nordicsemi.com/thread/473889?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2024 13:45:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca3fbc43-4dd4-44e9-b951-2f4a5e7f4786</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;This seems to happen due to insufficient MAC buffer size. You could try to increase MAC buffer size.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>