/usr/share/doc/libghc-hsopenssl-doc/html/OpenSSL-Cipher.html is in libghc-hsopenssl-doc 0.11.1.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <!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/html; charset=UTF-8" /><title>OpenSSL.Cipher</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_OpenSSL-Cipher.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/OpenSSL-Cipher.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">HsOpenSSL-0.11.1.1: Partial OpenSSL binding for Haskell</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">OpenSSL.Cipher</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module interfaces to some of the OpenSSL ciphers without using
EVP (see OpenSSL.EVP.Cipher). The EVP ciphers are easier to use,
however, in some cases you cannot do without using the OpenSSL
fuctions directly.</p><p>One of these cases (and the motivating example
for this module) is that the EVP CBC functions try to encode the
length of the input string in the output (thus hiding the fact that the
cipher is, in fact, block based and needs padding). This means that the
EVP CBC functions cannot, in some cases, interface with other users
which don't use that system (like SSH).</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:Mode">Mode</a><ul class="subs"><li>= <a href="#v:Encrypt">Encrypt</a></li><li>| <a href="#v:Decrypt">Decrypt</a></li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:AESCtx">AESCtx</a></li><li class="src short"><a href="#v:newAESCtx">newAESCtx</a> :: <a href="OpenSSL-Cipher.html#t:Mode">Mode</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="OpenSSL-Cipher.html#t:AESCtx">AESCtx</a></li><li class="src short"><a href="#v:aesCBC">aesCBC</a> :: <a href="OpenSSL-Cipher.html#t:AESCtx">AESCtx</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:aesCTR">aesCTR</a> :: <a href="OpenSSL-Cipher.html#t:AESCtx">AESCtx</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Mode" class="def">Mode</a> <a href="src/OpenSSL-Cipher.html#Mode" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Encrypt" class="def">Encrypt</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Decrypt" class="def">Decrypt</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Mode" class="caption collapser" onclick="toggleSection('i:Mode')">Instances</p><div id="section.i:Mode" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="OpenSSL-Cipher.html#t:Mode">Mode</a></span> <a href="src/OpenSSL-Cipher.html#line-31" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="OpenSSL-Cipher.html#t:Mode">Mode</a></span> <a href="src/OpenSSL-Cipher.html#line-31" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:AESCtx" class="def">AESCtx</a> <a href="src/OpenSSL-Cipher.html#AESCtx" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:newAESCtx" class="def">newAESCtx</a> <a href="src/OpenSSL-Cipher.html#newAESCtx" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="OpenSSL-Cipher.html#t:Mode">Mode</a></td><td class="doc"><p>For CTR mode, this must always be Encrypt</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>Key: 128, 192 or 256 bits long</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>IV: 16 bytes long</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="OpenSSL-Cipher.html#t:AESCtx">AESCtx</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Construct a new context which holds the key schedule and IV.</p></div></div><div class="top"><p class="src"><a name="v:aesCBC" class="def">aesCBC</a> <a href="src/OpenSSL-Cipher.html#aesCBC" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="OpenSSL-Cipher.html#t:AESCtx">AESCtx</a></td><td class="doc"><p>context</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>input, must be multiple of block size (16 bytes)</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Encrypt some number of blocks using CBC. This is an IO function because
the context is destructivly updated.</p></div></div><div class="top"><p class="src"><a name="v:aesCTR" class="def">aesCTR</a> <a href="src/OpenSSL-Cipher.html#aesCTR" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="OpenSSL-Cipher.html#t:AESCtx">AESCtx</a></td><td class="doc"><p>context</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>input, any number of bytes</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Encrypt some number of bytes using CTR mode. This is an IO function
because the context is destructivly updated.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>
|