This file is indexed.

/usr/share/doc/libghc-cryptonite-doc/html/Crypto-MAC-Poly1305.html is in libghc-cryptonite-doc 0.20-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

1
2
3
4
<!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.MAC.Poly1305</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-MAC-Poly1305.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Crypto-MAC-Poly1305.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">cryptonite-0.20: Cryptography Primitives sink</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 &lt;vincent@snarc.org&gt;</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Portability</th><td>unknown</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Crypto.MAC.Poly1305</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Incremental MAC Functions</a></li><li><a href="#g:2">One-pass MAC function</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Poly1305 implementation</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">type</span> <a href="#t:Ctx">Ctx</a> = <a href="Crypto-MAC-Poly1305.html#t:State">State</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:State">State</a></li><li class="src short"><span class="keyword">newtype</span> <a href="#t:Auth">Auth</a> = <a href="#v:Auth">Auth</a> <a href="file:///usr/share/doc/libghc-memory-doc/html/Data-ByteArray.html#t:Bytes">Bytes</a></li><li class="src short"><a href="#v:authTag">authTag</a> :: <a href="file:///usr/share/doc/libghc-memory-doc/html/Data-ByteArray.html#t:ByteArrayAccess">ByteArrayAccess</a> b =&gt; b -&gt; <a href="Crypto-Error.html#t:CryptoFailable">CryptoFailable</a> <a href="Crypto-MAC-Poly1305.html#t:Auth">Auth</a></li><li class="src short"><a href="#v:initialize">initialize</a> :: <a href="file:///usr/share/doc/libghc-memory-doc/html/Data-ByteArray.html#t:ByteArrayAccess">ByteArrayAccess</a> key =&gt; key -&gt; <a href="Crypto-Error.html#t:CryptoFailable">CryptoFailable</a> <a href="Crypto-MAC-Poly1305.html#t:State">State</a></li><li class="src short"><a href="#v:update">update</a> :: <a href="file:///usr/share/doc/libghc-memory-doc/html/Data-ByteArray.html#t:ByteArrayAccess">ByteArrayAccess</a> ba =&gt; <a href="Crypto-MAC-Poly1305.html#t:State">State</a> -&gt; ba -&gt; <a href="Crypto-MAC-Poly1305.html#t:State">State</a></li><li class="src short"><a href="#v:updates">updates</a> :: <a href="file:///usr/share/doc/libghc-memory-doc/html/Data-ByteArray.html#t:ByteArrayAccess">ByteArrayAccess</a> ba =&gt; <a href="Crypto-MAC-Poly1305.html#t:State">State</a> -&gt; [ba] -&gt; <a href="Crypto-MAC-Poly1305.html#t:State">State</a></li><li class="src short"><a href="#v:finalize">finalize</a> :: <a href="Crypto-MAC-Poly1305.html#t:State">State</a> -&gt; <a href="Crypto-MAC-Poly1305.html#t:Auth">Auth</a></li><li class="src short"><a href="#v:auth">auth</a> :: (<a href="file:///usr/share/doc/libghc-memory-doc/html/Data-ByteArray.html#t:ByteArrayAccess">ByteArrayAccess</a> key, <a href="file:///usr/share/doc/libghc-memory-doc/html/Data-ByteArray.html#t:ByteArrayAccess">ByteArrayAccess</a> ba) =&gt; key -&gt; ba -&gt; <a href="Crypto-MAC-Poly1305.html#t:Auth">Auth</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:Ctx" class="def">Ctx</a> = <a href="Crypto-MAC-Poly1305.html#t:State">State</a> <a href="src/Crypto-MAC-Poly1305.html#Ctx" class="link">Source</a> <a href="#t:Ctx" class="selflink">#</a></p><div class="doc"><div class="warning"><p>Deprecated: use Poly1305 State instead</p></div><p>Poly1305 State. use State instead of Ctx</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:State" class="def">State</a> <a href="src/Crypto-MAC-Poly1305.html#State" class="link">Source</a> <a href="#t:State" class="selflink">#</a></p><div class="doc"><p>Poly1305 State</p></div><div class="subs instances"><p id="control.i:State" class="caption collapser" onclick="toggleSection('i:State')">Instances</p><div id="section.i:State" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:State:ByteArrayAccess:1" class="instance expander" onclick="toggleSection('i:id:State:ByteArrayAccess:1')"></span> <a href="file:///usr/share/doc/libghc-memory-doc/html/Data-ByteArray.html#t:ByteArrayAccess">ByteArrayAccess</a> <a href="Crypto-MAC-Poly1305.html#t:State">State</a></span> <a href="src/Crypto-MAC-Poly1305.html#line-37" class="link">Source</a> <a href="#t:State" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:State:ByteArrayAccess:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:length">length</a> :: <a href="Crypto-MAC-Poly1305.html#t:State">State</a> -&gt; <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:length" class="selflink">#</a></p><p class="src"><a href="#v:withByteArray">withByteArray</a> :: <a href="Crypto-MAC-Poly1305.html#t:State">State</a> -&gt; (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> p -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> a) -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> a <a href="#v:withByteArray" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:Auth" class="def">Auth</a> <a href="src/Crypto-MAC-Poly1305.html#Auth" class="link">Source</a> <a href="#t:Auth" class="selflink">#</a></p><div class="doc"><p>Poly1305 Auth</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Auth" class="def">Auth</a> <a href="file:///usr/share/doc/libghc-memory-doc/html/Data-ByteArray.html#t:Bytes">Bytes</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:Auth" class="caption collapser" onclick="toggleSection('i:Auth')">Instances</p><div id="section.i:Auth" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Auth:Eq:1" class="instance expander" onclick="toggleSection('i:id:Auth:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Crypto-MAC-Poly1305.html#t:Auth">Auth</a></span> <a href="src/Crypto-MAC-Poly1305.html#line-52" class="link">Source</a> <a href="#t:Auth" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Auth:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Crypto-MAC-Poly1305.html#t:Auth">Auth</a> -&gt; <a href="Crypto-MAC-Poly1305.html#t:Auth">Auth</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Crypto-MAC-Poly1305.html#t:Auth">Auth</a> -&gt; <a href="Crypto-MAC-Poly1305.html#t:Auth">Auth</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Auth:NFData:2" class="instance expander" onclick="toggleSection('i:id:Auth:NFData:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/deepseq-1.4.2.0/Control-DeepSeq.html#t:NFData">NFData</a> <a href="Crypto-MAC-Poly1305.html#t:Auth">Auth</a></span> <a href="src/Crypto-MAC-Poly1305.html#line-45" class="link">Source</a> <a href="#t:Auth" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Auth:NFData:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:rnf">rnf</a> :: <a href="Crypto-MAC-Poly1305.html#t:Auth">Auth</a> -&gt; () <a href="#v:rnf" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Auth:ByteArrayAccess:3" class="instance expander" onclick="toggleSection('i:id:Auth:ByteArrayAccess:3')"></span> <a href="file:///usr/share/doc/libghc-memory-doc/html/Data-ByteArray.html#t:ByteArrayAccess">ByteArrayAccess</a> <a href="Crypto-MAC-Poly1305.html#t:Auth">Auth</a></span> <a href="src/Crypto-MAC-Poly1305.html#line-45" class="link">Source</a> <a href="#t:Auth" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Auth:ByteArrayAccess:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:length">length</a> :: <a href="Crypto-MAC-Poly1305.html#t:Auth">Auth</a> -&gt; <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:length" class="selflink">#</a></p><p class="src"><a href="#v:withByteArray">withByteArray</a> :: <a href="Crypto-MAC-Poly1305.html#t:Auth">Auth</a> -&gt; (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> p -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> a) -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> a <a href="#v:withByteArray" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:authTag" class="def">authTag</a> :: <a href="file:///usr/share/doc/libghc-memory-doc/html/Data-ByteArray.html#t:ByteArrayAccess">ByteArrayAccess</a> b =&gt; b -&gt; <a href="Crypto-Error.html#t:CryptoFailable">CryptoFailable</a> <a href="Crypto-MAC-Poly1305.html#t:Auth">Auth</a> <a href="src/Crypto-MAC-Poly1305.html#authTag" class="link">Source</a> <a href="#v:authTag" class="selflink">#</a></p></div><h1 id="g:1">Incremental MAC Functions</h1><div class="top"><p class="src"><a id="v:initialize" class="def">initialize</a> :: <a href="file:///usr/share/doc/libghc-memory-doc/html/Data-ByteArray.html#t:ByteArrayAccess">ByteArrayAccess</a> key =&gt; key -&gt; <a href="Crypto-Error.html#t:CryptoFailable">CryptoFailable</a> <a href="Crypto-MAC-Poly1305.html#t:State">State</a> <a href="src/Crypto-MAC-Poly1305.html#initialize" class="link">Source</a> <a href="#v:initialize" class="selflink">#</a></p><div class="doc"><p>initialize a Poly1305 context</p></div></div><div class="top"><p class="src"><a id="v:update" class="def">update</a> :: <a href="file:///usr/share/doc/libghc-memory-doc/html/Data-ByteArray.html#t:ByteArrayAccess">ByteArrayAccess</a> ba =&gt; <a href="Crypto-MAC-Poly1305.html#t:State">State</a> -&gt; ba -&gt; <a href="Crypto-MAC-Poly1305.html#t:State">State</a> <a href="src/Crypto-MAC-Poly1305.html#update" class="link">Source</a> <a href="#v:update" class="selflink">#</a></p><div class="doc"><p>update a context with a bytestring</p></div></div><div class="top"><p class="src"><a id="v:updates" class="def">updates</a> :: <a href="file:///usr/share/doc/libghc-memory-doc/html/Data-ByteArray.html#t:ByteArrayAccess">ByteArrayAccess</a> ba =&gt; <a href="Crypto-MAC-Poly1305.html#t:State">State</a> -&gt; [ba] -&gt; <a href="Crypto-MAC-Poly1305.html#t:State">State</a> <a href="src/Crypto-MAC-Poly1305.html#updates" class="link">Source</a> <a href="#v:updates" class="selflink">#</a></p><div class="doc"><p>updates a context with multiples bytestring</p></div></div><div class="top"><p class="src"><a id="v:finalize" class="def">finalize</a> :: <a href="Crypto-MAC-Poly1305.html#t:State">State</a> -&gt; <a href="Crypto-MAC-Poly1305.html#t:Auth">Auth</a> <a href="src/Crypto-MAC-Poly1305.html#finalize" class="link">Source</a> <a href="#v:finalize" class="selflink">#</a></p><div class="doc"><p>finalize the context into a digest bytestring</p></div></div><h1 id="g:2">One-pass MAC function</h1><div class="top"><p class="src"><a id="v:auth" class="def">auth</a> :: (<a href="file:///usr/share/doc/libghc-memory-doc/html/Data-ByteArray.html#t:ByteArrayAccess">ByteArrayAccess</a> key, <a href="file:///usr/share/doc/libghc-memory-doc/html/Data-ByteArray.html#t:ByteArrayAccess">ByteArrayAccess</a> ba) =&gt; key -&gt; ba -&gt; <a href="Crypto-MAC-Poly1305.html#t:Auth">Auth</a> <a href="src/Crypto-MAC-Poly1305.html#auth" class="link">Source</a> <a href="#v:auth" class="selflink">#</a></p><div class="doc"><p>One-pass authorization creation</p></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>