2022-04-08 14:46:35 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
< meta name = "generator" content = "Doxygen 1.8.5" / >
2024-03-18 15:15:10 +00:00
< title > MCUXpresso SDK API Reference Manual: DCP AES blocking driver< / title >
2022-04-08 14:46:35 +00:00
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< link href = "navtree.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "resize.js" > < / script >
< script type = "text/javascript" src = "navtree.js" > < / script >
< script type = "text/javascript" >
$(document).ready(initResizable);
$(window).load(resizeHeight);
< / script >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/search.js" > < / script >
< script type = "text/javascript" >
$(document).ready(function() { searchBox.OnSelectItem(0); });
< / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< link href = "customdoxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
< td id = "projectlogo" > < img alt = "Logo" src = "fs_logo.gif" / > < / td >
< td style = "padding-left: 0.5em;" >
< div id = "projectname" > MCUXpresso SDK API Reference Manual
2024-03-18 15:15:10 +00:00
  < span id = "projectnumber" > Rev 2.15.000< / span >
2022-04-08 14:46:35 +00:00
< / div >
< div id = "projectbrief" > NXP Semiconductors< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
< script type = "text/javascript" >
var searchBox = new SearchBox("searchBox", "search",false,'Search');
< / script >
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "index.html" > < span > Main  Page< / span > < / a > < / li >
< li > < a href = "pages.html" > < span > Related  Pages< / span > < / a > < / li >
< li > < a href = "modules.html" > < span > API  Reference< / span > < / a > < / li >
< li >
< div id = "MSearchBox" class = "MSearchBoxInactive" >
< span class = "left" >
< img id = "MSearchSelect" src = "search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
< input type = "text" id = "MSearchField" value = "Search" accesskey = "S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
< / span > < span class = "right" >
< a id = "MSearchClose" href = "javascript:searchBox.CloseResultsWindow()" > < img id = "MSearchCloseImg" border = "0" src = "search/close.png" alt = "" / > < / a >
< / span >
< / div >
< / li >
< / ul >
< / div >
< / div > <!-- top -->
< div id = "side-nav" class = "ui-resizable side-nav-resizable" >
< div id = "nav-tree" >
< div id = "nav-tree-contents" >
< div id = "nav-sync" class = "sync" > < / div >
< / div >
< / div >
< div id = "splitbar" style = "-moz-user-select:none;"
class="ui-resizable-handle">
< / div >
< / div >
< script type = "text/javascript" >
$(document).ready(function(){initNavTree('a00273.html','');});
< / script >
< div id = "doc-content" >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(0)" > < span class = "SelectionMark" >   < / span > All< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(1)" > < span class = "SelectionMark" >   < / span > Data Structures< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(2)" > < span class = "SelectionMark" >   < / span > Functions< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(3)" > < span class = "SelectionMark" >   < / span > Variables< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(4)" > < span class = "SelectionMark" >   < / span > Typedefs< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(5)" > < span class = "SelectionMark" >   < / span > Enumerations< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(6)" > < span class = "SelectionMark" >   < / span > Enumerator< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(7)" > < span class = "SelectionMark" >   < / span > Groups< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(8)" > < span class = "SelectionMark" >   < / span > Pages< / a > < / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< div class = "header" >
2024-03-18 15:15:10 +00:00
< div class = "summary" >
< a href = "#define-members" > Macros< / a > |
< a href = "#func-members" > Functions< / a > < / div >
2022-04-08 14:46:35 +00:00
< div class = "headertitle" >
2024-03-18 15:15:10 +00:00
< div class = "title" > DCP AES blocking driver< div class = "ingroups" > < a class = "el" href = "a00020.html" > DCP: Data Co-Processor< / a > < / div > < / div > < / div >
2022-04-08 14:46:35 +00:00
< / div > <!-- header -->
< div class = "contents" >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Overview< / h2 >
2024-03-18 15:15:10 +00:00
< p > This section describes the programming interface of the DCP AES blocking driver. < / p >
2022-04-08 14:46:35 +00:00
< table class = "memberdecls" >
2024-03-18 15:15:10 +00:00
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "define-members" > < / a >
Macros< / h2 > < / td > < / tr >
< tr class = "memitem:ga79352c57e1d42e0798b4d46732ddd0a6" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "ga79352c57e1d42e0798b4d46732ddd0a6" > < / a >
#define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00273.html#ga79352c57e1d42e0798b4d46732ddd0a6" > DCP_AES_BLOCK_SIZE< / a >       16< / td > < / tr >
< tr class = "memdesc:ga79352c57e1d42e0798b4d46732ddd0a6" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > AES block size in bytes. < br / > < / td > < / tr >
< tr class = "separator:ga79352c57e1d42e0798b4d46732ddd0a6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2023-01-26 01:35:56 +00:00
< / table > < table class = "memberdecls" >
2024-03-18 15:15:10 +00:00
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "func-members" > < / a >
Functions< / h2 > < / td > < / tr >
< tr class = "memitem:ga15f23983b967199537cda25d70761d82" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "a00272.html#gaaabdaf7ee58ca7269bd4bf24efcde092" > status_t< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00273.html#ga15f23983b967199537cda25d70761d82" > DCP_AES_SetKey< / a > (DCP_Type *base, < a class = "el" href = "a00020.html#ga3a72807e47a0e99f3827c8ca5b299484" > dcp_handle_t< / a > *handle, const uint8_t *key, size_t keySize)< / td > < / tr >
< tr class = "memdesc:ga15f23983b967199537cda25d70761d82" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Set AES key to dcp_handle_t struct and optionally to DCP. < a href = "#ga15f23983b967199537cda25d70761d82" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ga15f23983b967199537cda25d70761d82" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga24ec493fe8f07ba4489e2f798531862d" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "a00272.html#gaaabdaf7ee58ca7269bd4bf24efcde092" > status_t< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00273.html#ga24ec493fe8f07ba4489e2f798531862d" > DCP_AES_EncryptEcb< / a > (DCP_Type *base, < a class = "el" href = "a00020.html#ga3a72807e47a0e99f3827c8ca5b299484" > dcp_handle_t< / a > *handle, const uint8_t *plaintext, uint8_t *ciphertext, size_t size)< / td > < / tr >
< tr class = "memdesc:ga24ec493fe8f07ba4489e2f798531862d" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Encrypts AES on one or multiple 128-bit block(s). < a href = "#ga24ec493fe8f07ba4489e2f798531862d" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ga24ec493fe8f07ba4489e2f798531862d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:gad92e84b3cfd032400487113232f18bcf" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "a00272.html#gaaabdaf7ee58ca7269bd4bf24efcde092" > status_t< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00273.html#gad92e84b3cfd032400487113232f18bcf" > DCP_AES_DecryptEcb< / a > (DCP_Type *base, < a class = "el" href = "a00020.html#ga3a72807e47a0e99f3827c8ca5b299484" > dcp_handle_t< / a > *handle, const uint8_t *ciphertext, uint8_t *plaintext, size_t size)< / td > < / tr >
< tr class = "memdesc:gad92e84b3cfd032400487113232f18bcf" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Decrypts AES on one or multiple 128-bit block(s). < a href = "#gad92e84b3cfd032400487113232f18bcf" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:gad92e84b3cfd032400487113232f18bcf" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:gac02bf9fce15f0b01521df1c33473a7fe" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "a00272.html#gaaabdaf7ee58ca7269bd4bf24efcde092" > status_t< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00273.html#gac02bf9fce15f0b01521df1c33473a7fe" > DCP_AES_EncryptCbc< / a > (DCP_Type *base, < a class = "el" href = "a00020.html#ga3a72807e47a0e99f3827c8ca5b299484" > dcp_handle_t< / a > *handle, const uint8_t *plaintext, uint8_t *ciphertext, size_t size, const uint8_t iv[16])< / td > < / tr >
< tr class = "memdesc:gac02bf9fce15f0b01521df1c33473a7fe" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Encrypts AES using CBC block mode. < a href = "#gac02bf9fce15f0b01521df1c33473a7fe" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:gac02bf9fce15f0b01521df1c33473a7fe" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga1fb597b20b09424edd91fa83d684d203" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "a00272.html#gaaabdaf7ee58ca7269bd4bf24efcde092" > status_t< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00273.html#ga1fb597b20b09424edd91fa83d684d203" > DCP_AES_DecryptCbc< / a > (DCP_Type *base, < a class = "el" href = "a00020.html#ga3a72807e47a0e99f3827c8ca5b299484" > dcp_handle_t< / a > *handle, const uint8_t *ciphertext, uint8_t *plaintext, size_t size, const uint8_t iv[16])< / td > < / tr >
< tr class = "memdesc:ga1fb597b20b09424edd91fa83d684d203" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Decrypts AES using CBC block mode. < a href = "#ga1fb597b20b09424edd91fa83d684d203" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ga1fb597b20b09424edd91fa83d684d203" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-04-08 14:46:35 +00:00
< / table >
2023-01-26 01:35:56 +00:00
< h2 class = "groupheader" > Function Documentation< / h2 >
2024-03-18 15:15:10 +00:00
< a class = "anchor" id = "ga15f23983b967199537cda25d70761d82" > < / a >
2022-04-08 14:46:35 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2024-03-18 15:15:10 +00:00
< td class = "memname" > < a class = "el" href = "a00272.html#gaaabdaf7ee58ca7269bd4bf24efcde092" > status_t< / a > DCP_AES_SetKey < / td >
2023-01-26 01:35:56 +00:00
< td > (< / td >
2024-03-18 15:15:10 +00:00
< td class = "paramtype" > DCP_Type *  < / td >
< td class = "paramname" > < em > base< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > < a class = "el" href = "a00020.html#ga3a72807e47a0e99f3827c8ca5b299484" > dcp_handle_t< / a > *  < / td >
< td class = "paramname" > < em > handle< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const uint8_t *  < / td >
< td class = "paramname" > < em > key< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > size_t  < / td >
< td class = "paramname" > < em > keySize< / em >   < / td >
< / tr >
< tr >
2023-11-30 12:55:00 +00:00
< td > < / td >
2024-03-18 15:15:10 +00:00
< td > )< / td >
< td > < / td > < td > < / td >
2023-01-26 01:35:56 +00:00
< / tr >
2023-11-30 12:55:00 +00:00
< / table >
< / div > < div class = "memdoc" >
2024-03-18 15:15:10 +00:00
< p > Sets the AES key for encryption/decryption with the dcp_handle_t structure. The dcp_handle_t input argument specifies keySlot. If the keySlot is kDCP_OtpKey, the function will check the OTP_KEY_READY bit and will return it's ready to use status. For other keySlot selections, the function will copy and hold the key in dcp_handle_t struct. If the keySlot is one of the four DCP SRAM-based keys (one of kDCP_KeySlot0, kDCP_KeySlot1, kDCP_KeySlot2, kDCP_KeySlot3), this function will also load the supplied key to the specified keySlot in DCP.< / p >
2023-11-30 12:55:00 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-03-18 15:15:10 +00:00
< tr > < td class = "paramname" > base< / td > < td > DCP peripheral base address. < / td > < / tr >
< tr > < td class = "paramname" > handle< / td > < td > Handle used for the request. < / td > < / tr >
< tr > < td class = "paramname" > key< / td > < td > 0-mod-4 aligned pointer to AES key. < / td > < / tr >
< tr > < td class = "paramname" > keySize< / td > < td > AES key size in bytes. Shall equal 16. < / td > < / tr >
2023-11-30 12:55:00 +00:00
< / table >
< / dd >
< / dl >
2024-03-18 15:15:10 +00:00
< dl class = "section return" > < dt > Returns< / dt > < dd > status from set key operation < / dd > < / dl >
2023-11-30 12:55:00 +00:00
< / div >
< / div >
2024-03-18 15:15:10 +00:00
< a class = "anchor" id = "ga24ec493fe8f07ba4489e2f798531862d" > < / a >
2023-11-30 12:55:00 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
2023-01-26 01:35:56 +00:00
< tr >
2024-03-18 15:15:10 +00:00
< td class = "memname" > < a class = "el" href = "a00272.html#gaaabdaf7ee58ca7269bd4bf24efcde092" > status_t< / a > DCP_AES_EncryptEcb < / td >
2023-11-30 12:55:00 +00:00
< td > (< / td >
2024-03-18 15:15:10 +00:00
< td class = "paramtype" > DCP_Type *  < / td >
< td class = "paramname" > < em > base< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > < a class = "el" href = "a00020.html#ga3a72807e47a0e99f3827c8ca5b299484" > dcp_handle_t< / a > *  < / td >
< td class = "paramname" > < em > handle< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
2023-01-26 01:35:56 +00:00
< td > < / td >
2024-03-18 15:15:10 +00:00
< td class = "paramtype" > const uint8_t *  < / td >
< td class = "paramname" > < em > plaintext< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint8_t *  < / td >
< td class = "paramname" > < em > ciphertext< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > size_t  < / td >
< td class = "paramname" > < em > size< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
2023-01-26 01:35:56 +00:00
< / tr >
2023-11-30 12:55:00 +00:00
< / table >
< / div > < div class = "memdoc" >
2024-03-18 15:15:10 +00:00
< p > Encrypts AES. The source plaintext and destination ciphertext can overlap in system memory.< / p >
2023-11-30 12:55:00 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-03-18 15:15:10 +00:00
< tr > < td class = "paramdir" > < / td > < td class = "paramname" > base< / td > < td > DCP peripheral base address < / td > < / tr >
< tr > < td class = "paramdir" > < / td > < td class = "paramname" > handle< / td > < td > Handle used for this request. < / td > < / tr >
< tr > < td class = "paramdir" > < / td > < td class = "paramname" > plaintext< / td > < td > Input plain text to encrypt < / td > < / tr >
< tr > < td class = "paramdir" > [out]< / td > < td class = "paramname" > ciphertext< / td > < td > Output cipher text < / td > < / tr >
< tr > < td class = "paramdir" > < / td > < td class = "paramname" > size< / td > < td > Size of input and output data in bytes. Must be multiple of 16 bytes. < / td > < / tr >
2023-11-30 12:55:00 +00:00
< / table >
< / dd >
< / dl >
2024-03-18 15:15:10 +00:00
< dl class = "section return" > < dt > Returns< / dt > < dd > Status from encrypt operation < / dd > < / dl >
2023-11-30 12:55:00 +00:00
< / div >
< / div >
2024-03-18 15:15:10 +00:00
< a class = "anchor" id = "gad92e84b3cfd032400487113232f18bcf" > < / a >
2023-11-30 12:55:00 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
2023-01-26 01:35:56 +00:00
< tr >
2024-03-18 15:15:10 +00:00
< td class = "memname" > < a class = "el" href = "a00272.html#gaaabdaf7ee58ca7269bd4bf24efcde092" > status_t< / a > DCP_AES_DecryptEcb < / td >
2023-11-30 12:55:00 +00:00
< td > (< / td >
2024-03-18 15:15:10 +00:00
< td class = "paramtype" > DCP_Type *  < / td >
2023-11-30 12:55:00 +00:00
< td class = "paramname" > < em > base< / em > , < / td >
2023-01-26 01:35:56 +00:00
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2024-03-18 15:15:10 +00:00
< td class = "paramtype" > < a class = "el" href = "a00020.html#ga3a72807e47a0e99f3827c8ca5b299484" > dcp_handle_t< / a > *  < / td >
< td class = "paramname" > < em > handle< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const uint8_t *  < / td >
< td class = "paramname" > < em > ciphertext< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint8_t *  < / td >
< td class = "paramname" > < em > plaintext< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > size_t  < / td >
< td class = "paramname" > < em > size< / em >   < / td >
2023-01-26 01:35:56 +00:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
2022-04-08 14:46:35 +00:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2024-03-18 15:15:10 +00:00
< p > Decrypts AES. The source ciphertext and destination plaintext can overlap in system memory.< / p >
2023-01-26 01:35:56 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-03-18 15:15:10 +00:00
< tr > < td class = "paramdir" > < / td > < td class = "paramname" > base< / td > < td > DCP peripheral base address < / td > < / tr >
< tr > < td class = "paramdir" > < / td > < td class = "paramname" > handle< / td > < td > Handle used for this request. < / td > < / tr >
< tr > < td class = "paramdir" > < / td > < td class = "paramname" > ciphertext< / td > < td > Input plain text to encrypt < / td > < / tr >
< tr > < td class = "paramdir" > [out]< / td > < td class = "paramname" > plaintext< / td > < td > Output cipher text < / td > < / tr >
< tr > < td class = "paramdir" > < / td > < td class = "paramname" > size< / td > < td > Size of input and output data in bytes. Must be multiple of 16 bytes. < / td > < / tr >
2023-01-26 01:35:56 +00:00
< / table >
< / dd >
< / dl >
2024-03-18 15:15:10 +00:00
< dl class = "section return" > < dt > Returns< / dt > < dd > Status from decrypt operation < / dd > < / dl >
2022-04-08 14:46:35 +00:00
< / div >
< / div >
2024-03-18 15:15:10 +00:00
< a class = "anchor" id = "gac02bf9fce15f0b01521df1c33473a7fe" > < / a >
2022-04-08 14:46:35 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2024-03-18 15:15:10 +00:00
< td class = "memname" > < a class = "el" href = "a00272.html#gaaabdaf7ee58ca7269bd4bf24efcde092" > status_t< / a > DCP_AES_EncryptCbc < / td >
2023-01-26 01:35:56 +00:00
< td > (< / td >
2024-03-18 15:15:10 +00:00
< td class = "paramtype" > DCP_Type *  < / td >
2023-11-30 12:55:00 +00:00
< td class = "paramname" > < em > base< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
2023-01-26 01:35:56 +00:00
< td > < / td >
2024-03-18 15:15:10 +00:00
< td class = "paramtype" > < a class = "el" href = "a00020.html#ga3a72807e47a0e99f3827c8ca5b299484" > dcp_handle_t< / a > *  < / td >
< td class = "paramname" > < em > handle< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const uint8_t *  < / td >
< td class = "paramname" > < em > plaintext< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint8_t *  < / td >
< td class = "paramname" > < em > ciphertext< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > size_t  < / td >
< td class = "paramname" > < em > size< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const uint8_t  < / td >
< td class = "paramname" > < em > iv< / em > [16]  < / td >
2023-11-30 12:55:00 +00:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
2022-04-08 14:46:35 +00:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2024-03-18 15:15:10 +00:00
< p > Encrypts AES using CBC block mode. The source plaintext and destination ciphertext can overlap in system memory.< / p >
2023-01-26 01:35:56 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-03-18 15:15:10 +00:00
< tr > < td class = "paramdir" > < / td > < td class = "paramname" > base< / td > < td > DCP peripheral base address < / td > < / tr >
< tr > < td class = "paramdir" > < / td > < td class = "paramname" > handle< / td > < td > Handle used for this request. < / td > < / tr >
< tr > < td class = "paramdir" > < / td > < td class = "paramname" > plaintext< / td > < td > Input plain text to encrypt < / td > < / tr >
< tr > < td class = "paramdir" > [out]< / td > < td class = "paramname" > ciphertext< / td > < td > Output cipher text < / td > < / tr >
< tr > < td class = "paramdir" > < / td > < td class = "paramname" > size< / td > < td > Size of input and output data in bytes. Must be multiple of 16 bytes. < / td > < / tr >
< tr > < td class = "paramdir" > < / td > < td class = "paramname" > iv< / td > < td > Input initial vector to combine with the first input block. < / td > < / tr >
2023-01-26 01:35:56 +00:00
< / table >
< / dd >
< / dl >
2024-03-18 15:15:10 +00:00
< dl class = "section return" > < dt > Returns< / dt > < dd > Status from encrypt operation < / dd > < / dl >
2023-01-26 01:35:56 +00:00
< / div >
< / div >
2024-03-18 15:15:10 +00:00
< a class = "anchor" id = "ga1fb597b20b09424edd91fa83d684d203" > < / a >
2023-01-26 01:35:56 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2024-03-18 15:15:10 +00:00
< td class = "memname" > < a class = "el" href = "a00272.html#gaaabdaf7ee58ca7269bd4bf24efcde092" > status_t< / a > DCP_AES_DecryptCbc < / td >
2023-01-26 01:35:56 +00:00
< td > (< / td >
2024-03-18 15:15:10 +00:00
< td class = "paramtype" > DCP_Type *  < / td >
2023-11-30 12:55:00 +00:00
< td class = "paramname" > < em > base< / em > , < / td >
2023-01-26 01:35:56 +00:00
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2024-03-18 15:15:10 +00:00
< td class = "paramtype" > < a class = "el" href = "a00020.html#ga3a72807e47a0e99f3827c8ca5b299484" > dcp_handle_t< / a > *  < / td >
< td class = "paramname" > < em > handle< / em > , < / td >
2023-11-30 12:55:00 +00:00
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2024-03-18 15:15:10 +00:00
< td class = "paramtype" > const uint8_t *  < / td >
< td class = "paramname" > < em > ciphertext< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint8_t *  < / td >
< td class = "paramname" > < em > plaintext< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > size_t  < / td >
< td class = "paramname" > < em > size< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const uint8_t  < / td >
< td class = "paramname" > < em > iv< / em > [16]  < / td >
2023-01-26 01:35:56 +00:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2024-03-18 15:15:10 +00:00
< p > Decrypts AES using CBC block mode. The source ciphertext and destination plaintext can overlap in system memory.< / p >
2023-01-26 01:35:56 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-03-18 15:15:10 +00:00
< tr > < td class = "paramdir" > < / td > < td class = "paramname" > base< / td > < td > DCP peripheral base address < / td > < / tr >
< tr > < td class = "paramdir" > < / td > < td class = "paramname" > handle< / td > < td > Handle used for this request. < / td > < / tr >
< tr > < td class = "paramdir" > < / td > < td class = "paramname" > ciphertext< / td > < td > Input cipher text to decrypt < / td > < / tr >
< tr > < td class = "paramdir" > [out]< / td > < td class = "paramname" > plaintext< / td > < td > Output plain text < / td > < / tr >
< tr > < td class = "paramdir" > < / td > < td class = "paramname" > size< / td > < td > Size of input and output data in bytes. Must be multiple of 16 bytes. < / td > < / tr >
< tr > < td class = "paramdir" > < / td > < td class = "paramname" > iv< / td > < td > Input initial vector to combine with the first input block. < / td > < / tr >
2023-01-26 01:35:56 +00:00
< / table >
< / dd >
< / dl >
2024-03-18 15:15:10 +00:00
< dl class = "section return" > < dt > Returns< / dt > < dd > Status from decrypt operation < / dd > < / dl >
2022-04-08 14:46:35 +00:00
< / div >
< / div >
< / div > <!-- contents -->
< / div > <!-- doc - content -->
<!-- HTML footer for doxygen 1.8.5 -->
<!-- start footer part -->
< div id = "nav-path" class = "navpath" > <!-- id is needed for treeview function! -->
< ul class = "foot" >
< li class = "footer" > © 2016 NXP Semiconductors. All rights reserved.
< / li >
< / ul >
< / div >
< / body >
< / html >