Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > e8773dc1178a3ee82e29ab36424dc729 > files > 516

libbeecrypt-devel-4.2.1-6.mga1.i586.rpm

<!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"/>
<title>BeeCrypt: Block ciphers</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">BeeCrypt&#160;<span id="projectnumber">4.2.1</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#files">Files</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a>  </div>
  <div class="headertitle">
<h1>Block ciphers</h1>  </div>
</div>
<div class="contents">
<div class="dynheader">
Collaboration diagram for Block ciphers:</div>
<div class="dyncontent">
<center><table><tr><td><img src="group__BC__m.png" border="0" alt="" usemap="#group____BC____m"/>
<map name="group____BC____m" id="group____BC____m">
<area shape="rect" id="node1" href="group__PRNG__m.html" title="Pseudo&#45;Random Number Generators" alt="" coords="289,5,527,38"/><area shape="rect" id="node2" href="group__BC__blowfish__m.html" title="Block ciphers: Blowfish" alt="" coords="329,61,487,94"/><area shape="rect" id="node4" href="group__HASH__m.html" title="Hash Functions" alt="" coords="351,117,465,150"/><area shape="rect" id="node5" href="group__ES__m.html" title="Entropy sources" alt="" coords="349,173,467,206"/><area shape="rect" id="node6" href="group__HMAC__m.html" title="Keyed Hash Functions, a.k.a. Message Authentication Codes" alt="" coords="217,229,599,262"/><area shape="rect" id="node7" href="group__BC__aes__m.html" title="Block ciphers: AES" alt="" coords="340,285,476,318"/></map>
</td></tr></table></center>
</div>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structblockCipher.html">blockCipher</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Holds information and pointers to code specific to each cipher.  <a href="structblockCipher.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structblockCipherContext.html">blockCipherContext</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Holds a pointer to a blockcipher as well as its parameters.  <a href="structblockCipherContext.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="files"></a>
Files</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">file &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="aes_8h.html">aes.h</a></td></tr>

<p><tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><p>AES block cipher, as specified by NIST FIPS 197. </p>
<br/></td></tr>
</p>
<tr><td class="memItemLeft" align="right" valign="top">file &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="beecrypt_8h.html">beecrypt.h</a></td></tr>

<p><tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><p>BeeCrypt API, headers. </p>
<br/></td></tr>
</p>
<tr><td class="memItemLeft" align="right" valign="top">file &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="blockmode_8h.html">blockmode.h</a></td></tr>

<p><tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><p>Blockcipher operation modes. </p>
<br/></td></tr>
</p>
<tr><td class="memItemLeft" align="right" valign="top">file &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="blockpad_8h.html">blockpad.h</a></td></tr>

<p><tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><p>Blockcipher padding algorithms. </p>
<br/></td></tr>
</p>
<tr><td class="memItemLeft" align="right" valign="top">file &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="blowfish_8h.html">blowfish.h</a></td></tr>

