📄 class_m_a_r_c4___base.html
字号:
<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_m_a_r_c4___basep0" doxytag="MARC4_Base::m_state"></a>FixedSizeSecBlock< byte, 256 > </td><td class="memItemRight" valign=bottom><b>m_state</b></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_m_a_r_c4___basep1" doxytag="MARC4_Base::m_x"></a>byte </td><td class="memItemRight" valign=bottom><b>m_x</b></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a name="_m_a_r_c4___basep2" doxytag="MARC4_Base::m_y"></a>byte </td><td class="memItemRight" valign=bottom><b>m_y</b></td></tr></table><hr><h2>Member Function Documentation</h2><a name="_m_a_r_c4___basea1" doxytag="MARC4_Base::DiscardBytes"></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"> void ARC4_Base::DiscardBytes </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">unsigned int </td> <td class="mdname1" valign="top" nowrap> <em>n</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual, inherited]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>generate and discard n bytes <p>Default implementation is to call <a class="el" href="class_a_r_c4___base.html#_m_a_r_c4___basea0">GenerateByte()</a> n times. <p>Reimplemented from <a class="el" href="class_random_number_generator.html#_x917_r_n_ga5">RandomNumberGenerator</a>.<p>Definition at line <a class="el" href="arc4_8cpp-source.html#l00097">97</a> of file <a class="el" href="arc4_8cpp-source.html">arc4.cpp</a>. </td> </tr></table><a name="_m_a_r_c4___basea2" doxytag="MARC4_Base::ProcessData"></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"> void ARC4_Base::ProcessData </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">byte * </td> <td class="mdname" nowrap> <em>outString</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const byte * </td> <td class="mdname" nowrap> <em>inString</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 class="md">) </td> <td class="md" colspan="2"><code> [virtual, inherited]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>encrypt or decrypt an array of bytes of specified length <p><dl compact><dt><b>Note:</b></dt><dd>either inString == outString, or they don't overlap </dd></dl><p>Implements <a class="el" href="class_stream_transformation.html#_symmetric_ciphera5">StreamTransformation</a>.<p>Definition at line <a class="el" href="arc4_8cpp-source.html#l00068">68</a> of file <a class="el" href="arc4_8cpp-source.html">arc4.cpp</a>. </td> </tr></table><a name="_x917_r_n_ga2" doxytag="MARC4_Base::GenerateBit"></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"> unsigned int RandomNumberGenerator::GenerateBit </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual, inherited]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>generate new random bit and return it <p>Default implementation is to call <a class="el" href="class_a_r_c4___base.html#_m_a_r_c4___basea0">GenerateByte()</a> and return its parity. <p>Reimplemented in <a class="el" href="class_public_blum_blum_shub.html#_public_blum_blum_shuba1">PublicBlumBlumShub</a>.<p>Definition at line <a class="el" href="cryptlib_8cpp-source.html#l00086">86</a> of file <a class="el" href="cryptlib_8cpp-source.html">cryptlib.cpp</a>.<p>References <a class="el" href="class_random_number_generator.html#_sapphire_r_n_ga2">RandomNumberGenerator::GenerateByte()</a>. </td> </tr></table><a name="_x917_r_n_ga4" doxytag="MARC4_Base::GenerateBlock"></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"> void RandomNumberGenerator::GenerateBlock </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">byte * </td> <td class="mdname" nowrap> <em>output</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>unsigned int </td> <td class="mdname" nowrap> <em>size</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual, inherited]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>generate random array of bytes <p>Default implementation is to call <a class="el" href="class_a_r_c4___base.html#_m_a_r_c4___basea0">GenerateByte()</a> size times. <p>Reimplemented in <a class="el" href="class_nonblocking_rng.html#_nonblocking_rnga3">NonblockingRng</a>, <a class="el" href="class_blocking_rng.html#_blocking_rnga3">BlockingRng</a>, and <a class="el" href="class_random_pool.html#_random_poola7">RandomPool</a>.<p>Definition at line <a class="el" href="cryptlib_8cpp-source.html#l00091">91</a> of file <a class="el" href="cryptlib_8cpp-source.html">cryptlib.cpp</a>.<p>References <a class="el" href="class_random_number_generator.html#_sapphire_r_n_ga2">RandomNumberGenerator::GenerateByte()</a>.<p>Referenced by <a class="el" href="gfpcrypt_8cpp-source.html#l00026">DL_GroupParameters_DSA::GenerateRandom()</a>. </td> </tr></table><a name="_symmetric_ciphera0" doxytag="MARC4_Base::Ref"></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"> <a class="el" href="class_stream_transformation.html">StreamTransformation</a>& StreamTransformation::Ref </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline, inherited]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>return a reference to this object, <p>This function is useful for passing a temporary <a class="el" href="class_stream_transformation.html">StreamTransformation</a> object to a function that takes a non-const reference. <p>Definition at line <a class="el" href="cryptlib_8h-source.html#l00458">458</a> of file <a class="el" href="cryptlib_8h-source.html">cryptlib.h</a>. </td> </tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -