Sophie

Sophie

distrib > Fedora > 13 > i386 > media > os > by-pkgid > 52a37fb77746ef557a2ec666070d732e > files > 20

bigloo-doc-3.2b-3.fc12.i686.rpm

<!-- 95% W3C COMPLIANT, 95% CSS FREE, RAW HTML -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title>BiglooA ``practical Scheme compiler''User manual for version 3.2bJune 2009</title>
 <style type="text/css">
  <!--
  pre { font-family: monospace }
  tt { font-family: monospace }
  code { font-family: monospace }
  p.flushright { text-align: right }
  p.flushleft { text-align: left }
  span.sc { font-variant: small-caps }
  span.sf { font-family: sans-serif }
  span.skribetitle { font-family: sans-serif; font-weight: bolder; font-size: x-large; }
  span.refscreen { }
  span.refprint { display: none; }
  -->
 </style>
</head>

<body class="chapter" bgcolor="#ffffff">
<table width="100%" class="skribetitle" cellspacing="0" cellpadding="0"><tbody>
<tr><td align="center" bgcolor="#8381de"><div class="skribetitle"><strong><big><big><big>15. Bigloo<br/>A ``practical Scheme compiler''<br/>User manual for version 3.2b<br/>June 2009 -- Cryptography</big></big></big></strong></div><center>
</center>
</td></tr></tbody></table>
<table cellpadding="3" cellspacing="0" width="100%" class="skribe-margins"><tr>
<td align="left" valign="top" class="skribe-left-margin" width="20%" bgcolor="#dedeff"><div class="skribe-left-margin">
<br/><center id='center28530'
><table width="97%" border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse;" frame="box" rules="none"><tbody>
<tr bgcolor="#8381de"><th id="tc28520" align="center" colspan="1"><font color="#ffffff"><strong id='bold28518'
>main page</strong></font></th></tr>
<tr bgcolor="#ffffff"><td id="tc28527" align="center" colspan="1"><table width="100%" border="0" style="border-collapse: collapse;" frame="void" rules="none"><tbody>
<tr><td id="tc28523" align="left" valign="top" colspan="1"><strong id='bold28522'
>top:</strong></td><td id="tc28524" align="right" valign="top" colspan="1"><a href="bigloo.html#Bigloo-A-``practical-Scheme-compiler''-User-manual-for-version-3.2b-June-2009" class="inbound">Bigloo<br/>A ``practical Scheme compiler''<br/>User manual for version 3.2b<br/>June 2009</a></td></tr>
</tbody></table>
</td></tr>
</tbody></table>
</center>
<br/><br/><center id='center28540'
><table width="97%" border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse;" frame="box" rules="none"><tbody>
<tr bgcolor="#8381de"><th id="tc28534" align="center" colspan="1"><font color="#ffffff"><strong id='bold28532'
>Cryptography</strong></font></th></tr>
<tr bgcolor="#ffffff"><td id="tc28537" align="center" colspan="1"><table cellspacing="1" cellpadding="1" width="100%" class="toc">
<tbody>
 <tr><td valign="top" align="left">15.1</td><td colspan="4" width="100%"><a href="bigloo-16.html#Advanced-Encryption-Standard-(AES)">Advanced Encryption Standard (AES)</a></td></tr>
</tbody>
</table>
</td></tr>
</tbody></table>
</center>
<br/><br/><center id='center28550'
><table width="97%" border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse;" frame="box" rules="none"><tbody>
<tr bgcolor="#8381de"><th id="tc28544" align="center" colspan="1"><font color="#ffffff"><strong id='bold28542'
>Chapters</strong></font></th></tr>
<tr bgcolor="#ffffff"><td id="tc28547" align="center" colspan="1"><table cellspacing="1" cellpadding="1" width="100%" class="toc">
<tbody>
 <tr><td valign="top" align="left"></td><td colspan="4" width="100%"><a href="bigloo-1.html#Acknowledgements">Acknowledgements</a></td></tr>
 <tr><td valign="top" align="left">1</td><td colspan="4" width="100%"><a href="bigloo-2.html#Table-of-contents">Table of contents</a></td></tr>
 <tr><td valign="top" align="left">2</td><td colspan="4" width="100%"><a href="bigloo-3.html#Overview-of-Bigloo">Overview of Bigloo</a></td></tr>
 <tr><td valign="top" align="left">3</td><td colspan="4" width="100%"><a href="bigloo-4.html#Modules">Modules</a></td></tr>
 <tr><td valign="top" align="left">4</td><td colspan="4" width="100%"><a href="bigloo-5.html#Core-Language">Core Language</a></td></tr>
 <tr><td valign="top" align="left">5</td><td colspan="4" width="100%"><a href="bigloo-6.html#DSSSL-support">DSSSL support</a></td></tr>
 <tr><td valign="top" align="left">6</td><td colspan="4" width="100%"><a href="bigloo-7.html#Standard-Library">Standard Library</a></td></tr>
 <tr><td valign="top" align="left">7</td><td colspan="4" width="100%"><a href="bigloo-8.html#Pattern-Matching">Pattern Matching</a></td></tr>
 <tr><td valign="top" align="left">8</td><td colspan="4" width="100%"><a href="bigloo-9.html#Fast-search">Fast search</a></td></tr>
 <tr><td valign="top" align="left">9</td><td colspan="4" width="100%"><a href="bigloo-10.html#Structures-and-Records">Structures and Records</a></td></tr>
 <tr><td valign="top" align="left">10</td><td colspan="4" width="100%"><a href="bigloo-11.html#Object-System">Object System</a></td></tr>
 <tr><td valign="top" align="left">11</td><td colspan="4" width="100%"><a href="bigloo-12.html#Regular-parsing">Regular parsing</a></td></tr>
 <tr><td valign="top" align="left">12</td><td colspan="4" width="100%"><a href="bigloo-13.html#Lalr(1)-parsing">Lalr(1) parsing</a></td></tr>
 <tr><td valign="top" align="left">13</td><td colspan="4" width="100%"><a href="bigloo-14.html#Posix-Regular-Expressions">Posix Regular Expressions</a></td></tr>
 <tr><td valign="top" align="left">14</td><td colspan="4" width="100%"><a href="bigloo-15.html#Command-Line-Parsing">Command Line Parsing</a></td></tr>
 <tr><td valign="top" align="left">15</td><td colspan="4" width="100%"><a href="bigloo-16.html#Cryptography">Cryptography</a></td></tr>
 <tr><td valign="top" align="left">16</td><td colspan="4" width="100%"><a href="bigloo-17.html#Errors-Assertions-and-Traces">Errors, Assertions, and Traces</a></td></tr>
 <tr><td valign="top" align="left">17</td><td colspan="4" width="100%"><a href="bigloo-18.html#Threads">Threads</a></td></tr>
 <tr><td valign="top" align="left">18</td><td colspan="4" width="100%"><a href="bigloo-19.html#Database-library">Database library</a></td></tr>
 <tr><td valign="top" align="left">19</td><td colspan="4" width="100%"><a href="bigloo-20.html#Multimedia-library">Multimedia library</a></td></tr>
 <tr><td valign="top" align="left">20</td><td colspan="4" width="100%"><a href="bigloo-21.html#Mail-library">Mail library</a></td></tr>
 <tr><td valign="top" align="left">21</td><td colspan="4" width="100%"><a href="bigloo-22.html#Eval-and-code-interpretation">Eval and code interpretation</a></td></tr>
 <tr><td valign="top" align="left">22</td><td colspan="4" width="100%"><a href="bigloo-23.html#Macro-expansion">Macro expansion</a></td></tr>
 <tr><td valign="top" align="left">23</td><td colspan="4" width="100%"><a href="bigloo-24.html#Parameters">Parameters</a></td></tr>
 <tr><td valign="top" align="left">24</td><td colspan="4" width="100%"><a href="bigloo-25.html#Explicit-typing">Explicit typing</a></td></tr>
 <tr><td valign="top" align="left">25</td><td colspan="4" width="100%"><a href="bigloo-26.html#The-C-interface">The C interface</a></td></tr>
 <tr><td valign="top" align="left">26</td><td colspan="4" width="100%"><a href="bigloo-27.html#The-Java-interface">The Java interface</a></td></tr>
 <tr><td valign="top" align="left">27</td><td colspan="4" width="100%"><a href="bigloo-28.html#Bigloo-Libraries">Bigloo Libraries</a></td></tr>
 <tr><td valign="top" align="left">28</td><td colspan="4" width="100%"><a href="bigloo-29.html#Extending-the-Runtime-System">Extending the Runtime System</a></td></tr>
 <tr><td valign="top" align="left">29</td><td colspan="4" width="100%"><a href="bigloo-30.html#SRFIs">SRFIs</a></td></tr>
 <tr><td valign="top" align="left">30</td><td colspan="4" width="100%"><a href="bigloo-31.html#Compiler-description">Compiler description</a></td></tr>
 <tr><td valign="top" align="left">31</td><td colspan="4" width="100%"><a href="bigloo-32.html#User-Extensions">User Extensions</a></td></tr>
 <tr><td valign="top" align="left">32</td><td colspan="4" width="100%"><a href="bigloo-33.html#Bigloo-Development-Environment">Bigloo Development Environment</a></td></tr>
 <tr><td valign="top" align="left">33</td><td colspan="4" width="100%"><a href="bigloo-34.html#Global-Index">Global Index</a></td></tr>
 <tr><td valign="top" align="left">34</td><td colspan="4" width="100%"><a href="bigloo-35.html#Library-Index">Library Index</a></td></tr>
 <tr><td valign="top" align="left"></td><td colspan="4" width="100%"><a href="bigloo-36.html#Bibliography">Bibliography</a></td></tr>
