/usr/share/doc/libghc-crypto-pubkey-doc/html/Crypto-PubKey-RSA-PSS.html is in libghc-crypto-pubkey-doc 0.2.8-7build10.
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.RSA.PSS</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-RSA-PSS.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Crypto-PubKey-RSA-PSS.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">crypto-pubkey-0.2.8: Public Key cryptography</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>experimental</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.PubKey.RSA.PSS</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Sign and verify functions</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc empty"> </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:PSSParams">PSSParams</a> = <a href="#v:PSSParams">PSSParams</a> {<ul class="subs"><li><a href="#v:pssHash">pssHash</a> :: <a href="Crypto-PubKey-HashDescr.html#t:HashFunction">HashFunction</a></li><li><a href="#v:pssMaskGenAlg">pssMaskGenAlg</a> :: <a href="Crypto-PubKey-MaskGenFunction.html#t:MaskGenAlgorithm">MaskGenAlgorithm</a></li><li><a href="#v:pssSaltLength">pssSaltLength</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:pssTrailerField">pssTrailerField</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Word.html#t:Word8">Word8</a></li></ul>}</li><li class="src short"><a href="#v:defaultPSSParams">defaultPSSParams</a> :: <a href="Crypto-PubKey-HashDescr.html#t:HashFunction">HashFunction</a> -> <a href="Crypto-PubKey-RSA-PSS.html#t:PSSParams">PSSParams</a></li><li class="src short"><a href="#v:defaultPSSParamsSHA1">defaultPSSParamsSHA1</a> :: <a href="Crypto-PubKey-RSA-PSS.html#t:PSSParams">PSSParams</a></li><li class="src short"><a href="#v:signWithSalt">signWithSalt</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/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Crypto-PubKey-RSA.html#t:Blinder">Blinder</a> -> <a href="Crypto-PubKey-RSA-PSS.html#t:PSSParams">PSSParams</a> -> <a href="Crypto-PubKey-RSA.html#t:PrivateKey">PrivateKey</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/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Crypto-PubKey-RSA.html#t:Error">Error</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:sign">sign</a> :: <a href="file:///usr/share/doc/libghc-crypto-random-doc/html/Crypto-Random.html#t:CPRG">CPRG</a> g => g -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Crypto-PubKey-RSA.html#t:Blinder">Blinder</a> -> <a href="Crypto-PubKey-RSA-PSS.html#t:PSSParams">PSSParams</a> -> <a href="Crypto-PubKey-RSA.html#t:PrivateKey">PrivateKey</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/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Crypto-PubKey-RSA.html#t:Error">Error</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a>, g)</li><li class="src short"><a href="#v:signSafer">signSafer</a> :: <a href="file:///usr/share/doc/libghc-crypto-random-doc/html/Crypto-Random.html#t:CPRG">CPRG</a> g => g -> <a href="Crypto-PubKey-RSA-PSS.html#t:PSSParams">PSSParams</a> -> <a href="Crypto-PubKey-RSA.html#t:PrivateKey">PrivateKey</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/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Crypto-PubKey-RSA.html#t:Error">Error</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a>, g)</li><li class="src short"><a href="#v:verify">verify</a> :: <a href="Crypto-PubKey-RSA-PSS.html#t:PSSParams">PSSParams</a> -> <a href="Crypto-PubKey-RSA.html#t:PublicKey">PublicKey</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="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:PSSParams" class="def">PSSParams</a> <a href="src/Crypto-PubKey-RSA-PSS.html#PSSParams" class="link">Source</a> <a href="#t:PSSParams" class="selflink">#</a></p><div class="doc"><p>Parameters for PSS signature/verification.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:PSSParams" class="def">PSSParams</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:pssHash" class="def">pssHash</a> :: <a href="Crypto-PubKey-HashDescr.html#t:HashFunction">HashFunction</a></dfn><div class="doc"><p>Hash function to use</p></div></li><li><dfn class="src"><a id="v:pssMaskGenAlg" class="def">pssMaskGenAlg</a> :: <a href="Crypto-PubKey-MaskGenFunction.html#t:MaskGenAlgorithm">MaskGenAlgorithm</a></dfn><div class="doc"><p>Mask Gen algorithm to use</p></div></li><li><dfn class="src"><a id="v:pssSaltLength" class="def">pssSaltLength</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>Length of salt. need to be <= to hLen.</p></div></li><li><dfn class="src"><a id="v:pssTrailerField" class="def">pssTrailerField</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Word.html#t:Word8">Word8</a></dfn><div class="doc"><p>Trailer field, usually 0xbc</p></div></li></ul></div></td></tr></table></div></div><div class="top"><p class="src"><a id="v:defaultPSSParams" class="def">defaultPSSParams</a> :: <a href="Crypto-PubKey-HashDescr.html#t:HashFunction">HashFunction</a> -> <a href="Crypto-PubKey-RSA-PSS.html#t:PSSParams">PSSParams</a> <a href="src/Crypto-PubKey-RSA-PSS.html#defaultPSSParams" class="link">Source</a> <a href="#v:defaultPSSParams" class="selflink">#</a></p><div class="doc"><p>Default Params with a specified hash function</p></div></div><div class="top"><p class="src"><a id="v:defaultPSSParamsSHA1" class="def">defaultPSSParamsSHA1</a> :: <a href="Crypto-PubKey-RSA-PSS.html#t:PSSParams">PSSParams</a> <a href="src/Crypto-PubKey-RSA-PSS.html#defaultPSSParamsSHA1" class="link">Source</a> <a href="#v:defaultPSSParamsSHA1" class="selflink">#</a></p><div class="doc"><p>Default Params using SHA1 algorithm.</p></div></div><h1 id="g:1">Sign and verify functions</h1><div class="top"><p class="src"><a id="v:signWithSalt" class="def">signWithSalt</a> <a href="src/Crypto-PubKey-RSA-PSS.html#signWithSalt" class="link">Source</a> <a href="#v:signWithSalt" 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>Salt to use</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Crypto-PubKey-RSA.html#t:Blinder">Blinder</a></td><td class="doc"><p>optional blinder to use</p></td></tr><tr><td class="src">-> <a href="Crypto-PubKey-RSA-PSS.html#t:PSSParams">PSSParams</a></td><td class="doc"><p>PSS Parameters to use</p></td></tr><tr><td class="src">-> <a href="Crypto-PubKey-RSA.html#t:PrivateKey">PrivateKey</a></td><td class="doc"><p>RSA Private Key</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>Message to sign</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Crypto-PubKey-RSA.html#t:Error">Error</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="doc"><p>Sign using the PSS parameters and the salt explicitely passed as parameters.</p><p>the function ignore SaltLength from the PSS Parameters</p></div></div><div class="top"><p class="src"><a id="v:sign" class="def">sign</a> <a href="src/Crypto-PubKey-RSA-PSS.html#sign" class="link">Source</a> <a href="#v:sign" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/libghc-crypto-random-doc/html/Crypto-Random.html#t:CPRG">CPRG</a> g</td><td class="doc empty"> </td></tr><tr><td class="src">=> g</td><td class="doc"><p>random generator to use to generate the salt</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Crypto-PubKey-RSA.html#t:Blinder">Blinder</a></td><td class="doc"><p>optional blinder to use</p></td></tr><tr><td class="src">-> <a href="Crypto-PubKey-RSA-PSS.html#t:PSSParams">PSSParams</a></td><td class="doc"><p>PSS Parameters to use</p></td></tr><tr><td class="src">-> <a href="Crypto-PubKey-RSA.html#t:PrivateKey">PrivateKey</a></td><td class="doc"><p>RSA Private Key</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>Message to sign</p></td></tr><tr><td class="src">-> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Crypto-PubKey-RSA.html#t:Error">Error</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a>, g)</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Sign using the PSS Parameters</p></div></div><div class="top"><p class="src"><a id="v:signSafer" class="def">signSafer</a> <a href="src/Crypto-PubKey-RSA-PSS.html#signSafer" class="link">Source</a> <a href="#v:signSafer" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/libghc-crypto-random-doc/html/Crypto-Random.html#t:CPRG">CPRG</a> g</td><td class="doc empty"> </td></tr><tr><td class="src">=> g</td><td class="doc"><p>random generator</p></td></tr><tr><td class="src">-> <a href="Crypto-PubKey-RSA-PSS.html#t:PSSParams">PSSParams</a></td><td class="doc"><p>PSS Parameters to use</p></td></tr><tr><td class="src">-> <a href="Crypto-PubKey-RSA.html#t:PrivateKey">PrivateKey</a></td><td class="doc"><p>private key</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>message to sign</p></td></tr><tr><td class="src">-> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Crypto-PubKey-RSA.html#t:Error">Error</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a>, g)</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Sign using the PSS Parameters and an automatically generated blinder.</p></div></div><div class="top"><p class="src"><a id="v:verify" class="def">verify</a> <a href="src/Crypto-PubKey-RSA-PSS.html#verify" class="link">Source</a> <a href="#v:verify" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Crypto-PubKey-RSA-PSS.html#t:PSSParams">PSSParams</a></td><td class="doc"><p>PSS Parameters to use to verify,
this need to be identical to the parameters when signing</p></td></tr><tr><td class="src">-> <a href="Crypto-PubKey-RSA.html#t:PublicKey">PublicKey</a></td><td class="doc"><p>RSA Public Key</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>Message to verify</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>Signature</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Verify a signature using the PSS Parameters</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>
|