This file is indexed.

/usr/share/doc/libghc-secret-sharing-doc/html/Crypto-SecretSharing-Internal.html is in libghc-secret-sharing-doc 1.0.0.3-3build8.

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
<!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.SecretSharing.Internal</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-SecretSharing-Internal.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Crypto-SecretSharing-Internal.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">secret-sharing-1.0.0.3: Information-theoretic secure secret sharing</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>Peter Robinson 2014</td></tr><tr><th>License</th><td>LGPL</td></tr><tr><th>Maintainer</th><td>Peter Robinson &lt;peter.robinson@monoid.at&gt;</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Crypto.SecretSharing.Internal</p></div><div id="description"><p class="caption">Description</p><div class="doc empty">&nbsp;</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:ByteShare">ByteShare</a> = <a href="#v:ByteShare">ByteShare</a> {<ul class="subs"><li><a href="#v:shareId">shareId</a> :: !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:reconstructionThreshold">reconstructionThreshold</a> :: !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:shareValue">shareValue</a> :: !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:Share">Share</a> = <a href="#v:Share">Share</a> {<ul class="subs"><li><a href="#v:theShare">theShare</a> :: ![<a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a>]</li></ul>}</li><li class="src short"><a href="#v:encode">encode</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> [<a href="Crypto-SecretSharing-Internal.html#t:Share">Share</a>]</li><li class="src short"><a href="#v:decode">decode</a> :: [<a href="Crypto-SecretSharing-Internal.html#t:Share">Share</a>] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:encodeByte">encodeByte</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:Polyn">Polyn</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="file:///usr/share/doc/libghc-vector-doc/html/Data-Vector.html#t:Vector">Vector</a> <a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a></li><li class="src short"><a href="#v:decodeByte">decodeByte</a> :: [<a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a>] -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a></li><li class="src short"><a href="#v:groupInto">groupInto</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; [a] -&gt; [[a]]</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:FField">FField</a> = <a href="#v:FField">FField</a> {<ul class="subs"><li><a href="#v:number">number</a> :: <a href="file:///usr/share/doc/libghc-finite-field-doc/html/Data-FiniteField-PrimeField.html#t:PrimeField">PrimeField</a> (I (O (I (I (I (I (I (I (I (I Z))))))))))</li></ul>}</li><li class="src short"><a href="#v:prime">prime</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:Polyn">Polyn</a> = [<a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a>]</li><li class="src short"><a href="#v:evalPolynomial">evalPolynomial</a> :: <a href="Crypto-SecretSharing-Internal.html#t:Polyn">Polyn</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:ByteShare" class="def">ByteShare</a> <a href="src/Crypto-SecretSharing-Internal.html#ByteShare" class="link">Source</a> <a href="#t:ByteShare" class="selflink">#</a></p><div class="doc"><p>A share of an encoded byte. </p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:ByteShare" class="def">ByteShare</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:shareId" class="def">shareId</a> :: !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc"><p>the index of this share </p></div></li><li><dfn class="src"><a id="v:reconstructionThreshold" class="def">reconstructionThreshold</a> :: !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc"><p>number of shares required for 
 reconstruction</p></div></li><li><dfn class="src"><a id="v:shareValue" class="def">shareValue</a> :: !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc"><p>the value of p(shareId) where p(x) is the 
   generated (secret) polynomial</p></div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:ByteShare" class="caption collapser" onclick="toggleSection('i:ByteShare')">Instances</p><div id="section.i:ByteShare" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ByteShare:Eq:1" class="instance expander" onclick="toggleSection('i:id:ByteShare:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a></span> <a href="src/Crypto-SecretSharing-Internal.html#line-44" class="link">Source</a> <a href="#t:ByteShare" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ByteShare: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-SecretSharing-Internal.html#t:ByteShare">ByteShare</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.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-SecretSharing-Internal.html#t:ByteShare">ByteShare</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.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:ByteShare:Show:2" class="instance expander" onclick="toggleSection('i:id:ByteShare:Show:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a></span> <a href="src/Crypto-SecretSharing-Internal.html#line-46" class="link">Source</a> <a href="#t:ByteShare" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ByteShare:Show:2" 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.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.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-SecretSharing-Internal.html#t:ByteShare">ByteShare</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.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-SecretSharing-Internal.html#t:ByteShare">ByteShare</a>] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ByteShare:Generic:3" class="instance expander" onclick="toggleSection('i:id:ByteShare:Generic:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Generic">Generic</a> <a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a></span> <a href="src/Crypto-SecretSharing-Internal.html#line-44" class="link">Source</a> <a href="#t:ByteShare" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ByteShare:Generic:3" class="inst-details hide"><div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> <a href="#t:Rep" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:from">from</a> :: <a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a> x <a href="#v:from" class="selflink">#</a></p><p class="src"><a href="#v:to">to</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a> x -&gt; <a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a> <a href="#v:to" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ByteShare:Binary:4" class="instance expander" onclick="toggleSection('i:id:ByteShare:Binary:4')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/binary-0.8.3.0/Data-Binary.html#t:Binary">Binary</a> <a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a></span> <a href="src/Crypto-SecretSharing-Internal.html#line-57" class="link">Source</a> <a href="#t:ByteShare" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ByteShare:Binary:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:put">put</a> :: <a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/binary-0.8.3.0/Data-Binary-Put.html#t:Put">Put</a> <a href="#v:put" class="selflink">#</a></p><p class="src"><a href="#v:get">get</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/binary-0.8.3.0/Data-Binary-Get-Internal.html#t:Get">Get</a> <a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a> <a href="#v:get" class="selflink">#</a></p><p class="src"><a href="#v:putList">putList</a> :: [<a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a>] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/binary-0.8.3.0/Data-Binary-Put.html#t:Put">Put</a> <a href="#v:putList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ByteShare:Rep:5" class="instance expander" onclick="toggleSection('i:id:ByteShare:Rep:5')"></span> <span class="keyword">type</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a></span> <a href="src/Crypto-SecretSharing-Internal.html#line-37" class="link">Source</a> <a href="#t:ByteShare" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ByteShare:Rep:5" class="inst-details hide"><div class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a> = <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:D1">D1</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:MetaData">MetaData</a> &quot;ByteShare&quot; &quot;Crypto.SecretSharing.Internal&quot; &quot;secret-sharing-1.0.0.3-7IF3ya8wajQEapyY2aT18Z&quot; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#v:False">False</a>) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:C1">C1</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:MetaCons">MetaCons</a> &quot;ByteShare&quot; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:PrefixI">PrefixI</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#v:True">True</a>) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:S1">S1</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:MetaSel">MetaSel</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#v:Just">Just</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-TypeLits.html#t:Symbol">Symbol</a> &quot;shareId&quot;) <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:NoSourceUnpackedness">NoSourceUnpackedness</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:SourceStrict">SourceStrict</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:DecidedUnpack">DecidedUnpack</a>) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a>)) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:S1">S1</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:MetaSel">MetaSel</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#v:Just">Just</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-TypeLits.html#t:Symbol">Symbol</a> &quot;reconstructionThreshold&quot;) <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:NoSourceUnpackedness">NoSourceUnpackedness</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:SourceStrict">SourceStrict</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:DecidedUnpack">DecidedUnpack</a>) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a>)) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:S1">S1</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:MetaSel">MetaSel</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#v:Just">Just</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-TypeLits.html#t:Symbol">Symbol</a> &quot;shareValue&quot;) <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:NoSourceUnpackedness">NoSourceUnpackedness</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:SourceStrict">SourceStrict</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:DecidedUnpack">DecidedUnpack</a>) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a>)))))</div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Share" class="def">Share</a> <a href="src/Crypto-SecretSharing-Internal.html#Share" class="link">Source</a> <a href="#t:Share" class="selflink">#</a></p><div class="doc"><p>A share of the encoded secret.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Share" class="def">Share</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:theShare" class="def">theShare</a> :: ![<a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a>]</dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:Share" class="caption collapser" onclick="toggleSection('i:Share')">Instances</p><div id="section.i:Share" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Share:Eq:1" class="instance expander" onclick="toggleSection('i:id:Share:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Crypto-SecretSharing-Internal.html#t:Share">Share</a></span> <a href="src/Crypto-SecretSharing-Internal.html#line-52" class="link">Source</a> <a href="#t:Share" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Share: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-SecretSharing-Internal.html#t:Share">Share</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:Share">Share</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.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-SecretSharing-Internal.html#t:Share">Share</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:Share">Share</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.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:Share:Show:2" class="instance expander" onclick="toggleSection('i:id:Share:Show:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="Crypto-SecretSharing-Internal.html#t:Share">Share</a></span> <a href="src/Crypto-SecretSharing-Internal.html#line-54" class="link">Source</a> <a href="#t:Share" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Share:Show:2" 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.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:Share">Share</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.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-SecretSharing-Internal.html#t:Share">Share</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.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-SecretSharing-Internal.html#t:Share">Share</a>] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Share:Generic:3" class="instance expander" onclick="toggleSection('i:id:Share:Generic:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Generic">Generic</a> <a href="Crypto-SecretSharing-Internal.html#t:Share">Share</a></span> <a href="src/Crypto-SecretSharing-Internal.html#line-52" class="link">Source</a> <a href="#t:Share" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Share:Generic:3" class="inst-details hide"><div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Crypto-SecretSharing-Internal.html#t:Share">Share</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> <a href="#t:Rep" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:from">from</a> :: <a href="Crypto-SecretSharing-Internal.html#t:Share">Share</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Crypto-SecretSharing-Internal.html#t:Share">Share</a> x <a href="#v:from" class="selflink">#</a></p><p class="src"><a href="#v:to">to</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Crypto-SecretSharing-Internal.html#t:Share">Share</a> x -&gt; <a href="Crypto-SecretSharing-Internal.html#t:Share">Share</a> <a href="#v:to" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Share:Binary:4" class="instance expander" onclick="toggleSection('i:id:Share:Binary:4')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/binary-0.8.3.0/Data-Binary.html#t:Binary">Binary</a> <a href="Crypto-SecretSharing-Internal.html#t:Share">Share</a></span> <a href="src/Crypto-SecretSharing-Internal.html#line-58" class="link">Source</a> <a href="#t:Share" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Share:Binary:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:put">put</a> :: <a href="Crypto-SecretSharing-Internal.html#t:Share">Share</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/binary-0.8.3.0/Data-Binary-Put.html#t:Put">Put</a> <a href="#v:put" class="selflink">#</a></p><p class="src"><a href="#v:get">get</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/binary-0.8.3.0/Data-Binary-Get-Internal.html#t:Get">Get</a> <a href="Crypto-SecretSharing-Internal.html#t:Share">Share</a> <a href="#v:get" class="selflink">#</a></p><p class="src"><a href="#v:putList">putList</a> :: [<a href="Crypto-SecretSharing-Internal.html#t:Share">Share</a>] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/binary-0.8.3.0/Data-Binary-Put.html#t:Put">Put</a> <a href="#v:putList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Share:Rep:5" class="instance expander" onclick="toggleSection('i:id:Share:Rep:5')"></span> <span class="keyword">type</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Crypto-SecretSharing-Internal.html#t:Share">Share</a></span> <a href="src/Crypto-SecretSharing-Internal.html#line-50" class="link">Source</a> <a href="#t:Share" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Share:Rep:5" class="inst-details hide"><div class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Crypto-SecretSharing-Internal.html#t:Share">Share</a> = <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:D1">D1</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:MetaData">MetaData</a> &quot;Share&quot; &quot;Crypto.SecretSharing.Internal&quot; &quot;secret-sharing-1.0.0.3-7IF3ya8wajQEapyY2aT18Z&quot; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#v:False">False</a>) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:C1">C1</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:MetaCons">MetaCons</a> &quot;Share&quot; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:PrefixI">PrefixI</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#v:True">True</a>) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:S1">S1</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:MetaSel">MetaSel</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#v:Just">Just</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-TypeLits.html#t:Symbol">Symbol</a> &quot;theShare&quot;) <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:NoSourceUnpackedness">NoSourceUnpackedness</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:SourceStrict">SourceStrict</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:DecidedStrict">DecidedStrict</a>) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Rec0">Rec0</a> [<a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a>])))</div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:encode" class="def">encode</a> <a href="src/Crypto-SecretSharing-Internal.html#encode" class="link">Source</a> <a href="#v:encode" 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/base-4.9.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>m </p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>n</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></td><td class="doc"><p>the secret that we want to share</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> [<a href="Crypto-SecretSharing-Internal.html#t:Share">Share</a>]</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Encodes a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></code> as a list of n shares, m of which are required for
 reconstruction.
 Lives in the <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a></code> to access a random source.</p></div></div><div class="top"><p class="src"><a id="v:decode" class="def">decode</a> <a href="src/Crypto-SecretSharing-Internal.html#decode" class="link">Source</a> <a href="#v:decode" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: [<a href="Crypto-SecretSharing-Internal.html#t:Share">Share</a>]</td><td class="doc"><p>list of at least <code>m</code> shares</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></td><td class="doc"><p>reconstructed secret</p></td></tr></table></div><div class="doc"><p>Reconstructs a (secret) bytestring from a list of (at least <code>m</code>) shares. 
 Throws <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Exception-Base.html#t:AssertionFailed">AssertionFailed</a></code> if the number of shares is too small.</p></div></div><div class="top"><p class="src"><a id="v:encodeByte" class="def">encodeByte</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:Polyn">Polyn</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="file:///usr/share/doc/libghc-vector-doc/html/Data-Vector.html#t:Vector">Vector</a> <a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a> <a href="src/Crypto-SecretSharing-Internal.html#encodeByte" class="link">Source</a> <a href="#v:encodeByte" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:decodeByte" class="def">decodeByte</a> :: [<a href="Crypto-SecretSharing-Internal.html#t:ByteShare">ByteShare</a>] -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> <a href="src/Crypto-SecretSharing-Internal.html#decodeByte" class="link">Source</a> <a href="#v:decodeByte" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:groupInto" class="def">groupInto</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; [a] -&gt; [[a]] <a href="src/Crypto-SecretSharing-Internal.html#groupInto" class="link">Source</a> <a href="#v:groupInto" class="selflink">#</a></p><div class="doc"><p>Groups a list into blocks of certain size. Running time: <em>O(n)</em></p></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:FField" class="def">FField</a> <a href="src/Crypto-SecretSharing-Internal.html#FField" class="link">Source</a> <a href="#t:FField" class="selflink">#</a></p><div class="doc"><p>A finite prime field. All computations are performed in this field.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:FField" class="def">FField</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:number" class="def">number</a> :: <a href="file:///usr/share/doc/libghc-finite-field-doc/html/Data-FiniteField-PrimeField.html#t:PrimeField">PrimeField</a> (I (O (I (I (I (I (I (I (I (I Z))))))))))</dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:FField" class="caption collapser" onclick="toggleSection('i:FField')">Instances</p><div id="section.i:FField" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FField:Eq:1" class="instance expander" onclick="toggleSection('i:id:FField:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a></span> <a href="src/Crypto-SecretSharing-Internal.html#line-130" class="link">Source</a> <a href="#t:FField" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:FField: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-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.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-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.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:FField:Fractional:2" class="instance expander" onclick="toggleSection('i:id:FField:Fractional:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Fractional">Fractional</a> <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a></span> <a href="src/Crypto-SecretSharing-Internal.html#line-130" class="link">Source</a> <a href="#t:FField" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:FField:Fractional:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-47-">(/)</a> :: <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> <a href="#v:-47-" class="selflink">#</a></p><p class="src"><a href="#v:recip">recip</a> :: <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> <a href="#v:recip" class="selflink">#</a></p><p class="src"><a href="#v:fromRational">fromRational</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Rational">Rational</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> <a href="#v:fromRational" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FField:Num:3" class="instance expander" onclick="toggleSection('i:id:FField:Num:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Num">Num</a> <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a></span> <a href="src/Crypto-SecretSharing-Internal.html#line-130" class="link">Source</a> <a href="#t:FField" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:FField:Num:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-43-">(+)</a> :: <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> <a href="#v:-43-" class="selflink">#</a></p><p class="src"><a href="#v:-45-">(-)</a> :: <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> <a href="#v:-45-" class="selflink">#</a></p><p class="src"><a href="#v:-42-">(*)</a> :: <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> <a href="#v:-42-" class="selflink">#</a></p><p class="src"><a href="#v:negate">negate</a> :: <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> <a href="#v:negate" class="selflink">#</a></p><p class="src"><a href="#v:abs">abs</a> :: <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> <a href="#v:abs" class="selflink">#</a></p><p class="src"><a href="#v:signum">signum</a> :: <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> <a href="#v:signum" class="selflink">#</a></p><p class="src"><a href="#v:fromInteger">fromInteger</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> <a href="#v:fromInteger" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FField:Ord:4" class="instance expander" onclick="toggleSection('i:id:FField:Ord:4')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a></span> <a href="src/Crypto-SecretSharing-Internal.html#line-130" class="link">Source</a> <a href="#t:FField" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:FField:Ord:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ordering">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(&lt;)</a> :: <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(&lt;=)</a> :: <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(&gt;)</a> :: <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(&gt;=)</a> :: <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> <a href="#v:min" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FField:Read:5" class="instance expander" onclick="toggleSection('i:id:FField:Read:5')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Read.html#t:Read">Read</a> <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a></span> <a href="src/Crypto-SecretSharing-Internal.html#line-130" class="link">Source</a> <a href="#t:FField" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:FField:Read:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:readsPrec">readsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> <a href="#v:readsPrec" class="selflink">#</a></p><p class="src"><a href="#v:readList">readList</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> [<a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a>] <a href="#v:readList" class="selflink">#</a></p><p class="src"><a href="#v:readPrec">readPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> <a href="#v:readPrec" class="selflink">#</a></p><p class="src"><a href="#v:readListPrec">readListPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> [<a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a>] <a href="#v:readListPrec" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FField:Show:6" class="instance expander" onclick="toggleSection('i:id:FField:Show:6')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a></span> <a href="src/Crypto-SecretSharing-Internal.html#line-130" class="link">Source</a> <a href="#t:FField" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:FField:Show:6" 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.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.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-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.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-SecretSharing-Internal.html#t:FField">FField</a>] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FField:Generic:7" class="instance expander" onclick="toggleSection('i:id:FField:Generic:7')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Generic">Generic</a> <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a></span> <a href="src/Crypto-SecretSharing-Internal.html#line-130" class="link">Source</a> <a href="#t:FField" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:FField:Generic:7" class="inst-details hide"><div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> <a href="#t:Rep" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:from">from</a> :: <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> x <a href="#v:from" class="selflink">#</a></p><p class="src"><a href="#v:to">to</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> x -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> <a href="#v:to" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FField:FiniteField:8" class="instance expander" onclick="toggleSection('i:id:FField:FiniteField:8')"></span> <a href="file:///usr/share/doc/libghc-finite-field-doc/html/Data-FiniteField-Base.html#t:FiniteField">FiniteField</a> <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a></span> <a href="src/Crypto-SecretSharing-Internal.html#line-130" class="link">Source</a> <a href="#t:FField" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:FField:FiniteField:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:order">order</a> :: <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a> <a href="#v:order" class="selflink">#</a></p><p class="src"><a href="#v:char">char</a> :: <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a> <a href="#v:char" class="selflink">#</a></p><p class="src"><a href="#v:pthRoot">pthRoot</a> :: <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> <a href="#v:pthRoot" class="selflink">#</a></p><p class="src"><a href="#v:allValues">allValues</a> :: [<a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a>] <a href="#v:allValues" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FField:Rep:9" class="instance expander" onclick="toggleSection('i:id:FField:Rep:9')"></span> <span class="keyword">type</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a></span> <a href="src/Crypto-SecretSharing-Internal.html#line-129" class="link">Source</a> <a href="#t:FField" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:FField:Rep:9" class="inst-details hide"><div class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> = <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:D1">D1</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:MetaData">MetaData</a> &quot;FField&quot; &quot;Crypto.SecretSharing.Internal&quot; &quot;secret-sharing-1.0.0.3-7IF3ya8wajQEapyY2aT18Z&quot; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#v:True">True</a>) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:C1">C1</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:MetaCons">MetaCons</a> &quot;FField&quot; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:PrefixI">PrefixI</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#v:True">True</a>) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:S1">S1</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:MetaSel">MetaSel</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#v:Just">Just</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-TypeLits.html#t:Symbol">Symbol</a> &quot;number&quot;) <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:NoSourceUnpackedness">NoSourceUnpackedness</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:NoSourceStrictness">NoSourceStrictness</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#v:DecidedLazy">DecidedLazy</a>) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-Generics.html#t:Rec0">Rec0</a> (<a href="file:///usr/share/doc/libghc-finite-field-doc/html/Data-FiniteField-PrimeField.html#t:PrimeField">PrimeField</a> (I (O (I (I (I (I (I (I (I (I Z))))))))))))))</div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:prime" class="def">prime</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="src/Crypto-SecretSharing-Internal.html#prime" class="link">Source</a> <a href="#v:prime" class="selflink">#</a></p><div class="doc"><p>The size of the finite field</p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:Polyn" class="def">Polyn</a> = [<a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a>] <a href="src/Crypto-SecretSharing-Internal.html#Polyn" class="link">Source</a> <a href="#t:Polyn" class="selflink">#</a></p><div class="doc"><p>A polynomial over the finite field given as a list of coefficients.</p></div></div><div class="top"><p class="src"><a id="v:evalPolynomial" class="def">evalPolynomial</a> :: <a href="Crypto-SecretSharing-Internal.html#t:Polyn">Polyn</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> -&gt; <a href="Crypto-SecretSharing-Internal.html#t:FField">FField</a> <a href="src/Crypto-SecretSharing-Internal.html#evalPolynomial" class="link">Source</a> <a href="#v:evalPolynomial" class="selflink">#</a></p><div class="doc"><p>Evaluates the polynomial at a given point.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>