<?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>Constant-Time Memory Comparison</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125711/constant-time-memory-comparison</link><description>Hi, 
 I am looking for a constant-time memory comparison is a function that compares memory for equality in a fixed amount of time, regardless of the data&amp;#39;s content. I am sure there is something is the encryption library but I am not able to find it.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 22 Nov 2025 23:14:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125711/constant-time-memory-comparison" /><item><title>RE: Constant-Time Memory Comparison</title><link>https://devzone.nordicsemi.com/thread/555113?ContentTypeID=1</link><pubDate>Sat, 22 Nov 2025 23:14:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd26ec67-edce-4dc8-a739-da10b5bceda7</guid><dc:creator>BillyBobJoe</dc:creator><description>&lt;p&gt;i will have look at this, thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Constant-Time Memory Comparison</title><link>https://devzone.nordicsemi.com/thread/555032?ContentTypeID=1</link><pubDate>Fri, 21 Nov 2025 11:28:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ef3a00b-9cef-417f-97db-10cc164cbc50</guid><dc:creator>Benjamin</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;I could not find anything in Zephyr. You can check the &lt;a href="https://docs.nordicsemi.com/bundle/nrfxlib-apis-3.2.0-preview1/page/group_ocrypto_constant_time_ga040436f401c5de0e6562d2d67db75e43.html#ga040436f401c5de0e6562d2d67db75e43"&gt;ocrypto_constant_time_equal()&amp;nbsp;&lt;/a&gt;function in the Oberon crypto library, but it is probably better to write your own version.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Benjamin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Constant-Time Memory Comparison</title><link>https://devzone.nordicsemi.com/thread/554833?ContentTypeID=1</link><pubDate>Wed, 19 Nov 2025 16:56:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1d89856-4240-4a99-ab5c-640d7b50846d</guid><dc:creator>BillyBobJoe</dc:creator><description>&lt;p&gt;I have found a number of methods to write one but I assume there must be already in the Zephyr RTOS. ie&amp;nbsp;&lt;a href="https://github.com/chmike/cst_time_memcmp"&gt;github.com/.../cst_time_memcmp&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>