This file is indexed.

/usr/share/doc/libghc-cryptonite-doc/html/Crypto-PubKey-ECC-DH.html is in libghc-cryptonite-doc 0.23-2build5.

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
<!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.PubKey.ECC.DH</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-PubKey-ECC-DH.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Crypto-PubKey-ECC-DH.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.23: 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.PubKey.ECC.DH</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Elliptic curve Diffie Hellman</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:Curve">Curve</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:PublicPoint">PublicPoint</a> = <a href="Crypto-PubKey-ECC-Types.html#t:Point">Point</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:PrivateNumber">PrivateNumber</a> = <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a></li><li class="src short"><span class="keyword">newtype</span> <a href="#t:SharedKey">SharedKey</a> = <a href="#v:SharedKey">SharedKey</a> <a href="file:///usr/share/doc/libghc-memory-doc/html/Data-ByteArray.html#t:ScrubbedBytes">ScrubbedBytes</a></li><li class="src short"><a href="#v:generatePrivate">generatePrivate</a> :: <a href="Crypto-Random-Types.html#t:MonadRandom">MonadRandom</a> m =&gt; <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> -&gt; m <a href="Crypto-PubKey-ECC-DH.html#t:PrivateNumber">PrivateNumber</a></li><li class="src short"><a href="#v:calculatePublic">calculatePublic</a> :: <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:PrivateNumber">PrivateNumber</a> -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:PublicPoint">PublicPoint</a></li><li class="src short"><a href="#v:getShared">getShared</a> :: <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:PrivateNumber">PrivateNumber</a> -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:PublicPoint">PublicPoint</a> -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:SharedKey">SharedKey</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Curve" class="def">Curve</a> <a href="src/Crypto-PubKey-ECC-Types.html#Curve" class="link">Source</a> <a href="#t:Curve" class="selflink">#</a></p><div class="doc"><p>Define either a binary curve or a prime curve.</p></div><div class="subs instances"><p id="control.i:Curve" class="caption collapser" onclick="toggleSection('i:Curve')">Instances</p><div id="section.i:Curve" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Curve:Eq:1" class="instance expander" onclick="toggleSection('i:id:Curve: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-PubKey-ECC-DH.html#t:Curve">Curve</a></span> <a href="src/Crypto-PubKey-ECC-Types.html#line-36" class="link">Source</a> <a href="#t:Curve" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Curve: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-PubKey-ECC-DH.html#t:Curve">Curve</a> -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</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-PubKey-ECC-DH.html#t:Curve">Curve</a> -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</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:Curve:Data:2" class="instance expander" onclick="toggleSection('i:id:Curve:Data:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Data.html#t:Data">Data</a> <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a></span> <a href="src/Crypto-PubKey-ECC-Types.html#line-36" class="link">Source</a> <a href="#t:Curve" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Curve:Data:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:gfoldl">gfoldl</a> :: (<span class="keyword">forall</span> d b. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Data.html#t:Data">Data</a> d =&gt; c (d -&gt; b) -&gt; d -&gt; c b) -&gt; (<span class="keyword">forall</span> g. g -&gt; c g) -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> -&gt; c <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> <a href="#v:gfoldl" class="selflink">#</a></p><p class="src"><a href="#v:gunfold">gunfold</a> :: (<span class="keyword">forall</span> b r. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Data.html#t:Data">Data</a> b =&gt; c (b -&gt; r) -&gt; c r) -&gt; (<span class="keyword">forall</span> r. r -&gt; c r) -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Data.html#t:Constr">Constr</a> -&gt; c <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> <a href="#v:gunfold" class="selflink">#</a></p><p class="src"><a href="#v:toConstr">toConstr</a> :: <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Data.html#t:Constr">Constr</a> <a href="#v:toConstr" class="selflink">#</a></p><p class="src"><a href="#v:dataTypeOf">dataTypeOf</a> :: <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Data.html#t:DataType">DataType</a> <a href="#v:dataTypeOf" class="selflink">#</a></p><p class="src"><a href="#v:dataCast1">dataCast1</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Typeable-Internal.html#t:Typeable">Typeable</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>) t =&gt; (<span class="keyword">forall</span> d. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Data.html#t:Data">Data</a> d =&gt; c (t d)) -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> (c <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a>) <a href="#v:dataCast1" class="selflink">#</a></p><p class="src"><a href="#v:dataCast2">dataCast2</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Typeable-Internal.html#t:Typeable">Typeable</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> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a>) t =&gt; (<span class="keyword">forall</span> d e. (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Data.html#t:Data">Data</a> d, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Data.html#t:Data">Data</a> e) =&gt; c (t d e)) -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> (c <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a>) <a href="#v:dataCast2" class="selflink">#</a></p><p class="src"><a href="#v:gmapT">gmapT</a> :: (<span class="keyword">forall</span> b. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Data.html#t:Data">Data</a> b =&gt; b -&gt; b) -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> <a href="#v:gmapT" class="selflink">#</a></p><p class="src"><a href="#v:gmapQl">gmapQl</a> :: (r -&gt; r' -&gt; r) -&gt; r -&gt; (<span class="keyword">forall</span> d. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Data.html#t:Data">Data</a> d =&gt; d -&gt; r') -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> -&gt; r <a href="#v:gmapQl" class="selflink">#</a></p><p class="src"><a href="#v:gmapQr">gmapQr</a> :: (r' -&gt; r -&gt; r) -&gt; r -&gt; (<span class="keyword">forall</span> d. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Data.html#t:Data">Data</a> d =&gt; d -&gt; r') -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> -&gt; r <a href="#v:gmapQr" class="selflink">#</a></p><p class="src"><a href="#v:gmapQ">gmapQ</a> :: (<span class="keyword">forall</span> d. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Data.html#t:Data">Data</a> d =&gt; d -&gt; u) -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> -&gt; [u] <a href="#v:gmapQ" class="selflink">#</a></p><p class="src"><a href="#v:gmapQi">gmapQi</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; (<span class="keyword">forall</span> d. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Data.html#t:Data">Data</a> d =&gt; d -&gt; u) -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> -&gt; u <a href="#v:gmapQi" class="selflink">#</a></p><p class="src"><a href="#v:gmapM">gmapM</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m =&gt; (<span class="keyword">forall</span> d. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Data.html#t:Data">Data</a> d =&gt; d -&gt; m d) -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> -&gt; m <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> <a href="#v:gmapM" class="selflink">#</a></p><p class="src"><a href="#v:gmapMp">gmapMp</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m =&gt; (<span class="keyword">forall</span> d. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Data.html#t:Data">Data</a> d =&gt; d -&gt; m d) -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> -&gt; m <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> <a href="#v:gmapMp" class="selflink">#</a></p><p class="src"><a href="#v:gmapMo">gmapMo</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m =&gt; (<span class="keyword">forall</span> d. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Data.html#t:Data">Data</a> d =&gt; d -&gt; m d) -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> -&gt; m <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> <a href="#v:gmapMo" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Curve:Read:3" class="instance expander" onclick="toggleSection('i:id:Curve:Read:3')"></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-PubKey-ECC-DH.html#t:Curve">Curve</a></span> <a href="src/Crypto-PubKey-ECC-Types.html#line-36" class="link">Source</a> <a href="#t:Curve" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Curve:Read:3" 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-PubKey-ECC-DH.html#t:Curve">Curve</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-PubKey-ECC-DH.html#t:Curve">Curve</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-PubKey-ECC-DH.html#t:Curve">Curve</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-PubKey-ECC-DH.html#t:Curve">Curve</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:Curve:Show:4" class="instance expander" onclick="toggleSection('i:id:Curve:Show:4')"></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-PubKey-ECC-DH.html#t:Curve">Curve</a></span> <a href="src/Crypto-PubKey-ECC-Types.html#line-36" class="link">Source</a> <a href="#t:Curve" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Curve:Show:4" 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-PubKey-ECC-DH.html#t:Curve">Curve</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-PubKey-ECC-DH.html#t:Curve">Curve</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-PubKey-ECC-DH.html#t:Curve">Curve</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></table></div></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:PublicPoint" class="def">PublicPoint</a> = <a href="Crypto-PubKey-ECC-Types.html#t:Point">Point</a> <a href="src/Crypto-PubKey-ECC-Types.html#PublicPoint" class="link">Source</a> <a href="#t:PublicPoint" class="selflink">#</a></p><div class="doc"><p>ECC Public Point</p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:PrivateNumber" class="def">PrivateNumber</a> = <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a> <a href="src/Crypto-PubKey-ECC-Types.html#PrivateNumber" class="link">Source</a> <a href="#t:PrivateNumber" class="selflink">#</a></p><div class="doc"><p>ECC Private Number</p></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:SharedKey" class="def">SharedKey</a> <a href="src/Crypto-PubKey-DH.html#SharedKey" class="link">Source</a> <a href="#t:SharedKey" class="selflink">#</a></p><div class="doc"><p>Represent Diffie Hellman shared secret.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:SharedKey" class="def">SharedKey</a> <a href="file:///usr/share/doc/libghc-memory-doc/html/Data-ByteArray.html#t:ScrubbedBytes">ScrubbedBytes</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:SharedKey" class="caption collapser" onclick="toggleSection('i:SharedKey')">Instances</p><div id="section.i:SharedKey" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:SharedKey:Eq:1" class="instance expander" onclick="toggleSection('i:id:SharedKey: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-PubKey-ECC-DH.html#t:SharedKey">SharedKey</a></span> <a href="src/Crypto-PubKey-DH.html#line-48" class="link">Source</a> <a href="#t:SharedKey" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:SharedKey: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-PubKey-ECC-DH.html#t:SharedKey">SharedKey</a> -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:SharedKey">SharedKey</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-PubKey-ECC-DH.html#t:SharedKey">SharedKey</a> -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:SharedKey">SharedKey</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:SharedKey:Show:2" class="instance expander" onclick="toggleSection('i:id:SharedKey: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-PubKey-ECC-DH.html#t:SharedKey">SharedKey</a></span> <a href="src/Crypto-PubKey-DH.html#line-48" class="link">Source</a> <a href="#t:SharedKey" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:SharedKey: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-PubKey-ECC-DH.html#t:SharedKey">SharedKey</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-PubKey-ECC-DH.html#t:SharedKey">SharedKey</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-PubKey-ECC-DH.html#t:SharedKey">SharedKey</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:SharedKey:ByteArrayAccess:3" class="instance expander" onclick="toggleSection('i:id:SharedKey:ByteArrayAccess:3')"></span> <a href="file:///usr/share/doc/libghc-memory-doc/html/Data-ByteArray.html#t:ByteArrayAccess">ByteArrayAccess</a> <a href="Crypto-PubKey-ECC-DH.html#t:SharedKey">SharedKey</a></span> <a href="src/Crypto-PubKey-DH.html#line-48" class="link">Source</a> <a href="#t:SharedKey" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:SharedKey: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-PubKey-ECC-DH.html#t:SharedKey">SharedKey</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.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-PubKey-ECC-DH.html#t:SharedKey">SharedKey</a> -&gt; (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Foreign-Ptr.html#t:Ptr">Ptr</a> p -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> 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 <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:generatePrivate" class="def">generatePrivate</a> :: <a href="Crypto-Random-Types.html#t:MonadRandom">MonadRandom</a> m =&gt; <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> -&gt; m <a href="Crypto-PubKey-ECC-DH.html#t:PrivateNumber">PrivateNumber</a> <a href="src/Crypto-PubKey-ECC-DH.html#generatePrivate" class="link">Source</a> <a href="#v:generatePrivate" class="selflink">#</a></p><div class="doc"><p>Generating a private number d.</p></div></div><div class="top"><p class="src"><a id="v:calculatePublic" class="def">calculatePublic</a> :: <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:PrivateNumber">PrivateNumber</a> -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:PublicPoint">PublicPoint</a> <a href="src/Crypto-PubKey-ECC-DH.html#calculatePublic" class="link">Source</a> <a href="#v:calculatePublic" class="selflink">#</a></p><div class="doc"><p>Generating a public point Q.</p></div></div><div class="top"><p class="src"><a id="v:getShared" class="def">getShared</a> :: <a href="Crypto-PubKey-ECC-DH.html#t:Curve">Curve</a> -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:PrivateNumber">PrivateNumber</a> -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:PublicPoint">PublicPoint</a> -&gt; <a href="Crypto-PubKey-ECC-DH.html#t:SharedKey">SharedKey</a> <a href="src/Crypto-PubKey-ECC-DH.html#getShared" class="link">Source</a> <a href="#v:getShared" class="selflink">#</a></p><div class="doc"><p>Generating a shared key using our private number and
   the other party public 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>