📄 simple_8cpp-source.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>Crypto++: simple.cpp Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.2 --><div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div><h1>simple.cpp</h1><div class="fragment"><pre>00001 <span class="comment">// simple.cpp - written and placed in the public domain by Wei Dai</span>00002 00003 <span class="preprocessor">#include "pch.h"</span>00004 00005 <span class="preprocessor">#ifndef CRYPTOPP_IMPORTS</span>00006 <span class="preprocessor"></span>00007 <span class="preprocessor">#include "<a class="code" href="simple_8h.html">simple.h</a>"</span>00008 <span class="preprocessor">#include "secblock.h"</span>00009 00010 NAMESPACE_BEGIN(CryptoPP)00011 00012 <span class="keywordtype">void</span> HashTransformationWithDefaultTruncation::TruncatedFinal(byte *digest, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> digestSize)00013 {00014 ThrowIfInvalidTruncatedSize(digestSize);00015 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> fullDigestSize = <a class="code" href="class_hash_transformation.html#_x_m_a_c_ca9">DigestSize</a>();00016 <span class="keywordflow">if</span> (digestSize == fullDigestSize)00017 Final(digest);00018 <span class="keywordflow">else</span>00019 {00020 <a class="code" href="class_sec_block.html">SecByteBlock</a> buffer(fullDigestSize);00021 Final(buffer);00022 memcpy(digest, buffer, digestSize);00023 }00024 }00025 00026 NAMESPACE_END00027 00028 <span class="preprocessor">#endif</span></pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Jul 8 23:34:25 2003 for Crypto++ by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -