📄 class_m_d5_m_a_c___base.html
字号:
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void SimpleKeyingInterface::SetKey </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const byte * </td> <td class="mdname" nowrap> <em>key</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>unsigned int </td> <td class="mdname" nowrap> <em>length</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> & </td> <td class="mdname" nowrap> <em>params</em> = <a class="el" href="cryptlib_8h.html#a3">g_nullNameValuePairs</a></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [pure virtual, inherited]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>set or reset the key of this object <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>params</em> </td><td>is used to specify Rounds, BlockSize, etc </td></tr> </table></dl><p>Implemented in <a class="el" href="class_message_authentication_code_final_template.html#_message_authentication_code_final_templatea3">MessageAuthenticationCodeFinalTemplate< BASE, INFO ></a>, <a class="el" href="class_message_authentication_code_final_template.html#_message_authentication_code_final_templatea3">MessageAuthenticationCodeFinalTemplate< HMAC_Base, HMAC< T > ></a>, <a class="el" href="class_message_authentication_code_final_template.html#_message_authentication_code_final_templatea3">MessageAuthenticationCodeFinalTemplate< XMACC_Base< T > ></a>, <a class="el" href="class_message_authentication_code_final_template.html#_message_authentication_code_final_templatea3">MessageAuthenticationCodeFinalTemplate< DMAC_Base< T > ></a>, <a class="el" href="class_message_authentication_code_final_template.html#_message_authentication_code_final_templatea3">MessageAuthenticationCodeFinalTemplate< CBC_MAC_Base, CBC_MAC< T > ></a>, <a class="el" href="class_message_authentication_code_final_template.html#_message_authentication_code_final_templatea3">MessageAuthenticationCodeFinalTemplate< HMAC_Base, HMAC< DefaultHashModule > ></a>, and <a class="el" href="class_message_authentication_code_final_template.html#_message_authentication_code_final_templatea3">MessageAuthenticationCodeFinalTemplate< PanamaMAC_Base< B > ></a>.<p>Referenced by <a class="el" href="cryptlib_8cpp-source.html#l00052">SimpleKeyingInterface::SetKeyWithIV()</a>, and <a class="el" href="cryptlib_8cpp-source.html#l00047">SimpleKeyingInterface::SetKeyWithRounds()</a>. </td> </tr></table><a name="_x_m_a_c_c___basea30" doxytag="MD5MAC_Base::IsResynchronizable"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool SimpleKeyingInterface::IsResynchronizable </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [inline, inherited]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>returns whether this object can be resynchronized (i.e. supports initialization vectors) <p>If this function returns true, and no IV is passed to <a class="el" href="class_simple_keying_interface.html#_x_m_a_c_c___basea26">SetKey()</a> and <a class="el" href="class_simple_keying_interface.html#_x_m_a_c_c___basea33">CanUseStructuredIVs()</a>==true, an IV of all 0's will be assumed. <p>Definition at line <a class="el" href="cryptlib_8h-source.html#l00381">381</a> of file <a class="el" href="cryptlib_8h-source.html">cryptlib.h</a>. </td> </tr></table><a name="_x_m_a_c_ca34" doxytag="MD5MAC_Base::GetNextIV"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void SimpleKeyingInterface::GetNextIV </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">byte * </td> <td class="mdname1" valign="top" nowrap> <em>IV</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline, virtual, inherited]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>get a secure IV for the next message <p>This method should be called after you finish encrypting one message and are ready to start the next one. After calling it, you must call <a class="el" href="class_simple_keying_interface.html#_x_m_a_c_c___basea26">SetKey()</a> or <a class="el" href="class_simple_keying_interface.html#_x_m_a_c_ca33">Resynchronize()</a> before using this object again. This method is not implemented on decryption objects. <p>Definition at line <a class="el" href="cryptlib_8h-source.html#l00397">397</a> of file <a class="el" href="cryptlib_8h-source.html">cryptlib.h</a>. </td> </tr></table><hr><h2>Member Data Documentation</h2><a name="_m_d5_m_a_c___baset0" doxytag="MD5MAC_Base::T"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const word32 MD5MAC_Base::T<code> [static, protected]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><b>Initial value:</b><div class="fragment"><pre> { 0xac45ef97,0xcd430f29,0x551b7e45,0x3411801c, 0x96ce77b1,0x7c8e722e,0x0aab5a5f,0x18be4336, 0x21b4219d,0x4db987bc,0xbd279da2,0xc3d75bc7 }</pre></div><p>Definition at line <a class="el" href="md5mac_8cpp-source.html#l00010">10</a> of file <a class="el" href="md5mac_8cpp-source.html">md5mac.cpp</a>. </td> </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="md5mac_8h-source.html">md5mac.h</a><li><a class="el" href="md5mac_8cpp-source.html">md5mac.cpp</a></ul><hr size="1"><address style="align: right;"><small>Generated on Tue Jul 8 23:35:10 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 + -