<html> <head> <link rel="stylesheet" href="style.css" type="text/css"> <link rel="Start" href="index.html"> <link rel="next" href="Cryptokit.Block.cipher_padded_encrypt.html"> <link rel="Up" href="Cryptokit.Block.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.Block.cipher</title> </head> <body> <div class="navbar"> <a href="Cryptokit.Block.html">Up</a> <a href="Cryptokit.Block.cipher_padded_encrypt.html">Next</a> </div> <center><h1>Class <a href="type_Cryptokit.Block.cipher.html">Cryptokit.Block.cipher</a></h1></center> <br> <pre><span class="keyword">class</span> <a name="TYPEcipher"></a>cipher : <code class="type"><a href="Cryptokit.Block.block_cipher.html">block_cipher</a> -> </code><code class="type"><a href="Cryptokit.transform.html">Cryptokit.transform</a></code></pre>Wraps a block cipher as a general transform. The transform has input block size and output block size equal to the block size of the block cipher. No padding is performed. Example: <code class="code">new cipher (new cbc_encrypt (new aes_encrypt key))</code> returns a transform that performs AES encryption in CBC mode.<br> <hr width="100%"> </body></html>