<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.14"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>Crypto++: XSalsa20 Struct Reference</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> <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 style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">Crypto++  <span id="projectnumber">7.0</span> </div> <div id="projectbrief">Free C++ class library of cryptographic schemes</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.14 --> <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:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',false,false,'search.php','Search'); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> | <a href="struct_x_salsa20-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">XSalsa20 Struct Reference</div> </div> </div><!--header--> <div class="contents"> <p><a class="el" href="struct_x_salsa20.html" title="XSalsa20 stream cipher. ">XSalsa20</a> stream cipher. <a href="struct_x_salsa20.html#details">More...</a></p> <div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"> <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for XSalsa20:</div> <div id="dynsection-0-summary" class="dynsummary" style="display:block;"> </div> <div id="dynsection-0-content" class="dyncontent" style="display:none;"> <div class="center"> <img src="struct_x_salsa20.png" usemap="#XSalsa20_map" alt=""/> <map id="XSalsa20_map" name="XSalsa20_map"> <area href="struct_x_salsa20___info.html" title="XSalsa20 stream cipher information. " alt="XSalsa20_Info" shape="rect" coords="0,56,370,80"/> <area href="struct_symmetric_cipher_documentation.html" title="Provides Encryption and Decryption typedefs used by derived classes to implement a symmetric cipher..." alt="SymmetricCipherDocumentation" shape="rect" coords="380,56,750,80"/> <area href="class_fixed_key_length.html" alt="FixedKeyLength< 32, SimpleKeyingInterface::UNIQUE_IV, 24 >" shape="rect" coords="0,0,370,24"/> </map> </div></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a> Public Types</h2></td></tr> <tr class="memitem:a85227819eec510aeda514425e87243e1"><td class="memItemLeft" align="right" valign="top"><a id="a85227819eec510aeda514425e87243e1"></a> typedef <a class="el" href="class_symmetric_cipher_final.html">SymmetricCipherFinal</a>< <a class="el" href="class_concrete_policy_holder.html">ConcretePolicyHolder</a>< <a class="el" href="class_x_salsa20___policy.html">XSalsa20_Policy</a>, <a class="el" href="class_additive_cipher_template.html">AdditiveCipherTemplate</a><> >, <a class="el" href="struct_x_salsa20___info.html">XSalsa20_Info</a> > </td><td class="memItemRight" valign="bottom"><b>Encryption</b></td></tr> <tr class="separator:a85227819eec510aeda514425e87243e1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:afb1d31b7cf5663762c3093bbbd4ff18a"><td class="memItemLeft" align="right" valign="top"><a id="afb1d31b7cf5663762c3093bbbd4ff18a"></a> typedef <a class="el" href="class_symmetric_cipher_final.html">Encryption</a> </td><td class="memItemRight" valign="bottom"><b>Decryption</b></td></tr> <tr class="separator:afb1d31b7cf5663762c3093bbbd4ff18a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_types_struct_symmetric_cipher_documentation"><td colspan="2" onclick="javascript:toggleInherit('pub_types_struct_symmetric_cipher_documentation')"><img src="closed.png" alt="-"/> Public Types inherited from <a class="el" href="struct_symmetric_cipher_documentation.html">SymmetricCipherDocumentation</a></td></tr> <tr class="memitem:a44854216f0ebd272eddfd7f3877ecb34 inherit pub_types_struct_symmetric_cipher_documentation"><td class="memItemLeft" align="right" valign="top"><a id="a44854216f0ebd272eddfd7f3877ecb34"></a> typedef <a class="el" href="class_symmetric_cipher.html">SymmetricCipher</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_symmetric_cipher_documentation.html#a44854216f0ebd272eddfd7f3877ecb34">Encryption</a></td></tr> <tr class="memdesc:a44854216f0ebd272eddfd7f3877ecb34 inherit pub_types_struct_symmetric_cipher_documentation"><td class="mdescLeft"> </td><td class="mdescRight">implements the <a class="el" href="class_symmetric_cipher.html" title="Interface for one direction (encryption or decryption) of a stream cipher or cipher mode...">SymmetricCipher</a> interface <br /></td></tr> <tr class="separator:a44854216f0ebd272eddfd7f3877ecb34 inherit pub_types_struct_symmetric_cipher_documentation"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a0d5bbe79fd8fb71c0f857bb97b0d1f2f inherit pub_types_struct_symmetric_cipher_documentation"><td class="memItemLeft" align="right" valign="top"><a id="a0d5bbe79fd8fb71c0f857bb97b0d1f2f"></a> typedef <a class="el" href="class_symmetric_cipher.html">SymmetricCipher</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_symmetric_cipher_documentation.html#a0d5bbe79fd8fb71c0f857bb97b0d1f2f">Decryption</a></td></tr> <tr class="memdesc:a0d5bbe79fd8fb71c0f857bb97b0d1f2f inherit pub_types_struct_symmetric_cipher_documentation"><td class="mdescLeft"> </td><td class="mdescRight">implements the <a class="el" href="class_symmetric_cipher.html" title="Interface for one direction (encryption or decryption) of a stream cipher or cipher mode...">SymmetricCipher</a> interface <br /></td></tr> <tr class="separator:a0d5bbe79fd8fb71c0f857bb97b0d1f2f inherit pub_types_struct_symmetric_cipher_documentation"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> Additional Inherited Members</h2></td></tr> <tr class="inherit_header pub_static_methods_struct_x_salsa20___info"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_struct_x_salsa20___info')"><img src="closed.png" alt="-"/> Static Public Member Functions inherited from <a class="el" href="struct_x_salsa20___info.html">XSalsa20_Info</a></td></tr> <tr class="memitem:a0caae0928716adbd2984233cbe49e1d9 inherit pub_static_methods_struct_x_salsa20___info"><td class="memItemLeft" align="right" valign="top"><a id="a0caae0928716adbd2984233cbe49e1d9"></a> static std::string </td><td class="memItemRight" valign="bottom"><b>StaticAlgorithmName</b> ()</td></tr> <tr class="separator:a0caae0928716adbd2984233cbe49e1d9 inherit pub_static_methods_struct_x_salsa20___info"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_static_methods_class_fixed_key_length"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_fixed_key_length')"><img src="closed.png" alt="-"/> Static Public Member Functions inherited from <a class="el" href="class_fixed_key_length.html">FixedKeyLength< 32, SimpleKeyingInterface::UNIQUE_IV, 24 ></a></td></tr> <tr class="memitem:a33b626ceb451a6897ef71e4aa73efce5 inherit pub_static_methods_class_fixed_key_length"><td class="memItemLeft" align="right" valign="top">static size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_fixed_key_length.html#a33b626ceb451a6897ef71e4aa73efce5">StaticGetValidKeyLength</a> (size_t keylength)</td></tr> <tr class="memdesc:a33b626ceb451a6897ef71e4aa73efce5 inherit pub_static_methods_class_fixed_key_length"><td class="mdescLeft"> </td><td class="mdescRight">The default key length for the algorithm provided by a static function. <a href="class_fixed_key_length.html#a33b626ceb451a6897ef71e4aa73efce5">More...</a><br /></td></tr> <tr class="separator:a33b626ceb451a6897ef71e4aa73efce5 inherit pub_static_methods_class_fixed_key_length"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_static_attribs_class_fixed_key_length"><td colspan="2" onclick="javascript:toggleInherit('pub_static_attribs_class_fixed_key_length')"><img src="closed.png" alt="-"/> Static Public Attributes inherited from <a class="el" href="class_fixed_key_length.html">FixedKeyLength< 32, SimpleKeyingInterface::UNIQUE_IV, 24 ></a></td></tr> <tr class="memitem:ab994d881a105849f64a973373e8f282c inherit pub_static_attribs_class_fixed_key_length"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_fixed_key_length.html#ab994d881a105849f64a973373e8f282c">KEYLENGTH</a></td></tr> <tr class="memdesc:ab994d881a105849f64a973373e8f282c inherit pub_static_attribs_class_fixed_key_length"><td class="mdescLeft"> </td><td class="mdescRight">The default key length used by the algorithm provided as a constant. <a href="class_fixed_key_length.html#ab994d881a105849f64a973373e8f282c">More...</a><br /></td></tr> <tr class="separator:ab994d881a105849f64a973373e8f282c inherit pub_static_attribs_class_fixed_key_length"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a198440f34bfe0f343fab3cdbef586a3b inherit pub_static_attribs_class_fixed_key_length"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_fixed_key_length.html#a198440f34bfe0f343fab3cdbef586a3b">MIN_KEYLENGTH</a></td></tr> <tr class="memdesc:a198440f34bfe0f343fab3cdbef586a3b inherit pub_static_attribs_class_fixed_key_length"><td class="mdescLeft"> </td><td class="mdescRight">The minimum key length used by the algorithm provided as a constant. <a href="class_fixed_key_length.html#a198440f34bfe0f343fab3cdbef586a3b">More...</a><br /></td></tr> <tr class="separator:a198440f34bfe0f343fab3cdbef586a3b inherit pub_static_attribs_class_fixed_key_length"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7c599a7ebb4e0fa4773c4cd1b4023b18 inherit pub_static_attribs_class_fixed_key_length"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_fixed_key_length.html#a7c599a7ebb4e0fa4773c4cd1b4023b18">MAX_KEYLENGTH</a></td></tr> <tr class="memdesc:a7c599a7ebb4e0fa4773c4cd1b4023b18 inherit pub_static_attribs_class_fixed_key_length"><td class="mdescLeft"> </td><td class="mdescRight">The maximum key length used by the algorithm provided as a constant. <a href="class_fixed_key_length.html#a7c599a7ebb4e0fa4773c4cd1b4023b18">More...</a><br /></td></tr> <tr class="separator:a7c599a7ebb4e0fa4773c4cd1b4023b18 inherit pub_static_attribs_class_fixed_key_length"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1e9951e11c42a0a8c75bd959bcf26f31 inherit pub_static_attribs_class_fixed_key_length"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_fixed_key_length.html#a1e9951e11c42a0a8c75bd959bcf26f31">DEFAULT_KEYLENGTH</a></td></tr> <tr class="memdesc:a1e9951e11c42a0a8c75bd959bcf26f31 inherit pub_static_attribs_class_fixed_key_length"><td class="mdescLeft"> </td><td class="mdescRight">The default key length used by the algorithm provided as a constant. <a href="class_fixed_key_length.html#a1e9951e11c42a0a8c75bd959bcf26f31">More...</a><br /></td></tr> <tr class="separator:a1e9951e11c42a0a8c75bd959bcf26f31 inherit pub_static_attribs_class_fixed_key_length"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab1a634167fe78a3ee06554a268e6d61c inherit pub_static_attribs_class_fixed_key_length"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_fixed_key_length.html#ab1a634167fe78a3ee06554a268e6d61c">IV_REQUIREMENT</a></td></tr> <tr class="memdesc:ab1a634167fe78a3ee06554a268e6d61c inherit pub_static_attribs_class_fixed_key_length"><td class="mdescLeft"> </td><td class="mdescRight">The default IV requirements for the algorithm provided as a constant. <a href="class_fixed_key_length.html#ab1a634167fe78a3ee06554a268e6d61c">More...</a><br /></td></tr> <tr class="separator:ab1a634167fe78a3ee06554a268e6d61c inherit pub_static_attribs_class_fixed_key_length"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a467a0101968e4181f770509e19ebef28 inherit pub_static_attribs_class_fixed_key_length"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_fixed_key_length.html#a467a0101968e4181f770509e19ebef28">IV_LENGTH</a></td></tr> <tr class="memdesc:a467a0101968e4181f770509e19ebef28 inherit pub_static_attribs_class_fixed_key_length"><td class="mdescLeft"> </td><td class="mdescRight">The default IV length used by the algorithm provided as a constant. <a href="class_fixed_key_length.html#a467a0101968e4181f770509e19ebef28">More...</a><br /></td></tr> <tr class="separator:a467a0101968e4181f770509e19ebef28 inherit pub_static_attribs_class_fixed_key_length"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p><a class="el" href="struct_x_salsa20.html" title="XSalsa20 stream cipher. ">XSalsa20</a> stream cipher. </p> <p><a class="el" href="struct_x_salsa20.html" title="XSalsa20 stream cipher. ">XSalsa20</a> provides a variable number of rounds: 8, 12 or 20. The default number of rounds is 20. </p><dl class="section see"><dt>See also</dt><dd><a href="http://www.cryptolounge.org/wiki/XSalsa20">XSalsa20</a> </dd></dl> <p class="definition">Definition at line <a class="el" href="salsa_8h_source.html#l00081">81</a> of file <a class="el" href="salsa_8h_source.html">salsa.h</a>.</p> </div><hr/>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="salsa_8h_source.html">salsa.h</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Sun Sep 16 2018 07:59:07 for Crypto++ by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.14 </small></address> </body> </html>