<html> <head> <link rel="stylesheet" href="style.css" type="text/css"> <link rel="Start" href="index.html"> <link rel="previous" href="Cryptokit.Block.html"> <link rel="next" href="Cryptokit.Base64.html"> <link rel="Up" href="Cryptokit.html"> <link title="Index of types" rel=Appendix href="index_types.html"> <link title="Index of exceptions" rel=Appendix href="index_exceptions.html"> <link title="Index of values" rel=Appendix href="index_values.html"> <link title="Index of class methods" rel=Appendix href="index_methods.html"> <link title="Index of classes" rel=Appendix href="index_classes.html"> <link title="Index of class types" rel=Appendix href="index_class_types.html"> <link title="Index of modules" rel=Appendix href="index_modules.html"> <link title="Cryptokit" rel="Chapter" href="Cryptokit.html"><title>Cryptokit.Stream</title> </head> <body> <div class="navbar"><a href="Cryptokit.Block.html">Previous</a> <a href="Cryptokit.html">Up</a> <a href="Cryptokit.Base64.html">Next</a> </div> <center><h1>Module <a href="type_Cryptokit.Stream.html">Cryptokit.Stream</a></h1></center> <br> <pre><span class="keyword">module</span> Stream: <code class="code">sig</code> <a href="Cryptokit.Stream.html">..</a> <code class="code">end</code></pre>The <code class="code">Stream</code> module provides classes that implement the ARCfour stream cipher, and the wrapping of a stream cipher as a general transform. The classes can be composed in a Lego-like fashion, facilitating the integration of new stream ciphers.<br> <hr width="100%"> <pre><span class="keyword">class type</span> <a name="TYPEstream_cipher"></a><a href="Cryptokit.Stream.stream_cipher.html">stream_cipher</a> = <code class="code">object</code> <a href="Cryptokit.Stream.stream_cipher.html">..</a> <code class="code">end</code></pre><div class="info"> Abstract interface for a stream cipher. </div> <pre><span class="keyword">class</span> <a name="TYPEcipher"></a><a href="Cryptokit.Stream.cipher.html">cipher</a> : <code class="type"><a href="Cryptokit.Stream.stream_cipher.html">stream_cipher</a> -> </code><code class="type"><a href="Cryptokit.transform.html">Cryptokit.transform</a></code></pre><div class="info"> Wraps an arbitrary stream cipher as a transform. </div> <pre><span class="keyword">class</span> <a name="TYPEarcfour"></a><a href="Cryptokit.Stream.arcfour.html">arcfour</a> : <code class="type">string -> </code><code class="type"><a href="Cryptokit.Stream.stream_cipher.html">stream_cipher</a></code></pre><div class="info"> The ARCfour (``alleged RC4'') stream cipher. </div> </body></html>