<p><tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><p>Blowfish block cipher. </p>
<br/></td></tr>
</p>
<tr><td colspan="2"><h2><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__BC__m.html#ga4bb0a804ab2c38ac56120f1cd35600b3">blockCipherSetup</a> )(<a class="el" href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0">blockCipherParam</a> *, const <a class="el" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a> *, size_t, <a class="el" href="group__BC__m.html#gace10d4c0b0409d35c6a703d6445fc558">cipherOperation</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Prototype definition for a setup function.  <a href="#ga4bb0a804ab2c38ac56120f1cd35600b3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0">blockCipherParam</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Placeholder type definition for blockcipher parameters.  <a href="#gaa6f6ba122e489fd3c3923c83cb55dae0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__BC__m.html#ga40aeffa20f977393fbf10378ef466c25">blockCipherSetIV</a> )(<a class="el" href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0">blockCipherParam</a> *, const <a class="el" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a> *)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Prototype definition for an initialization vector setup function.  <a href="#ga40aeffa20f977393fbf10378ef466c25"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__BC__m.html#gae6164c8a42013a0b3aadba1bccd416af">blockCipherSetCTR</a> )(<a class="el" href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0">blockCipherParam</a> *, const <a class="el" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a> *, size_t)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Prototype definition for an initialization vector setup function.  <a href="#gae6164c8a42013a0b3aadba1bccd416af"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__BC__m.html#ga49ec3da318c2c3ab4464c8dbb38617c5">blockCipherRawcrypt</a> )(<a class="el" href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0">blockCipherParam</a> *, uint32_t *, const uint32_t *)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Prototype for a <em>raw</em> encryption or decryption function.  <a href="#ga49ec3da318c2c3ab4464c8dbb38617c5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__BC__m.html#gacc003baa6ffa4b315283282b19f081ec">blockCipherModcrypt</a> )(<a class="el" href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0">blockCipherParam</a> *, uint32_t *, const uint32_t *, unsigned int)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Prototype for a <em>encryption</em> or decryption function which operates on multiple blocks in a certain mode.  <a href="#gacc003baa6ffa4b315283282b19f081ec"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__BC__m.html#gace10d4c0b0409d35c6a703d6445fc558">cipherOperation</a> { <a class="el" href="group__BC__m.html#gace10d4c0b0409d35c6a703d6445fc558a8d67fb0581b95ff8d49840ebfaedffd4">NOCRYPT</a>, 
<a class="el" href="group__BC__m.html#gace10d4c0b0409d35c6a703d6445fc558a606f7451c00ce2831f56eceb9ab6bb96">ENCRYPT</a>, 
<a class="el" href="group__BC__m.html#gace10d4c0b0409d35c6a703d6445fc558a3179dbaa639c5906029876801dcf4e11">DECRYPT</a>
 }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><p>Specifies whether to perform encryption or decryption. </p>
 <a href="group__BC__m.html#gace10d4c0b0409d35c6a703d6445fc558">More...</a><br/></td></tr>
</table>
<hr/><h2>Typedef Documentation</h2>
<a class="anchor" id="gacc003baa6ffa4b315283282b19f081ec"></a><!-- doxytag: member="beecrypt.h::blockCipherModcrypt" ref="gacc003baa6ffa4b315283282b19f081ec" args=")(blockCipherParam *, uint32_t *, const uint32_t *, unsigned int)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* <a class="el" href="group__BC__m.html#gacc003baa6ffa4b315283282b19f081ec">blockCipherModcrypt</a>)(<a class="el" href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0">blockCipherParam</a> *bp, uint32_t *dst, const uint32_t *src, unsigned int nblocks)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Prototype for a <em>encryption</em> or decryption function which operates on multiple blocks in a certain mode. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">bp</td><td>The blockcipher's parameters. </td></tr>
    <tr><td class="paramname">dst</td><td>The ciphertext address; must be aligned on 32-bit boundary. </td></tr>
    <tr><td class="paramname">src</td><td>The cleartext address; must be aligned on 32-bit boundary. </td></tr>
    <tr><td class="paramname">nblocks</td><td>The number of blocks to process. </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Return values:</b></dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>on success. </td></tr>
    <tr><td class="paramname">-1</td><td>on failure. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaa6f6ba122e489fd3c3923c83cb55dae0"></a><!-- doxytag: member="beecrypt.h::blockCipherParam" ref="gaa6f6ba122e489fd3c3923c83cb55dae0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0">blockCipherParam</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Placeholder type definition for blockcipher parameters. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="structaesParam.html" title="Holds all the parameters necessary for the AES cipher.">aesParam</a>, <a class="el" href="structblowfishParam.html" title="Holds all the parameters necessary for the Blowfish cipher.">blowfishParam</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="ga49ec3da318c2c3ab4464c8dbb38617c5"></a><!-- doxytag: member="beecrypt.h::blockCipherRawcrypt" ref="ga49ec3da318c2c3ab4464c8dbb38617c5" args=")(blockCipherParam *, uint32_t *, const uint32_t *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* <a class="el" href="group__BC__m.html#ga49ec3da318c2c3ab4464c8dbb38617c5">blockCipherRawcrypt</a>)(<a class="el" href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0">blockCipherParam</a> *bp, uint32_t *dst, const uint32_t *src)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Prototype for a <em>raw</em> encryption or decryption function. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">bp</td><td>The blockcipher's parameters. </td></tr>
    <tr><td class="paramname">dst</td><td>The ciphertext address; must be aligned on 32-bit boundary. </td></tr>
    <tr><td class="paramname">src</td><td>The cleartext address; must be aligned on 32-bit boundary. </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Return values:</b></dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>on success. </td></tr>
    <tr><td class="paramname">-1</td><td>on failure. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gae6164c8a42013a0b3aadba1bccd416af"></a><!-- doxytag: member="beecrypt.h::blockCipherSetCTR" ref="gae6164c8a42013a0b3aadba1bccd416af" args=")(blockCipherParam *, const byte *, size_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* <a class="el" href="group__BC__m.html#gae6164c8a42013a0b3aadba1bccd416af">blockCipherSetCTR</a>)(<a class="el" href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0">blockCipherParam</a> *bp, const <a class="el" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a> *nivz, size_t counter)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Prototype definition for an initialization vector setup function. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">bp</td><td>The blockcipher's parameters. </td></tr>
    <tr><td class="paramname">nivz</td><td>The concatenation of the Nonce, IV and padding Zero bytes. </td></tr>
    <tr><td class="paramname">counter</td><td>The blockciphers' counter value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="note"><dt><b>Note:</b></dt><dd>nivz length must be equal to the cipher's block size. </dd></dl>
<dl><dt><b>Return values:</b></dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>on success. </td></tr>
    <tr><td class="paramname">-1</td><td>on failure. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga40aeffa20f977393fbf10378ef466c25"></a><!-- doxytag: member="beecrypt.h::blockCipherSetIV" ref="ga40aeffa20f977393fbf10378ef466c25" args=")(blockCipherParam *, const byte *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* <a class="el" href="group__BC__m.html#ga40aeffa20f977393fbf10378ef466c25">blockCipherSetIV</a>)(<a class="el" href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0">blockCipherParam</a> *bp, const <a class="el" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a> *iv)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Prototype definition for an initialization vector setup function. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">bp</td><td>The blockcipher's parameters. </td></tr>
    <tr><td class="paramname">iv</td><td>The blockciphers' IV value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="note"><dt><b>Note:</b></dt><dd>iv length must be equal to the cipher's block size. </dd></dl>
<dl><dt><b>Return values:</b></dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>on success. </td></tr>
    <tr><td class="paramname">-1</td><td>on failure. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga4bb0a804ab2c38ac56120f1cd35600b3"></a><!-- doxytag: member="beecrypt.h::blockCipherSetup" ref="ga4bb0a804ab2c38ac56120f1cd35600b3" args=")(blockCipherParam *, const byte *, size_t, cipherOperation)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef int(* <a class="el" href="group__BC__m.html#ga4bb0a804ab2c38ac56120f1cd35600b3">blockCipherSetup</a>)(<a class="el" href="group__BC__m.html#gaa6f6ba122e489fd3c3923c83cb55dae0">blockCipherParam</a> *, const <a class="el" href="api_8h.html#ab8ef12fab634c171394422d0ee8baf94">byte</a> *, size_t, <a class="el" href="group__BC__m.html#gace10d4c0b0409d35c6a703d6445fc558">cipherOperation</a>)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Prototype definition for a setup function. </p>

