/usr/share/doc/libghc-cipher-rc4-doc/html/Crypto-Cipher-RC4.html is in libghc-cipher-rc4-doc 0.1.4-7.
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 | <!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>Crypto.Cipher.RC4</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Crypto-Cipher-RC4.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Crypto-Cipher-RC4.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">cipher-rc4-0.1.4: Fast RC4 cipher implementation</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>License</th><td>BSD-style</td></tr><tr><th>Maintainer</th><td>Vincent Hanquez <vincent@snarc.org></td></tr><tr><th>Stability</th><td>stable</td></tr><tr><th>Portability</th><td>Good</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Crypto.Cipher.RC4</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">deprecated types</a></li><li><a href="#g:2">deprecated functions, use crypto-cipher-types StreamCipher function</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Simple implementation of the RC4 stream cipher.
<a href="http://en.wikipedia.org/wiki/RC4">http://en.wikipedia.org/wiki/RC4</a></p><p>Initial FFI implementation by Peter White <a href="peter@janrain.com">peter@janrain.com</a></p><p>Reorganized and simplified to have an opaque context.</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:RC4">RC4</a></li><li class="src short"><span class="keyword">newtype</span> <a href="#t:Ctx">Ctx</a> = <a href="#v:Ctx">Ctx</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:initCtx">initCtx</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a></li><li class="src short"><a href="#v:generate">generate</a> :: <a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> (<a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a>)</li><li class="src short"><a href="#v:combine">combine</a> :: <a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -> (<a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a>)</li><li class="src short"><a href="#v:encrypt">encrypt</a> :: <a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -> (<a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a>)</li><li class="src short"><a href="#v:decrypt">decrypt</a> :: <a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -> (<a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/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 id="t:RC4" class="def">RC4</a> <a href="src/Crypto-Cipher-RC4.html#RC4" class="link">Source</a> <a href="#t:RC4" class="selflink">#</a></p><div class="doc"><p>RC4 Stream cipher</p></div><div class="subs instances"><p id="control.i:RC4" class="caption collapser" onclick="toggleSection('i:RC4')">Instances</p><div id="section.i:RC4" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:RC4:Byteable:1" class="instance expander" onclick="toggleSection('i:id:RC4:Byteable:1')"></span> <a href="file:///usr/share/doc/libghc-byteable-doc/html/Data-Byteable.html#t:Byteable">Byteable</a> <a href="Crypto-Cipher-RC4.html#t:RC4">RC4</a></span> <a href="src/Crypto-Cipher-RC4.html#line-51" class="link">Source</a> <a href="#t:RC4" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:RC4:Byteable:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toBytes">toBytes</a> :: <a href="Crypto-Cipher-RC4.html#t:RC4">RC4</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> <a href="#v:toBytes" class="selflink">#</a></p><p class="src"><a href="#v:byteableLength">byteableLength</a> :: <a href="Crypto-Cipher-RC4.html#t:RC4">RC4</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="#v:byteableLength" class="selflink">#</a></p><p class="src"><a href="#v:withBytePtr">withBytePtr</a> :: <a href="Crypto-Cipher-RC4.html#t:RC4">RC4</a> -> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> b) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> b <a href="#v:withBytePtr" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:RC4:StreamCipher:2" class="instance expander" onclick="toggleSection('i:id:RC4:StreamCipher:2')"></span> <a href="file:///usr/share/doc/libghc-crypto-cipher-types-doc/html/Crypto-Cipher-Types.html#t:StreamCipher">StreamCipher</a> <a href="Crypto-Cipher-RC4.html#t:RC4">RC4</a></span> <a href="src/Crypto-Cipher-RC4.html#line-59" class="link">Source</a> <a href="#t:RC4" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:RC4:StreamCipher:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:streamCombine">streamCombine</a> :: <a href="Crypto-Cipher-RC4.html#t:RC4">RC4</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="Crypto-Cipher-RC4.html#t:RC4">RC4</a>) <a href="#v:streamCombine" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:RC4:Cipher:3" class="instance expander" onclick="toggleSection('i:id:RC4:Cipher:3')"></span> <a href="file:///usr/share/doc/libghc-crypto-cipher-types-doc/html/Crypto-Cipher-Types.html#t:Cipher">Cipher</a> <a href="Crypto-Cipher-RC4.html#t:RC4">RC4</a></span> <a href="src/Crypto-Cipher-RC4.html#line-54" class="link">Source</a> <a href="#t:RC4" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:RC4:Cipher:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:cipherInit">cipherInit</a> :: <a href="file:///usr/share/doc/libghc-crypto-cipher-types-doc/html/Crypto-Cipher-Types.html#t:Key">Key</a> <a href="Crypto-Cipher-RC4.html#t:RC4">RC4</a> -> <a href="Crypto-Cipher-RC4.html#t:RC4">RC4</a> <a href="#v:cipherInit" class="selflink">#</a></p><p class="src"><a href="#v:cipherName">cipherName</a> :: <a href="Crypto-Cipher-RC4.html#t:RC4">RC4</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="#v:cipherName" class="selflink">#</a></p><p class="src"><a href="#v:cipherKeySize">cipherKeySize</a> :: <a href="Crypto-Cipher-RC4.html#t:RC4">RC4</a> -> <a href="file:///usr/share/doc/libghc-crypto-cipher-types-doc/html/Crypto-Cipher-Types.html#t:KeySizeSpecifier">KeySizeSpecifier</a> <a href="#v:cipherKeySize" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><h1 id="g:1">deprecated types</h1><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:Ctx" class="def">Ctx</a> <a href="src/Crypto-Cipher-RC4.html#Ctx" class="link">Source</a> <a href="#t:Ctx" class="selflink">#</a></p><div class="doc"><p>The encryption context for RC4</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Ctx" class="def">Ctx</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Ctx" class="caption collapser" onclick="toggleSection('i:Ctx')">Instances</p><div id="section.i:Ctx" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Ctx:Show:1" class="instance expander" onclick="toggleSection('i:id:Ctx:Show:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:Show">Show</a> <a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a></span> <a href="src/Crypto-Cipher-RC4.html#line-65" class="link">Source</a> <a href="#t:Ctx" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Ctx:Show:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> <a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><h1 id="g:2">deprecated functions, use crypto-cipher-types StreamCipher function</h1><div class="top"><p class="src"><a id="v:initCtx" class="def">initCtx</a> <a href="src/Crypto-Cipher-RC4.html#initCtx" class="link">Source</a> <a href="#v:initCtx" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>The key</p></td></tr><tr><td class="src">-> <a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a></td><td class="doc"><p>The RC4 context with the key mixed in</p></td></tr></table></div><div class="doc"><p>RC4 context initialization.</p><p>seed the context with an initial key. the key size need to be
adequate otherwise security takes a hit.</p></div></div><div class="top"><p class="src"><a id="v:generate" class="def">generate</a> :: <a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> (<a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a>) <a href="src/Crypto-Cipher-RC4.html#generate" class="link">Source</a> <a href="#v:generate" class="selflink">#</a></p><div class="doc"><p>generate the next len bytes of the rc4 stream without combining
it to anything.</p></div></div><div class="top"><p class="src"><a id="v:combine" class="def">combine</a> <a href="src/Crypto-Cipher-RC4.html#combine" class="link">Source</a> <a href="#v:combine" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a></td><td class="doc"><p>rc4 context</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>input</p></td></tr><tr><td class="src">-> (<a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a>)</td><td class="doc"><p>new rc4 context, and the output</p></td></tr></table></div><div class="doc"><p>RC4 xor combination of the rc4 stream with an input</p></div></div><div class="top"><p class="src"><a id="v:encrypt" class="def">encrypt</a> :: <a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -> (<a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a>) <a href="src/Crypto-Cipher-RC4.html#encrypt" class="link">Source</a> <a href="#v:encrypt" class="selflink">#</a></p><div class="doc"><div class="warning"><p>Deprecated: use combine instead</p></div></div></div><div class="top"><p class="src"><a id="v:decrypt" class="def">decrypt</a> :: <a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -> (<a href="Crypto-Cipher-RC4.html#t:Ctx">Ctx</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a>) <a href="src/Crypto-Cipher-RC4.html#decrypt" class="link">Source</a> <a href="#v:decrypt" class="selflink">#</a></p><div class="doc"><div class="warning"><p>Deprecated: use combine instead</p></div></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.2</p></div></body></html>
|