</tbody>
</table>
</td></tr>
</tbody></table>
</center>
</div></td>
<td align="left" valign="top" class="skribe-body"><div class="skribe-body">
<a name="Cryptography" class="mark"></a><a name="g17568" class="mark"></a>
Bigloo provides several functions for encrypting and decrypting documents.
These are described in the chapter.<br/><br/><!-- Advanced Encryption Standard (AES) -->
<a name="Advanced-Encryption-Standard-(AES)"></a>
<div class="section-atitle"><table width="100%"><tr><td bgcolor="#dedeff"><h3><font color="black">15.1 Advanced Encryption Standard (AES)</font>
</h3></td></tr></table>
</div><div class="section">

Bigloo support the symmetric AES crypto-system (also known as Rijndael) in
<em id='emph17571'
>Counter</em> mode. <br/><br/><table cellspacing="0" class="frame" cellpadding="10" border="1" width="100%"><tbody>
<tr><td><a name="g17574" class="mark"></a><a name="aes-ctr-encrypt" class="mark"></a><table width="100%" style="border-collapse: collapse;" frame="void" rules="none"><tbody>
<tr><td id="tc17578" align="left" colspan="1"><strong id='bold17576'
>aes-ctr-encrypt</strong><em id='it17577'
> text password [nbits 128]</em></td><td id="tc17579" align="right" colspan="1">bigloo procedure</td></tr>
</tbody></table>
<a name="g17583" class="mark"></a><a name="aes-ctr-encrypt-mmap" class="mark"></a><table width="100%" style="border-collapse: collapse;" frame="void" rules="none"><tbody>
<tr><td id="tc17587" align="left" colspan="1"><strong id='bold17585'
>aes-ctr-encrypt-mmap</strong><em id='it17586'
> mmap password [nbits 128]</em></td><td id="tc17588" align="right" colspan="1">bigloo procedure</td></tr>
</tbody></table>
<a name="g17592" class="mark"></a><a name="aes-ctr-encrypt-string" class="mark"></a><table width="100%" style="border-collapse: collapse;" frame="void" rules="none"><tbody>
<tr><td id="tc17596" align="left" colspan="1"><strong id='bold17594'
>aes-ctr-encrypt-string</strong><em id='it17595'
> string password [nbits 128]</em></td><td id="tc17597" align="right" colspan="1">bigloo procedure</td></tr>
</tbody></table>
<a name="g17601" class="mark"></a><a name="aes-ctr-encrypt-port" class="mark"></a><table width="100%" style="border-collapse: collapse;" frame="void" rules="none"><tbody>
<tr><td id="tc17605" align="left" colspan="1"><strong id='bold17603'
>aes-ctr-encrypt-port</strong><em id='it17604'
> iport password [nbits 128]</em></td><td id="tc17606" align="right" colspan="1">bigloo procedure</td></tr>
</tbody></table>
<a name="g17610" class="mark"></a><a name="aes-ctr-encrypt-file" class="mark"></a><table width="100%" style="border-collapse: collapse;" frame="void" rules="none"><tbody>
<tr><td id="tc17614" align="left" colspan="1"><strong id='bold17612'
>aes-ctr-encrypt-file</strong><em id='it17613'
> filename password [nbits 128]</em></td><td id="tc17615" align="right" colspan="1">bigloo procedure</td></tr>
</tbody></table>
The function <code id='code17618'
>aes-ctr-encrypt</code> encrypts its parameter into a string
that is the result of the function. The argument <code id='code17620'
><em id='it17619'
>text</em></code> is either a
string, a memory mapped area, an input-port, or a file name. The argument
<code id='code17622'
><em id='it17621'
>password</em></code> is a string containing the password used for encrypting
the text. The optional argument <code id='code17624'
><em id='it17623'
>nbits</em></code> must either be <code id='code17625'
>128</code>,
<code id='code17626'
>192</code>, or <code id='code17627'
>256</code>.
</td></tr>
</tbody></table><br/>
<table cellspacing="0" class="frame" cellpadding="10" border="1" width="100%"><tbody>
<tr><td><a name="g17631" class="mark"></a><a name="aes-ctr-decrypt" class="mark"></a><table width="100%" style="border-collapse: collapse;" frame="void" rules="none"><tbody>
<tr><td id="tc17635" align="left" colspan="1"><strong id='bold17633'
>aes-ctr-decrypt</strong><em id='it17634'
> text password [nbits 128]</em></td><td id="tc17636" align="right" colspan="1">bigloo procedure</td></tr>
</tbody></table>
<a name="g17640" class="mark"></a><a name="aes-ctr-decrypt-mmap" class="mark"></a><table width="100%" style="border-collapse: collapse;" frame="void" rules="none"><tbody>
<tr><td id="tc17644" align="left" colspan="1"><strong id='bold17642'
>aes-ctr-decrypt-mmap</strong><em id='it17643'
> mmap password [nbits 128]</em></td><td id="tc17645" align="right" colspan="1">bigloo procedure</td></tr>
</tbody></table>
<a name="g17649" class="mark"></a><a name="aes-ctr-decrypt-string" class="mark"></a><table width="100%" style="border-collapse: collapse;" frame="void" rules="none"><tbody>
<tr><td id="tc17653" align="left" colspan="1"><strong id='bold17651'
>aes-ctr-decrypt-string</strong><em id='it17652'
> string password [nbits 128]</em></td><td id="tc17654" align="right" colspan="1">bigloo procedure</td></tr>
</tbody></table>
<a name="g17658" class="mark"></a><a name="aes-ctr-decrypt-port" class="mark"></a><table width="100%" style="border-collapse: collapse;" frame="void" rules="none"><tbody>
<tr><td id="tc17662" align="left" colspan="1"><strong id='bold17660'
>aes-ctr-decrypt-port</strong><em id='it17661'
> iport password [nbits 128]</em></td><td id="tc17663" align="right" colspan="1">bigloo procedure</td></tr>
</tbody></table>
<a name="g17667" class="mark"></a><a name="aes-ctr-decrypt-file" class="mark"></a><table width="100%" style="border-collapse: collapse;" frame="void" rules="none"><tbody>
<tr><td id="tc17671" align="left" colspan="1"><strong id='bold17669'
>aes-ctr-decrypt-file</strong><em id='it17670'
> filename password [nbits 128]</em></td><td id="tc17672" align="right" colspan="1">bigloo procedure</td></tr>
</tbody></table>
The function <code id='code17675'
>aes-ctr-decrypt</code> decrypts a text previously encrypted with
<code id='code17676'
>aes-ctr-encrypt</code>.
</td></tr>
</tbody></table><br/>


</div><br>
</div></td>
</tr></table><div class="skribe-ending">
<hr> 
<p class="ending" id='paragraph28556'
><font size="-1">
This <span class="sc">Html</span> page has been produced by 
<a href="http://www.inria.fr/mimosa/fp/Skribe" class="http">Skribe</a>.
<br/>
Last update <em id='it28554'
>Tue Jun  2 11:43:27 2009</em>.</font></p></div>
</body>
</html>