<html> <head> <link rel="stylesheet" href="style.css" type="text/css"> <link rel="Start" href="index.html"> <link rel="Up" href="Cryptokit.Stream.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.stream_cipher</title> </head> <body> <div class="navbar"> <a href="Cryptokit.Stream.html">Up</a> </div> <center><h1>Class type <a href="type_Cryptokit.Stream.stream_cipher.html">Cryptokit.Stream.stream_cipher</a></h1></center> <br> <pre><span class="keyword">class type</span> <a name="TYPEstream_cipher"></a>stream_cipher = <code class="code">object</code> <a href="Cryptokit.Stream.stream_cipher.html">..</a> <code class="code">end</code></pre>Abstract interface for a stream cipher.<br> <hr width="100%"> <pre><span class="keyword">method</span> <a name="METHODtransform"></a>transform : <code class="type">string -> int -> string -> int -> int -> unit</code></pre><div class="info"> <code class="code">transform src spos dst dpos len</code> encrypts or decrypts <code class="code">len</code> characters, read from string <code class="code">src</code> starting at position <code class="code">spos</code>. The resulting <code class="code">len</code> characters are stored in string <code class="code">dst</code> starting at position <code class="code">dpos</code>.<br> </div> <pre><span class="keyword">method</span> <a name="METHODwipe"></a>wipe : <code class="type">unit</code></pre><div class="info"> Erase the internal state of the stream cipher, such as all key-dependent material.<br> </div> </body></html>