105 lines
11 KiB
HTML
Vendored
105 lines
11 KiB
HTML
Vendored
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.13.1"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>dl: E:/dl_ai/dl/dl/memory/dl_crypto.h 源文件</title>
|
|
<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>
|
|
<script type="text/javascript" src="clipboard.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<link href="doxygen.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 id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">dl
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- 制作者 Doxygen 1.13.1 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() { codefold.init(0); });
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',false,false,'search.php','搜索',false);
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function(){ initResizable(false); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_17297ffb27ce571941f5fb5008f01a1f.html">dl</a></li><li class="navelem"><a class="el" href="dir_880cbdb7e19477dab0ac315d644729fb.html">memory</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div id="doc-content">
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">dl_crypto.h</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="dl__crypto_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span></div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> </div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#include "<a class="code" href="dl__buffer_8h.html">dl_buffer.h</a>"</span></div>
|
|
<div class="foldopen" id="foldopen00015" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="namespacedl_1_1_crypto.html"> 15</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacedl_1_1_crypto.html">dl::Crypto</a></div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span>{</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="namespacedl_1_1_crypto.html#a64bbdbf79345d3aacb4ee7773b435963"> 22</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl_1_1_crypto.html#a64bbdbf79345d3aacb4ee7773b435963">EncryptXor</a>(<a class="code hl_typedef" href="namespacedl.html#a0e44c1b516814389464e02ec1e842e7f">BufferView</a> buf);</div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="namespacedl_1_1_crypto.html#aafbef59e0ae954b1ce809f0833f14c99"> 23</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl_1_1_crypto.html#aafbef59e0ae954b1ce809f0833f14c99">DecryptXor</a>(<a class="code hl_typedef" href="namespacedl.html#a0e44c1b516814389464e02ec1e842e7f">BufferView</a> buf);</div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span></div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="namespacedl_1_1_crypto.html#af285ebfe9f8ebaa0204bab237fd23301"> 31</a></span>std::wstring <a class="code hl_function" href="namespacedl_1_1_crypto.html#af285ebfe9f8ebaa0204bab237fd23301">EncodeHan256</a>(<a class="code hl_typedef" href="namespacedl.html#a0e44c1b516814389464e02ec1e842e7f">BufferView</a> buf);</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="namespacedl_1_1_crypto.html#a0c4b2d2ea90be8003837085111dcc944"> 38</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="namespacedl_1_1_crypto.html#a0c4b2d2ea90be8003837085111dcc944">DecodeHan256</a>(<span class="keyword">const</span> std::wstring& str, <a class="code hl_typedef" href="namespacedl.html#a6e3289cc5115dab4f1818f19fb766e94">Buffer</a>& buf);</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span></div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="namespacedl_1_1_crypto.html#a3d6a745c3072b3cd82fffd00bab47f42"> 46</a></span>uint32_t <a class="code hl_function" href="namespacedl_1_1_crypto.html#a3d6a745c3072b3cd82fffd00bab47f42">HashCrc32</a>(<a class="code hl_typedef" href="namespacedl.html#a0e44c1b516814389464e02ec1e842e7f">BufferView</a> buf, uint32_t crc = 0);</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span></div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="namespacedl_1_1_crypto.html#a4ceb9ca52ad2feed2b43708204009bf8"> 54</a></span>std::string <a class="code hl_function" href="namespacedl_1_1_crypto.html#a4ceb9ca52ad2feed2b43708204009bf8">EncodeBase64</a>(<a class="code hl_typedef" href="namespacedl.html#a0e44c1b516814389464e02ec1e842e7f">BufferView</a> buf);</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="namespacedl_1_1_crypto.html#a15af493b269753c851ce8aaf34bd3a1e"> 61</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="namespacedl_1_1_crypto.html#a15af493b269753c851ce8aaf34bd3a1e">DecodeBase64</a>(std::string_view str, <a class="code hl_typedef" href="namespacedl.html#a6e3289cc5115dab4f1818f19fb766e94">Buffer</a>& buf);</div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span></div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="namespacedl_1_1_crypto.html#ab0c2616e68ecfc72b65f4b54d42b572f"> 68</a></span>std::array<std::byte, 16> <a class="code hl_function" href="namespacedl_1_1_crypto.html#ab0c2616e68ecfc72b65f4b54d42b572f">HashMd5</a>(<a class="code hl_typedef" href="namespacedl.html#a0e44c1b516814389464e02ec1e842e7f">BufferView</a> buf);</div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span>}</div>
|
|
</div>
|
|
<div class="ttc" id="adl__buffer_8h_html"><div class="ttname"><a href="dl__buffer_8h.html">dl_buffer.h</a></div><div class="ttdoc">表示一段内存</div></div>
|
|
<div class="ttc" id="anamespacedl_1_1_crypto_html"><div class="ttname"><a href="namespacedl_1_1_crypto.html">dl::Crypto</a></div><div class="ttdoc">加解密算法</div><div class="ttdef"><b>定义</b> <a href="#l00015">dl_crypto.h:16</a></div></div>
|
|
<div class="ttc" id="anamespacedl_1_1_crypto_html_a0c4b2d2ea90be8003837085111dcc944"><div class="ttname"><a href="namespacedl_1_1_crypto.html#a0c4b2d2ea90be8003837085111dcc944">dl::Crypto::DecodeHan256</a></div><div class="ttdeci">bool DecodeHan256(const std::wstring &str, Buffer &buf)</div><div class="ttdoc">中文映射编码</div></div>
|
|
<div class="ttc" id="anamespacedl_1_1_crypto_html_a15af493b269753c851ce8aaf34bd3a1e"><div class="ttname"><a href="namespacedl_1_1_crypto.html#a15af493b269753c851ce8aaf34bd3a1e">dl::Crypto::DecodeBase64</a></div><div class="ttdeci">bool DecodeBase64(std::string_view str, Buffer &buf)</div><div class="ttdoc">base64解码</div></div>
|
|
<div class="ttc" id="anamespacedl_1_1_crypto_html_a3d6a745c3072b3cd82fffd00bab47f42"><div class="ttname"><a href="namespacedl_1_1_crypto.html#a3d6a745c3072b3cd82fffd00bab47f42">dl::Crypto::HashCrc32</a></div><div class="ttdeci">uint32_t HashCrc32(BufferView buf, uint32_t crc=0)</div><div class="ttdoc">crc32哈希</div></div>
|
|
<div class="ttc" id="anamespacedl_1_1_crypto_html_a4ceb9ca52ad2feed2b43708204009bf8"><div class="ttname"><a href="namespacedl_1_1_crypto.html#a4ceb9ca52ad2feed2b43708204009bf8">dl::Crypto::EncodeBase64</a></div><div class="ttdeci">std::string EncodeBase64(BufferView buf)</div><div class="ttdoc">base64编码</div></div>
|
|
<div class="ttc" id="anamespacedl_1_1_crypto_html_a64bbdbf79345d3aacb4ee7773b435963"><div class="ttname"><a href="namespacedl_1_1_crypto.html#a64bbdbf79345d3aacb4ee7773b435963">dl::Crypto::EncryptXor</a></div><div class="ttdeci">void EncryptXor(BufferView buf)</div><div class="ttdoc">快速异或加密</div></div>
|
|
<div class="ttc" id="anamespacedl_1_1_crypto_html_aafbef59e0ae954b1ce809f0833f14c99"><div class="ttname"><a href="namespacedl_1_1_crypto.html#aafbef59e0ae954b1ce809f0833f14c99">dl::Crypto::DecryptXor</a></div><div class="ttdeci">void DecryptXor(BufferView buf)</div></div>
|
|
<div class="ttc" id="anamespacedl_1_1_crypto_html_ab0c2616e68ecfc72b65f4b54d42b572f"><div class="ttname"><a href="namespacedl_1_1_crypto.html#ab0c2616e68ecfc72b65f4b54d42b572f">dl::Crypto::HashMd5</a></div><div class="ttdeci">std::array< std::byte, 16 > HashMd5(BufferView buf)</div><div class="ttdoc">md5哈希</div></div>
|
|
<div class="ttc" id="anamespacedl_1_1_crypto_html_af285ebfe9f8ebaa0204bab237fd23301"><div class="ttname"><a href="namespacedl_1_1_crypto.html#af285ebfe9f8ebaa0204bab237fd23301">dl::Crypto::EncodeHan256</a></div><div class="ttdeci">std::wstring EncodeHan256(BufferView buf)</div><div class="ttdoc">中文映射编码</div></div>
|
|
<div class="ttc" id="anamespacedl_html_a0e44c1b516814389464e02ec1e842e7f"><div class="ttname"><a href="namespacedl.html#a0e44c1b516814389464e02ec1e842e7f">dl::BufferView</a></div><div class="ttdeci">std::span< std::byte > BufferView</div><div class="ttdef"><b>定义</b> <a href="dl__buffer_8h_source.html#l00025">dl_buffer.h:25</a></div></div>
|
|
<div class="ttc" id="anamespacedl_html_a6e3289cc5115dab4f1818f19fb766e94"><div class="ttname"><a href="namespacedl.html#a6e3289cc5115dab4f1818f19fb766e94">dl::Buffer</a></div><div class="ttdeci">std::vector< std::byte > Buffer</div><div class="ttdef"><b>定义</b> <a href="dl__buffer_8h_source.html#l00024">dl_buffer.h:24</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.1
|
|
</small></address>
|
|
</div><!-- doc-content -->
|
|
</body>
|
|
</html>
|