📄 class_s_h_a256.html
字号:
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_iterated_hash_with_static_transform.html#86286d03ba76ccdd7bf3007088250859">DIGESTSIZE</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c5b97a3f0d607c914d025581e0ecf80e"></a><!-- doxytag: member="SHA256::BLOCKSIZE" ref="c5b97a3f0d607c914d025581e0ecf80e" args="" -->static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_iterated_hash.html#c5b97a3f0d607c914d025581e0ecf80e">BLOCKSIZE</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="66e54da4b22f08f90e4df56fc486c0cc"></a><!-- doxytag: member="SHA256::cryptopp_assert___LINE__" ref="66e54da4b22f08f90e4df56fc486c0cc" args="" -->static <a class="el" href="struct_compile_assert.html">CompileAssert</a><((T_BlockSize <br>&(T_BlockSize-1))==0)> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_iterated_hash.html#66e54da4b22f08f90e4df56fc486c0cc">cryptopp_assert___LINE__</a></td></tr><tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9917c50cbb1b92b5ceaff6cb80b5e3c1"></a><!-- doxytag: member="SHA256::HashEndianCorrectedBlock" ref="9917c50cbb1b92b5ceaff6cb80b5e3c1" args="(const word32 *data)" -->void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_iterated_hash_with_static_transform.html#9917c50cbb1b92b5ceaff6cb80b5e3c1">HashEndianCorrectedBlock</a> (const word32 *data)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2a788752a18c19299603bc9e36440fd8"></a><!-- doxytag: member="SHA256::HashEndianCorrectedBlock" ref="2a788752a18c19299603bc9e36440fd8" args="(const HashWordType *data)=0" -->virtual void </td><td class="memItemRight" valign="bottom"><b>HashEndianCorrectedBlock</b> (const <a class="el" href="class_iterated_hash.html#ce0350088eea8679cbe23668d2498c07">HashWordType</a> *data)=0</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b32f1ef07ad14b8456247b15abc5f12d"></a><!-- doxytag: member="SHA256::Init" ref="b32f1ef07ad14b8456247b15abc5f12d" args="()" -->void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_iterated_hash_with_static_transform.html#b32f1ef07ad14b8456247b15abc5f12d">Init</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f214e6d50f9123da957bee4261a97930"></a><!-- doxytag: member="SHA256::StateBuf" ref="f214e6d50f9123da957bee4261a97930" args="()" -->word32 * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_iterated_hash_with_static_transform.html#f214e6d50f9123da957bee4261a97930">StateBuf</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a7561b749600677c9a28bcf4d943e272"></a><!-- doxytag: member="SHA256::DataBuf" ref="a7561b749600677c9a28bcf4d943e272" args="()" -->word32 * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_iterated_hash.html#a7561b749600677c9a28bcf4d943e272">DataBuf</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="db8961e69e48b194b83815d5466f8e7d"></a><!-- doxytag: member="SHA256::GetBitCountHi" ref="db8961e69e48b194b83815d5466f8e7d" args="() const" -->word32 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_iterated_hash_base.html#db8961e69e48b194b83815d5466f8e7d">GetBitCountHi</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a2dadd15d5ef537cf6e0286f42ab62c8"></a><!-- doxytag: member="SHA256::GetBitCountLo" ref="a2dadd15d5ef537cf6e0286f42ab62c8" args="() const" -->word32 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_iterated_hash_base.html#a2dadd15d5ef537cf6e0286f42ab62c8">GetBitCountLo</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="01f39339fa69510303ad401245df1037"></a><!-- doxytag: member="SHA256::PadLastBlock" ref="01f39339fa69510303ad401245df1037" args="(unsigned int lastBlockSize, byte padFirst=0x80)" -->void </td><td class="memItemRight" valign="bottom"><b>PadLastBlock</b> (unsigned int lastBlockSize, byte padFirst=0x80)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8127a31f5c7700602a34e78285f53e57"></a><!-- doxytag: member="SHA256::HashMultipleBlocks" ref="8127a31f5c7700602a34e78285f53e57" args="(const word32 *input, size_t length)" -->virtual size_t </td><td class="memItemRight" valign="bottom"><b>HashMultipleBlocks</b> (const word32 *input, size_t length)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f4f5349f8ebacfde64bb24f2ce758775"></a><!-- doxytag: member="SHA256::HashBlock" ref="f4f5349f8ebacfde64bb24f2ce758775" args="(const HashWordType *input)" -->void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_iterated_hash_base.html#f4f5349f8ebacfde64bb24f2ce758775">HashBlock</a> (const <a class="el" href="class_iterated_hash.html#ce0350088eea8679cbe23668d2498c07">HashWordType</a> *input)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="64ba03d31c489dc32b50e00d377d8032"></a><!-- doxytag: member="SHA256::ThrowIfInvalidTruncatedSize" ref="64ba03d31c489dc32b50e00d377d8032" args="(size_t size) const" -->void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_hash_transformation.html#64ba03d31c489dc32b50e00d377d8032">ThrowIfInvalidTruncatedSize</a> (size_t size) const</td></tr><tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="90c715c25bcbb9978a083b3da3c73013"></a><!-- doxytag: member="SHA256::m_state" ref="90c715c25bcbb9978a083b3da3c73013" args="" --><a class="el" href="class_fixed_size_sec_block.html">FixedSizeSecBlock</a>< word32,<br> T_BlockSize/sizeof(word32)> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_iterated_hash_with_static_transform.html#90c715c25bcbb9978a083b3da3c73013">m_state</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d1d059e2cba2115f403befa9e6c070da"></a><!-- doxytag: member="SHA256::m_data" ref="d1d059e2cba2115f403befa9e6c070da" args="" --><a class="el" href="class_fixed_size_sec_block.html">FixedSizeSecBlock</a>< word32,<br> T_BlockSize/sizeof(word32)> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_iterated_hash.html#d1d059e2cba2115f403befa9e6c070da">m_data</a></td></tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="39b0a4c4cdc11fda358f9975b5e4137e"></a><!-- doxytag: member="SHA256::Ref" ref="39b0a4c4cdc11fda358f9975b5e4137e" args="()" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="class_hash_transformation.html">HashTransformation</a>& HashTransformation::Ref </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline, inherited]</code></td> </tr> </table></div><div class="memdoc"><p>return a reference to this object, <p>This function is useful for passing a temporary <a class="el" href="class_hash_transformation.html" title="interface for hash functions and data processing part of MACs">HashTransformation</a> object to a function that takes a non-const reference. <p>Definition at line <a class="el" href="cryptlib_8h-source.html#l00533">533</a> of file <a class="el" href="cryptlib_8h-source.html">cryptlib.h</a>.</div></div><p><a class="anchor" name="a0b8c7a110d8968268fd02ec32b9a8e8"></a><!-- doxytag: member="SHA256::Final" ref="a0b8c7a110d8968268fd02ec32b9a8e8" args="(byte *digest)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void HashTransformation::Final </td> <td>(</td> <td class="paramtype">byte * </td> <td class="paramname"> <em>digest</em> </td> <td> ) </td> <td width="100%"><code> [inline, virtual, inherited]</code></td> </tr> </table></div><div class="memdoc"><p>compute hash for current message, then restart for a new message <p><dl class="pre" compact><dt><b>Precondition:</b></dt><dd>size of digest == <a class="el" href="class_hash_transformation.html#41faf8b1293a6c72390cb0c8bd668097" title="size of the hash returned by Final()">DigestSize()</a>. </dd></dl><p>Definition at line <a class="el" href="cryptlib_8h-source.html#l00543">543</a> of file <a class="el" href="cryptlib_8h-source.html">cryptlib.h</a>.<p>Referenced by <a class="el" href="pssr_8cpp-source.html#l00045">PSSR_MEM_Base::ComputeMessageRepresentative()</a>, <a class="el" href="pkcspad_8cpp-source.html#l00089">PKCS1v15_SignatureMessageEncodingMethod::ComputeMessageRepresentative()</a>, <a class="el" href="esign_8h-source.html#l00092">EMSA5Pad< T >::ComputeMessageRepresentative()</a>, <a class="el" href="pwdbased_8h-source.html#l00085">PKCS5_PBKDF2_HMAC< T >::DeriveKey()</a>, <a class="el" href="default_8cpp-source.html#l00083">DefaultEncryptor::FirstPut()</a>, <a class="el" href="randpool_8cpp-source.html#l00024">RandomPool::IncorporateEntropy()</a>, <a class="el" href="pssr_8cpp-source.html#l00084">PSSR_MEM_Base::RecoverMessageFromRepresentative()</a>, <a class="el" href="hmac_8cpp-source.html#l00067">HMAC_Base::TruncatedFinal()</a>, <a class="el" href="zlib_8cpp-source.html#l00033">ZlibCompressor::WritePoststreamTail()</a>, and <a class="el" href="gzip_8cpp-source.html#l00029">Gzip::WritePoststreamTail()</a>.</div></div><p><a class="anchor" name="16c4aecd047015d513feef4ed5b929ba"></a><!-- doxytag: member="SHA256::Verify" ref="16c4aecd047015d513feef4ed5b929ba" args="(const byte *digest)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual bool HashTransformation::Verify </td> <td>(</td> <td class="paramtype">const byte * </td> <td class="paramname"> <em>digest</em> </td> <td> ) </td> <td width="100%"><code> [inline, virtual, inherited]</code></td> </tr> </table></div><div class="memdoc"><p>verify that digest is a valid digest for the current message, then reinitialize the object <p>Default implementation is to call <a class="el" href="class_hash_transformation.html#a0b8c7a110d8968268fd02ec32b9a8e8" title="compute hash for current message, then restart for a new message">Final()</a> and do a bitwise comparison between its output and digest. <p>Definition at line <a class="el" href="cryptlib_8h-source.html#l00569">569</a> of file <a class="el" href="cryptlib_8h-source.html">cryptlib.h</a>.<p>Referenced by <a class="el" href="filters_8cpp-source.html#l00773">HashVerificationFilter::LastPut()</a>, <a class="el" href="gzip_8cpp-source.html#l00084">Gunzip::ProcessPoststreamTail()</a>, and <a class="el" href="pssr_8cpp-source.html#l00084">PSSR_MEM_Base::RecoverMessageFromRepresentative()</a>.</div></div><p><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="sha_8h-source.html">sha.h</a><li><a class="el" href="sha_8cpp-source.html">sha.cpp</a></ul><hr size="1"><address style="text-align: right;"><small>Generated on Fri Jun 1 11:11:49 2007 for Crypto++ by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -