<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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 Function question</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88945/aes-function-question</link><description>Dear Nordic engineers 
 I study the AES examples.I have a question and would like to ask you. 
 I study the aes_ctr examples.I found that this program use two functions to encrypt the text. 
 Their is &amp;quot;nrf_crypto_aes_finalize()&amp;quot; and &amp;quot;nrf_crypto_aes_update</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Wed, 15 Jun 2022 07:31:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88945/aes-function-question" /><item><title>RE: AES Function question</title><link>https://test-devzone.nordicsemi.com/thread/372483?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2022 07:31:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9cd4351-7930-4a94-a67d-5f3c7b73564a</guid><dc:creator>user108933</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Here is the documentation of the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_crypto_aes.html?cp=8_1_3_11_15_0"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_crypto_aes.html?cp=8_1_3_11_15_0&lt;/a&gt;&amp;nbsp; where you can find details of Advanced Encryption Standard.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;There are two ways to use the AES related functions API, either by using nrf_crypto_init, nrf_crypto_aes_key_set, nrf_crypto_aes_iv_set (for some ciphers), nrf_crypto_aes_update, nrf_crypto_aes_finalize or though the nrf_crypto_aes_crypt.&amp;nbsp;&lt;/span&gt;&lt;span&gt;The latter option does all the operations in a single integrated step. SO, here the step is you have to initialize the context first, then to set the keys and initialization vector and later finalize the aes cryptography. How these functions work are briefly&amp;nbsp;described in the above link.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I hope it helps.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kazi Afroza Sultana&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>