</div>
</div>
<hr/><h2>Enumeration Type Documentation</h2>
<a class="anchor" id="gace10d4c0b0409d35c6a703d6445fc558"></a><!-- doxytag: member="beecrypt.h::cipherOperation" ref="gace10d4c0b0409d35c6a703d6445fc558" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__BC__m.html#gace10d4c0b0409d35c6a703d6445fc558">cipherOperation</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Specifies whether to perform encryption or decryption. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="gace10d4c0b0409d35c6a703d6445fc558a8d67fb0581b95ff8d49840ebfaedffd4"></a><!-- doxytag: member="NOCRYPT" ref="gace10d4c0b0409d35c6a703d6445fc558a8d67fb0581b95ff8d49840ebfaedffd4" args="" -->NOCRYPT</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gace10d4c0b0409d35c6a703d6445fc558a606f7451c00ce2831f56eceb9ab6bb96"></a><!-- doxytag: member="ENCRYPT" ref="gace10d4c0b0409d35c6a703d6445fc558a606f7451c00ce2831f56eceb9ab6bb96" args="" -->ENCRYPT</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gace10d4c0b0409d35c6a703d6445fc558a3179dbaa639c5906029876801dcf4e11"></a><!-- doxytag: member="DECRYPT" ref="gace10d4c0b0409d35c6a703d6445fc558a3179dbaa639c5906029876801dcf4e11" args="" -->DECRYPT</em>&nbsp;</td><td>
</td></tr>
</table>
</dd>
</dl>

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Sun Apr 10 2011 20:49:30 for BeeCrypt by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>