mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 17:56:16 +00:00
985 lines
49 KiB
HTML
985 lines
49 KiB
HTML
<!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>Dash Core: src/crypto/sph_groestl.h File 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="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(initResizable);
|
|
/* @license-end */</script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.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="projectlogo"><img alt="Logo" src="bitcoin_logo_doxygen.png"/></td>
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">Dash Core
|
|
 <span id="projectnumber">0.12.2.1</span>
|
|
</div>
|
|
<div id="projectbrief">P2P Digital Currency</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.14 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<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('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('sph__groestl_8h.html','');});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#nested-classes">Classes</a> |
|
|
<a href="#define-members">Macros</a> |
|
|
<a href="#typedef-members">Typedefs</a> |
|
|
<a href="#func-members">Functions</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">sph_groestl.h File Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="textblock"><code>#include <stddef.h></code><br />
|
|
<code>#include "<a class="el" href="sph__types_8h_source.html">sph_types.h</a>"</code><br />
|
|
</div>
|
|
<p><a href="sph__groestl_8h_source.html">Go to the source code of this file.</a></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
|
|
Classes</h2></td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structsph__groestl__small__context.html">sph_groestl_small_context</a></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structsph__groestl__big__context.html">sph_groestl_big_context</a></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
|
|
Macros</h2></td></tr>
|
|
<tr class="memitem:a07ff180c17038a3c6b1eea328ffc7c3e"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#a07ff180c17038a3c6b1eea328ffc7c3e">SPH_SIZE_groestl224</a>   224</td></tr>
|
|
<tr class="separator:a07ff180c17038a3c6b1eea328ffc7c3e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa8f6ef154ce1cbfe97611a3852318505"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#aa8f6ef154ce1cbfe97611a3852318505">SPH_SIZE_groestl256</a>   256</td></tr>
|
|
<tr class="separator:aa8f6ef154ce1cbfe97611a3852318505"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae3291c64736895b53267f78fc0ecfd13"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#ae3291c64736895b53267f78fc0ecfd13">SPH_SIZE_groestl384</a>   384</td></tr>
|
|
<tr class="separator:ae3291c64736895b53267f78fc0ecfd13"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2ed3f1d599ff62c8192e8a7d996ca4ce"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#a2ed3f1d599ff62c8192e8a7d996ca4ce">SPH_SIZE_groestl512</a>   512</td></tr>
|
|
<tr class="separator:a2ed3f1d599ff62c8192e8a7d996ca4ce"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
|
|
Typedefs</h2></td></tr>
|
|
<tr class="memitem:a44e8ac32a21a6902a0836c34f19da7d8"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structsph__groestl__small__context.html">sph_groestl_small_context</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#a44e8ac32a21a6902a0836c34f19da7d8">sph_groestl224_context</a></td></tr>
|
|
<tr class="separator:a44e8ac32a21a6902a0836c34f19da7d8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0612dbdee9269f45640e8e067d49ac35"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structsph__groestl__small__context.html">sph_groestl_small_context</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#a0612dbdee9269f45640e8e067d49ac35">sph_groestl256_context</a></td></tr>
|
|
<tr class="separator:a0612dbdee9269f45640e8e067d49ac35"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aeb8d165a61dca513e8075ad4d82b9eb3"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structsph__groestl__big__context.html">sph_groestl_big_context</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#aeb8d165a61dca513e8075ad4d82b9eb3">sph_groestl384_context</a></td></tr>
|
|
<tr class="separator:aeb8d165a61dca513e8075ad4d82b9eb3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac57bb29f88df2ffc4c47ad1664c6180b"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structsph__groestl__big__context.html">sph_groestl_big_context</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#ac57bb29f88df2ffc4c47ad1664c6180b">sph_groestl512_context</a></td></tr>
|
|
<tr class="separator:ac57bb29f88df2ffc4c47ad1664c6180b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:abb0fafd9602f8245946ec37bfc174a85"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#abb0fafd9602f8245946ec37bfc174a85">sph_groestl224_init</a> (void *cc)</td></tr>
|
|
<tr class="separator:abb0fafd9602f8245946ec37bfc174a85"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1a70661022c2c8fb7d1b65fe29869481"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#a1a70661022c2c8fb7d1b65fe29869481">sph_groestl224</a> (void *cc, const void *data, size_t len)</td></tr>
|
|
<tr class="separator:a1a70661022c2c8fb7d1b65fe29869481"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0e3679280fb3caafd8bdb4d06321b95b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#a0e3679280fb3caafd8bdb4d06321b95b">sph_groestl224_close</a> (void *cc, void *dst)</td></tr>
|
|
<tr class="separator:a0e3679280fb3caafd8bdb4d06321b95b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0b2638c580a491265e42030791ca3626"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#a0b2638c580a491265e42030791ca3626">sph_groestl224_addbits_and_close</a> (void *cc, unsigned ub, unsigned n, void *dst)</td></tr>
|
|
<tr class="separator:a0b2638c580a491265e42030791ca3626"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa93dc9fc0715fa292d34b6ef0ed17caf"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#aa93dc9fc0715fa292d34b6ef0ed17caf">sph_groestl256_init</a> (void *cc)</td></tr>
|
|
<tr class="separator:aa93dc9fc0715fa292d34b6ef0ed17caf"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2687e82c816070bed39d0511eff0e451"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#a2687e82c816070bed39d0511eff0e451">sph_groestl256</a> (void *cc, const void *data, size_t len)</td></tr>
|
|
<tr class="separator:a2687e82c816070bed39d0511eff0e451"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7f5e799b29ea2a3210d5cc4dab78dcb9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#a7f5e799b29ea2a3210d5cc4dab78dcb9">sph_groestl256_close</a> (void *cc, void *dst)</td></tr>
|
|
<tr class="separator:a7f5e799b29ea2a3210d5cc4dab78dcb9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:afbe18dd0412b3726e0ebfa3a54ce62fa"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#afbe18dd0412b3726e0ebfa3a54ce62fa">sph_groestl256_addbits_and_close</a> (void *cc, unsigned ub, unsigned n, void *dst)</td></tr>
|
|
<tr class="separator:afbe18dd0412b3726e0ebfa3a54ce62fa"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ace8b77d0072242686e8ac454321632f8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#ace8b77d0072242686e8ac454321632f8">sph_groestl384_init</a> (void *cc)</td></tr>
|
|
<tr class="separator:ace8b77d0072242686e8ac454321632f8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8bc74f164d6d8821714dedf0ef3072bb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#a8bc74f164d6d8821714dedf0ef3072bb">sph_groestl384</a> (void *cc, const void *data, size_t len)</td></tr>
|
|
<tr class="separator:a8bc74f164d6d8821714dedf0ef3072bb"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8e0c0327a33f3a099f8cbd122133efff"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#a8e0c0327a33f3a099f8cbd122133efff">sph_groestl384_close</a> (void *cc, void *dst)</td></tr>
|
|
<tr class="separator:a8e0c0327a33f3a099f8cbd122133efff"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9e0080ba471724ad839b03c4cbc4c9b7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#a9e0080ba471724ad839b03c4cbc4c9b7">sph_groestl384_addbits_and_close</a> (void *cc, unsigned ub, unsigned n, void *dst)</td></tr>
|
|
<tr class="separator:a9e0080ba471724ad839b03c4cbc4c9b7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aae8e752e52ba49c4b4d3201138db4e21"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#aae8e752e52ba49c4b4d3201138db4e21">sph_groestl512_init</a> (void *cc)</td></tr>
|
|
<tr class="separator:aae8e752e52ba49c4b4d3201138db4e21"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6234cab162aecb29f261f0131f1aaf0b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#a6234cab162aecb29f261f0131f1aaf0b">sph_groestl512</a> (void *cc, const void *data, size_t len)</td></tr>
|
|
<tr class="separator:a6234cab162aecb29f261f0131f1aaf0b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4e6cdfd9e3ceefe1421d858aba818106"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#a4e6cdfd9e3ceefe1421d858aba818106">sph_groestl512_close</a> (void *cc, void *dst)</td></tr>
|
|
<tr class="separator:a4e6cdfd9e3ceefe1421d858aba818106"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a56b67fc250744506310b01cbc3249f5f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sph__groestl_8h.html#a56b67fc250744506310b01cbc3249f5f">sph_groestl512_addbits_and_close</a> (void *cc, unsigned ub, unsigned n, void *dst)</td></tr>
|
|
<tr class="separator:a56b67fc250744506310b01cbc3249f5f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>Groestl interface. This code implements Groestl with the recommended parameters for SHA-3, with outputs of 224, 256, 384 and 512 bits.</p>
|
|
<p>==========================(LICENSE BEGIN)============================</p>
|
|
<p>Copyright (c) 2007-2010 Projet RNRT SAPHIR</p>
|
|
<p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p>
|
|
<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
|
|
<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
|
|
<p>===========================(LICENSE END)=============================</p>
|
|
<dl class="section author"><dt>Author</dt><dd>Thomas Pornin <a href="#" onclick="location.href='mai'+'lto:'+'tho'+'ma'+'s.p'+'or'+'nin'+'@c'+'ryp'+'to'+'log'+'.c'+'om'; return false;">thoma<span style="display: none;">.nosp@m.</span>s.po<span style="display: none;">.nosp@m.</span>rnin@<span style="display: none;">.nosp@m.</span>cryp<span style="display: none;">.nosp@m.</span>tolog<span style="display: none;">.nosp@m.</span>.com</a> </dd></dl>
|
|
|
|
<p class="definition">Definition in file <a class="el" href="sph__groestl_8h_source.html">sph_groestl.h</a>.</p>
|
|
</div><h2 class="groupheader">Macro Definition Documentation</h2>
|
|
<a id="a07ff180c17038a3c6b1eea328ffc7c3e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a07ff180c17038a3c6b1eea328ffc7c3e">◆ </a></span>SPH_SIZE_groestl224</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define SPH_SIZE_groestl224   224</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Output size (in bits) for Groestl-224. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="sph__groestl_8h_source.html#l00048">48</a> of file <a class="el" href="sph__groestl_8h_source.html">sph_groestl.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa8f6ef154ce1cbfe97611a3852318505"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa8f6ef154ce1cbfe97611a3852318505">◆ </a></span>SPH_SIZE_groestl256</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define SPH_SIZE_groestl256   256</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Output size (in bits) for Groestl-256. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="sph__groestl_8h_source.html#l00053">53</a> of file <a class="el" href="sph__groestl_8h_source.html">sph_groestl.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae3291c64736895b53267f78fc0ecfd13"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae3291c64736895b53267f78fc0ecfd13">◆ </a></span>SPH_SIZE_groestl384</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define SPH_SIZE_groestl384   384</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Output size (in bits) for Groestl-384. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="sph__groestl_8h_source.html#l00058">58</a> of file <a class="el" href="sph__groestl_8h_source.html">sph_groestl.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a2ed3f1d599ff62c8192e8a7d996ca4ce"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a2ed3f1d599ff62c8192e8a7d996ca4ce">◆ </a></span>SPH_SIZE_groestl512</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define SPH_SIZE_groestl512   512</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Output size (in bits) for Groestl-512. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="sph__groestl_8h_source.html#l00063">63</a> of file <a class="el" href="sph__groestl_8h_source.html">sph_groestl.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Typedef Documentation</h2>
|
|
<a id="a44e8ac32a21a6902a0836c34f19da7d8"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a44e8ac32a21a6902a0836c34f19da7d8">◆ </a></span>sph_groestl224_context</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef <a class="el" href="structsph__groestl__small__context.html">sph_groestl_small_context</a> <a class="el" href="sph__groestl_8h.html#a44e8ac32a21a6902a0836c34f19da7d8">sph_groestl224_context</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>This structure is a context for Groestl-224 computations. It is identical to the common <code><a class="el" href="structsph__groestl__small__context.html">sph_groestl_small_context</a></code>. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="sph__groestl_8h_source.html#l00097">97</a> of file <a class="el" href="sph__groestl_8h_source.html">sph_groestl.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0612dbdee9269f45640e8e067d49ac35"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0612dbdee9269f45640e8e067d49ac35">◆ </a></span>sph_groestl256_context</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef <a class="el" href="structsph__groestl__small__context.html">sph_groestl_small_context</a> <a class="el" href="sph__groestl_8h.html#a0612dbdee9269f45640e8e067d49ac35">sph_groestl256_context</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>This structure is a context for Groestl-256 computations. It is identical to the common <code><a class="el" href="structsph__groestl__small__context.html">sph_groestl_small_context</a></code>. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="sph__groestl_8h_source.html#l00103">103</a> of file <a class="el" href="sph__groestl_8h_source.html">sph_groestl.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aeb8d165a61dca513e8075ad4d82b9eb3"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aeb8d165a61dca513e8075ad4d82b9eb3">◆ </a></span>sph_groestl384_context</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef <a class="el" href="structsph__groestl__big__context.html">sph_groestl_big_context</a> <a class="el" href="sph__groestl_8h.html#aeb8d165a61dca513e8075ad4d82b9eb3">sph_groestl384_context</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>This structure is a context for Groestl-384 computations. It is identical to the common <code><a class="el" href="structsph__groestl__small__context.html">sph_groestl_small_context</a></code>. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="sph__groestl_8h_source.html#l00137">137</a> of file <a class="el" href="sph__groestl_8h_source.html">sph_groestl.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ac57bb29f88df2ffc4c47ad1664c6180b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac57bb29f88df2ffc4c47ad1664c6180b">◆ </a></span>sph_groestl512_context</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef <a class="el" href="structsph__groestl__big__context.html">sph_groestl_big_context</a> <a class="el" href="sph__groestl_8h.html#ac57bb29f88df2ffc4c47ad1664c6180b">sph_groestl512_context</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>This structure is a context for Groestl-512 computations. It is identical to the common <code><a class="el" href="structsph__groestl__small__context.html">sph_groestl_small_context</a></code>. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="sph__groestl_8h_source.html#l00143">143</a> of file <a class="el" href="sph__groestl_8h_source.html">sph_groestl.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Function Documentation</h2>
|
|
<a id="a1a70661022c2c8fb7d1b65fe29869481"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a1a70661022c2c8fb7d1b65fe29869481">◆ </a></span>sph_groestl224()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void sph_groestl224 </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>cc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const void * </td>
|
|
<td class="paramname"><em>data</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">size_t </td>
|
|
<td class="paramname"><em>len</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Process some data bytes. It is acceptable that <code>len</code> is zero (in which case this function does nothing).</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">cc</td><td>the Groestl-224 context </td></tr>
|
|
<tr><td class="paramname">data</td><td>the input data </td></tr>
|
|
<tr><td class="paramname">len</td><td>the input data length (in bytes) </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="groestl_8c_source.html#l03018">3018</a> of file <a class="el" href="groestl_8c_source.html">groestl.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0b2638c580a491265e42030791ca3626"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0b2638c580a491265e42030791ca3626">◆ </a></span>sph_groestl224_addbits_and_close()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void sph_groestl224_addbits_and_close </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>cc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned </td>
|
|
<td class="paramname"><em>ub</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned </td>
|
|
<td class="paramname"><em>n</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>dst</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Add a few additional bits (0 to 7) to the current computation, then terminate it and output the result in the provided buffer, which must be wide enough to accomodate the result (28 bytes). If bit number i in <code>ub</code> has value 2^i, then the extra bits are those numbered 7 downto 8-n (this is the big-endian convention at the byte level). The context is automatically reinitialized.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">cc</td><td>the Groestl-224 context </td></tr>
|
|
<tr><td class="paramname">ub</td><td>the extra bits </td></tr>
|
|
<tr><td class="paramname">n</td><td>the number of extra bits (0 to 7) </td></tr>
|
|
<tr><td class="paramname">dst</td><td>the destination buffer </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="groestl_8c_source.html#l03032">3032</a> of file <a class="el" href="groestl_8c_source.html">groestl.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0e3679280fb3caafd8bdb4d06321b95b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0e3679280fb3caafd8bdb4d06321b95b">◆ </a></span>sph_groestl224_close()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void sph_groestl224_close </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>cc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>dst</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Terminate the current Groestl-224 computation and output the result into the provided buffer. The destination buffer must be wide enough to accomodate the result (28 bytes). The context is automatically reinitialized.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">cc</td><td>the Groestl-224 context </td></tr>
|
|
<tr><td class="paramname">dst</td><td>the destination buffer </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="groestl_8c_source.html#l03025">3025</a> of file <a class="el" href="groestl_8c_source.html">groestl.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="abb0fafd9602f8245946ec37bfc174a85"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#abb0fafd9602f8245946ec37bfc174a85">◆ </a></span>sph_groestl224_init()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void sph_groestl224_init </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>cc</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Initialize a Groestl-224 context. This process performs no memory allocation.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">cc</td><td>the Groestl-224 context (pointer to a <code>sph_groestl224_context</code>) </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="groestl_8c_source.html#l03011">3011</a> of file <a class="el" href="groestl_8c_source.html">groestl.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a2687e82c816070bed39d0511eff0e451"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a2687e82c816070bed39d0511eff0e451">◆ </a></span>sph_groestl256()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void sph_groestl256 </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>cc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const void * </td>
|
|
<td class="paramname"><em>data</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">size_t </td>
|
|
<td class="paramname"><em>len</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Process some data bytes. It is acceptable that <code>len</code> is zero (in which case this function does nothing).</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">cc</td><td>the Groestl-256 context </td></tr>
|
|
<tr><td class="paramname">data</td><td>the input data </td></tr>
|
|
<tr><td class="paramname">len</td><td>the input data length (in bytes) </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="groestl_8c_source.html#l03046">3046</a> of file <a class="el" href="groestl_8c_source.html">groestl.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="afbe18dd0412b3726e0ebfa3a54ce62fa"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#afbe18dd0412b3726e0ebfa3a54ce62fa">◆ </a></span>sph_groestl256_addbits_and_close()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void sph_groestl256_addbits_and_close </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>cc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned </td>
|
|
<td class="paramname"><em>ub</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned </td>
|
|
<td class="paramname"><em>n</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>dst</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Add a few additional bits (0 to 7) to the current computation, then terminate it and output the result in the provided buffer, which must be wide enough to accomodate the result (32 bytes). If bit number i in <code>ub</code> has value 2^i, then the extra bits are those numbered 7 downto 8-n (this is the big-endian convention at the byte level). The context is automatically reinitialized.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">cc</td><td>the Groestl-256 context </td></tr>
|
|
<tr><td class="paramname">ub</td><td>the extra bits </td></tr>
|
|
<tr><td class="paramname">n</td><td>the number of extra bits (0 to 7) </td></tr>
|
|
<tr><td class="paramname">dst</td><td>the destination buffer </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="groestl_8c_source.html#l03060">3060</a> of file <a class="el" href="groestl_8c_source.html">groestl.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a7f5e799b29ea2a3210d5cc4dab78dcb9"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a7f5e799b29ea2a3210d5cc4dab78dcb9">◆ </a></span>sph_groestl256_close()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void sph_groestl256_close </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>cc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>dst</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Terminate the current Groestl-256 computation and output the result into the provided buffer. The destination buffer must be wide enough to accomodate the result (32 bytes). The context is automatically reinitialized.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">cc</td><td>the Groestl-256 context </td></tr>
|
|
<tr><td class="paramname">dst</td><td>the destination buffer </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="groestl_8c_source.html#l03053">3053</a> of file <a class="el" href="groestl_8c_source.html">groestl.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa93dc9fc0715fa292d34b6ef0ed17caf"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa93dc9fc0715fa292d34b6ef0ed17caf">◆ </a></span>sph_groestl256_init()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void sph_groestl256_init </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>cc</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Initialize a Groestl-256 context. This process performs no memory allocation.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">cc</td><td>the Groestl-256 context (pointer to a <code>sph_groestl256_context</code>) </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="groestl_8c_source.html#l03039">3039</a> of file <a class="el" href="groestl_8c_source.html">groestl.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a8bc74f164d6d8821714dedf0ef3072bb"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a8bc74f164d6d8821714dedf0ef3072bb">◆ </a></span>sph_groestl384()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void sph_groestl384 </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>cc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const void * </td>
|
|
<td class="paramname"><em>data</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">size_t </td>
|
|
<td class="paramname"><em>len</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Process some data bytes. It is acceptable that <code>len</code> is zero (in which case this function does nothing).</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">cc</td><td>the Groestl-384 context </td></tr>
|
|
<tr><td class="paramname">data</td><td>the input data </td></tr>
|
|
<tr><td class="paramname">len</td><td>the input data length (in bytes) </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="groestl_8c_source.html#l03074">3074</a> of file <a class="el" href="groestl_8c_source.html">groestl.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a9e0080ba471724ad839b03c4cbc4c9b7"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a9e0080ba471724ad839b03c4cbc4c9b7">◆ </a></span>sph_groestl384_addbits_and_close()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void sph_groestl384_addbits_and_close </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>cc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned </td>
|
|
<td class="paramname"><em>ub</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned </td>
|
|
<td class="paramname"><em>n</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>dst</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Add a few additional bits (0 to 7) to the current computation, then terminate it and output the result in the provided buffer, which must be wide enough to accomodate the result (48 bytes). If bit number i in <code>ub</code> has value 2^i, then the extra bits are those numbered 7 downto 8-n (this is the big-endian convention at the byte level). The context is automatically reinitialized.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">cc</td><td>the Groestl-384 context </td></tr>
|
|
<tr><td class="paramname">ub</td><td>the extra bits </td></tr>
|
|
<tr><td class="paramname">n</td><td>the number of extra bits (0 to 7) </td></tr>
|
|
<tr><td class="paramname">dst</td><td>the destination buffer </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="groestl_8c_source.html#l03088">3088</a> of file <a class="el" href="groestl_8c_source.html">groestl.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a8e0c0327a33f3a099f8cbd122133efff"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a8e0c0327a33f3a099f8cbd122133efff">◆ </a></span>sph_groestl384_close()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void sph_groestl384_close </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>cc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>dst</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Terminate the current Groestl-384 computation and output the result into the provided buffer. The destination buffer must be wide enough to accomodate the result (48 bytes). The context is automatically reinitialized.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">cc</td><td>the Groestl-384 context </td></tr>
|
|
<tr><td class="paramname">dst</td><td>the destination buffer </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="groestl_8c_source.html#l03081">3081</a> of file <a class="el" href="groestl_8c_source.html">groestl.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ace8b77d0072242686e8ac454321632f8"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ace8b77d0072242686e8ac454321632f8">◆ </a></span>sph_groestl384_init()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void sph_groestl384_init </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>cc</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Initialize a Groestl-384 context. This process performs no memory allocation.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">cc</td><td>the Groestl-384 context (pointer to a <code>sph_groestl384_context</code>) </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="groestl_8c_source.html#l03067">3067</a> of file <a class="el" href="groestl_8c_source.html">groestl.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a6234cab162aecb29f261f0131f1aaf0b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a6234cab162aecb29f261f0131f1aaf0b">◆ </a></span>sph_groestl512()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void sph_groestl512 </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>cc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const void * </td>
|
|
<td class="paramname"><em>data</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">size_t </td>
|
|
<td class="paramname"><em>len</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Process some data bytes. It is acceptable that <code>len</code> is zero (in which case this function does nothing).</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">cc</td><td>the Groestl-512 context </td></tr>
|
|
<tr><td class="paramname">data</td><td>the input data </td></tr>
|
|
<tr><td class="paramname">len</td><td>the input data length (in bytes) </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="groestl_8c_source.html#l03102">3102</a> of file <a class="el" href="groestl_8c_source.html">groestl.c</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="hash_8h_source.html#l00283">HashX11()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a56b67fc250744506310b01cbc3249f5f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a56b67fc250744506310b01cbc3249f5f">◆ </a></span>sph_groestl512_addbits_and_close()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void sph_groestl512_addbits_and_close </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>cc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned </td>
|
|
<td class="paramname"><em>ub</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned </td>
|
|
<td class="paramname"><em>n</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>dst</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Add a few additional bits (0 to 7) to the current computation, then terminate it and output the result in the provided buffer, which must be wide enough to accomodate the result (64 bytes). If bit number i in <code>ub</code> has value 2^i, then the extra bits are those numbered 7 downto 8-n (this is the big-endian convention at the byte level). The context is automatically reinitialized.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">cc</td><td>the Groestl-512 context </td></tr>
|
|
<tr><td class="paramname">ub</td><td>the extra bits </td></tr>
|
|
<tr><td class="paramname">n</td><td>the number of extra bits (0 to 7) </td></tr>
|
|
<tr><td class="paramname">dst</td><td>the destination buffer </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="groestl_8c_source.html#l03116">3116</a> of file <a class="el" href="groestl_8c_source.html">groestl.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a4e6cdfd9e3ceefe1421d858aba818106"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a4e6cdfd9e3ceefe1421d858aba818106">◆ </a></span>sph_groestl512_close()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void sph_groestl512_close </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>cc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>dst</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Terminate the current Groestl-512 computation and output the result into the provided buffer. The destination buffer must be wide enough to accomodate the result (64 bytes). The context is automatically reinitialized.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">cc</td><td>the Groestl-512 context </td></tr>
|
|
<tr><td class="paramname">dst</td><td>the destination buffer </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="groestl_8c_source.html#l03109">3109</a> of file <a class="el" href="groestl_8c_source.html">groestl.c</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="hash_8h_source.html#l00283">HashX11()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aae8e752e52ba49c4b4d3201138db4e21"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aae8e752e52ba49c4b4d3201138db4e21">◆ </a></span>sph_groestl512_init()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void sph_groestl512_init </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>cc</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Initialize a Groestl-512 context. This process performs no memory allocation.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">cc</td><td>the Groestl-512 context (pointer to a <code>sph_groestl512_context</code>) </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="groestl_8c_source.html#l03095">3095</a> of file <a class="el" href="groestl_8c_source.html">groestl.c</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="hash_8h_source.html#l00283">HashX11()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_4261af1259721e3e39e0d2dd7354b511.html">crypto</a></li><li class="navelem"><a class="el" href="sph__groestl_8h.html">sph_groestl.h</a></li>
|
|
<li class="footer">Generated on Thu Dec 14 2017 13:15:10 for Dash Core by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|