This file is indexed.

/usr/share/doc/libghc-raaz-doc/html/Raaz-Hash-Sha512.html is in libghc-raaz-doc 0.1.1-2build1.

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

The actual contents of the file can be viewed below.

1
2
3
4
5
6
7
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Raaz.Hash.Sha512</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_Raaz-Hash-Sha512.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Raaz-Hash-Sha512.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">raaz-0.1.1: The raaz cryptographic library.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Raaz.Hash.Sha512</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">The SHA512 cryptographic hash</a></li><li><a href="#g:2">HMAC computation using SHA512</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module exposes combinators to compute the SHA512 hash and the
associated HMAC for some common types.</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:SHA512">SHA512</a></li><li class="src short"><a href="#v:sha512">sha512</a> :: <a href="Raaz-Core-ByteSource.html#t:PureByteSource">PureByteSource</a> src =&gt; src -&gt; <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a></li><li class="src short"><a href="#v:sha512File">sha512File</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:FilePath">FilePath</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="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a></li><li class="src short"><a href="#v:sha512Source">sha512Source</a> :: <a href="Raaz-Core-ByteSource.html#t:ByteSource">ByteSource</a> src =&gt; 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="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a></li><li class="src short"><a href="#v:hmacSha512">hmacSha512</a> :: <a href="Raaz-Core-ByteSource.html#t:PureByteSource">PureByteSource</a> src =&gt; <a href="Raaz-Core-Primitives.html#t:Key">Key</a> (<a href="Raaz-Hash.html#t:HMAC">HMAC</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a>) -&gt; src -&gt; <a href="Raaz-Hash.html#t:HMAC">HMAC</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a></li><li class="src short"><a href="#v:hmacSha512File">hmacSha512File</a> :: <a href="Raaz-Core-Primitives.html#t:Key">Key</a> (<a href="Raaz-Hash.html#t:HMAC">HMAC</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a>) -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:FilePath">FilePath</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="Raaz-Hash.html#t:HMAC">HMAC</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a>)</li><li class="src short"><a href="#v:hmacSha512Source">hmacSha512Source</a> :: <a href="Raaz-Core-ByteSource.html#t:ByteSource">ByteSource</a> src =&gt; <a href="Raaz-Core-Primitives.html#t:Key">Key</a> (<a href="Raaz-Hash.html#t:HMAC">HMAC</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a>) -&gt; 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="Raaz-Hash.html#t:HMAC">HMAC</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a>)</li></ul></div><div id="interface"><h1 id="g:1">The SHA512 cryptographic hash</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:SHA512" class="def">SHA512</a> <a href="src/Raaz-Hash-Sha512-Internal.html#SHA512" class="link">Source</a> <a href="#t:SHA512" class="selflink">#</a></p><div class="doc"><p>The Sha512 hash value. Used in implementation of Sha384 as well.</p></div><div class="subs instances"><p id="control.i:SHA512" class="caption collapser" onclick="toggleSection('i:SHA512')">Instances</p><div id="section.i:SHA512" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:SHA512:Eq:1" class="instance expander" onclick="toggleSection('i:id:SHA512: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="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a></span> <a href="src/Raaz-Hash-Sha512-Internal.html#line-25" class="link">Source</a> <a href="#t:SHA512" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:SHA512: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="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> -&gt; <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</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="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> -&gt; <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</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:SHA512:Show:2" class="instance expander" onclick="toggleSection('i:id:SHA512: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="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a></span> <a href="src/Raaz-Hash-Sha512-Internal.html#line-32" class="link">Source</a> <a href="#t:SHA512" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:SHA512: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="Raaz-Hash-Sha512.html#t:SHA512">SHA512</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="Raaz-Hash-Sha512.html#t:SHA512">SHA512</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="Raaz-Hash-Sha512.html#t:SHA512">SHA512</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:SHA512:IsString:3" class="instance expander" onclick="toggleSection('i:id:SHA512:IsString:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:IsString">IsString</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a></span> <a href="src/Raaz-Hash-Sha512-Internal.html#line-29" class="link">Source</a> <a href="#t:SHA512" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:SHA512:IsString:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fromString">fromString</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> <a href="#v:fromString" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:SHA512:Storable:4" class="instance expander" onclick="toggleSection('i:id:SHA512:Storable:4')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Foreign-Storable.html#t:Storable">Storable</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a></span> <a href="src/Raaz-Hash-Sha512-Internal.html#line-25" class="link">Source</a> <a href="#t:SHA512" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:SHA512:Storable:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:sizeOf">sizeOf</a> :: <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</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:sizeOf" class="selflink">#</a></p><p class="src"><a href="#v:alignment">alignment</a> :: <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</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:alignment" class="selflink">#</a></p><p class="src"><a href="#v:peekElemOff">peekElemOff</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Foreign-Ptr.html#t:Ptr">Ptr</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</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/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> <a href="#v:peekElemOff" class="selflink">#</a></p><p class="src"><a href="#v:pokeElemOff">pokeElemOff</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Foreign-Ptr.html#t:Ptr">Ptr</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</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="Raaz-Hash-Sha512.html#t:SHA512">SHA512</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="#v:pokeElemOff" class="selflink">#</a></p><p class="src"><a href="#v:peekByteOff">peekByteOff</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Foreign-Ptr.html#t:Ptr">Ptr</a> b -&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/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> <a href="#v:peekByteOff" class="selflink">#</a></p><p class="src"><a href="#v:pokeByteOff">pokeByteOff</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Foreign-Ptr.html#t:Ptr">Ptr</a> b -&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="Raaz-Hash-Sha512.html#t:SHA512">SHA512</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="#v:pokeByteOff" class="selflink">#</a></p><p class="src"><a href="#v:peek">peek</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Foreign-Ptr.html#t:Ptr">Ptr</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</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="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> <a href="#v:peek" class="selflink">#</a></p><p class="src"><a href="#v:poke">poke</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Foreign-Ptr.html#t:Ptr">Ptr</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> -&gt; <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</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="#v:poke" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:SHA512:Equality:5" class="instance expander" onclick="toggleSection('i:id:SHA512:Equality:5')"></span> <a href="Raaz-Core-Types.html#t:Equality">Equality</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a></span> <a href="src/Raaz-Hash-Sha512-Internal.html#line-25" class="link">Source</a> <a href="#t:SHA512" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:SHA512:Equality:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:eq">eq</a> :: <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> -&gt; <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> -&gt; <a href="Raaz-Core-Types.html#t:Result">Result</a> <a href="src/Raaz-Core-Types-Equality.html#eq" class="link">Source</a> <a href="#v:eq" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:SHA512:EndianStore:6" class="instance expander" onclick="toggleSection('i:id:SHA512:EndianStore:6')"></span> <a href="Raaz-Core-Types.html#t:EndianStore">EndianStore</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a></span> <a href="src/Raaz-Hash-Sha512-Internal.html#line-25" class="link">Source</a> <a href="#t:SHA512" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:SHA512:EndianStore:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:store">store</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Foreign-Ptr.html#t:Ptr">Ptr</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> -&gt; <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</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="src/Raaz-Core-Types-Endian.html#store" class="link">Source</a> <a href="#v:store" class="selflink">#</a></p><p class="src"><a href="#v:load">load</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Foreign-Ptr.html#t:Ptr">Ptr</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</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="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> <a href="src/Raaz-Core-Types-Endian.html#load" class="link">Source</a> <a href="#v:load" class="selflink">#</a></p><p class="src"><a href="#v:adjustEndian">adjustEndian</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Foreign-Ptr.html#t:Ptr">Ptr</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</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/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="src/Raaz-Core-Types-Endian.html#adjustEndian" class="link">Source</a> <a href="#v:adjustEndian" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:SHA512:Encodable:7" class="instance expander" onclick="toggleSection('i:id:SHA512:Encodable:7')"></span> <a href="Raaz-Core-Encode.html#t:Encodable">Encodable</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a></span> <a href="src/Raaz-Hash-Sha512-Internal.html#line-27" class="link">Source</a> <a href="#t:SHA512" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:SHA512:Encodable:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toByteString">toByteString</a> :: <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> <a href="src/Raaz-Core-Encode-Internal.html#toByteString" class="link">Source</a> <a href="#v:toByteString" class="selflink">#</a></p><p class="src"><a href="#v:fromByteString">fromByteString</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> <a href="src/Raaz-Core-Encode-Internal.html#fromByteString" class="link">Source</a> <a href="#v:fromByteString" class="selflink">#</a></p><p class="src"><a href="#v:unsafeFromByteString">unsafeFromByteString</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> <a href="src/Raaz-Core-Encode-Internal.html#unsafeFromByteString" class="link">Source</a> <a href="#v:unsafeFromByteString" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:SHA512:Primitive:8" class="instance expander" onclick="toggleSection('i:id:SHA512:Primitive:8')"></span> <a href="Raaz-Core-Primitives.html#t:Primitive">Primitive</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a></span> <a href="src/Raaz-Hash-Sha512-Internal.html#line-35" class="link">Source</a> <a href="#t:SHA512" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:SHA512:Primitive:8" 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="Raaz-Core-Primitives.html#t:Implementation">Implementation</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> <a href="src/Raaz-Core-Primitives.html#Implementation" class="link">Source</a> <a href="#t:Implementation" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:blockSize">blockSize</a> :: <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> -&gt; <a href="Raaz-Core-Types.html#t:BYTES">BYTES</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/Raaz-Core-Primitives.html#blockSize" class="link">Source</a> <a href="#v:blockSize" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:SHA512:Hash:9" class="instance expander" onclick="toggleSection('i:id:SHA512:Hash:9')"></span> <a href="Raaz-Hash-Internal.html#t:Hash">Hash</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a></span> <a href="src/Raaz-Hash-Sha512-Internal.html#line-51" class="link">Source</a> <a href="#t:SHA512" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:SHA512:Hash:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:additionalPadBlocks">additionalPadBlocks</a> :: <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> -&gt; <a href="Raaz-Core-Primitives.html#t:BLOCKS">BLOCKS</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> <a href="src/Raaz-Hash-Internal.html#additionalPadBlocks" class="link">Source</a> <a href="#v:additionalPadBlocks" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:SHA512:Initialisable:10" class="instance expander" onclick="toggleSection('i:id:SHA512:Initialisable:10')"></span> <a href="Raaz-Core-Memory.html#t:Initialisable">Initialisable</a> (<a href="Raaz-Hash-Internal.html#t:HashMemory">HashMemory</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a>) ()</span> <a href="src/Raaz-Hash-Sha512-Internal.html#line-39" class="link">Source</a> <a href="#t:SHA512" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:SHA512:Initialisable:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:initialise">initialise</a> :: () -&gt; <a href="Raaz-Core-Memory.html#t:MT">MT</a> (<a href="Raaz-Hash-Internal.html#t:HashMemory">HashMemory</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a>) () <a href="src/Raaz-Core-Memory.html#initialise" class="link">Source</a> <a href="#v:initialise" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:SHA512:Implementation:11" class="instance expander" onclick="toggleSection('i:id:SHA512:Implementation:11')"></span> <span class="keyword">type</span> <a href="Raaz-Core-Primitives.html#t:Implementation">Implementation</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a></span> <a href="src/Raaz-Hash-Sha512-Internal.html#line-37" class="link">Source</a> <a href="#t:SHA512" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:SHA512:Implementation:11" class="inst-details hide"><div class="src"><span class="keyword">type</span> <a href="Raaz-Core-Primitives.html#t:Implementation">Implementation</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> = <a href="Raaz-Hash-Internal.html#t:SomeHashI">SomeHashI</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:sha512" class="def">sha512</a> :: <a href="Raaz-Core-ByteSource.html#t:PureByteSource">PureByteSource</a> src =&gt; src -&gt; <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> <a href="src/Raaz-Hash-Sha512.html#sha512" class="link">Source</a> <a href="#v:sha512" class="selflink">#</a></p><div class="doc"><p>Compute the sha512 hash of an instance of <code><a href="Raaz-Core-ByteSource.html#t:PureByteSource">PureByteSource</a></code>. Use
 this for computing the sha512 hash of a strict or lazy byte string.</p></div></div><div class="top"><p class="src"><a id="v:sha512File" class="def">sha512File</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:FilePath">FilePath</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="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> <a href="src/Raaz-Hash-Sha512.html#sha512File" class="link">Source</a> <a href="#v:sha512File" class="selflink">#</a></p><div class="doc"><p>Compute the sha512 hash of a file.</p></div></div><div class="top"><p class="src"><a id="v:sha512Source" class="def">sha512Source</a> :: <a href="Raaz-Core-ByteSource.html#t:ByteSource">ByteSource</a> src =&gt; 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="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a> <a href="src/Raaz-Hash-Sha512.html#sha512Source" class="link">Source</a> <a href="#v:sha512Source" class="selflink">#</a></p><div class="doc"><p>Compute the sha512 hash of a general byte source.</p></div></div><h1 id="g:2">HMAC computation using SHA512</h1><div class="top"><p class="src"><a id="v:hmacSha512" class="def">hmacSha512</a> <a href="src/Raaz-Hash-Sha512.html#hmacSha512" class="link">Source</a> <a href="#v:hmacSha512" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Raaz-Core-ByteSource.html#t:PureByteSource">PureByteSource</a> src</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; <a href="Raaz-Core-Primitives.html#t:Key">Key</a> (<a href="Raaz-Hash.html#t:HMAC">HMAC</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a>)</td><td class="doc"><p>Key to use</p></td></tr><tr><td class="src">-&gt; src</td><td class="doc"><p>pure source whose hmac is to be
 computed</p></td></tr><tr><td class="src">-&gt; <a href="Raaz-Hash.html#t:HMAC">HMAC</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Compute the message authentication code using hmac-sha512.</p></div></div><div class="top"><p class="src"><a id="v:hmacSha512File" class="def">hmacSha512File</a> <a href="src/Raaz-Hash-Sha512.html#hmacSha512File" class="link">Source</a> <a href="#v:hmacSha512File" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Raaz-Core-Primitives.html#t:Key">Key</a> (<a href="Raaz-Hash.html#t:HMAC">HMAC</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a>)</td><td class="doc"><p>Key to use</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:FilePath">FilePath</a></td><td class="doc"><p>File whose hmac is to be computed</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="Raaz-Hash.html#t:HMAC">HMAC</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a>)</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Compute the message authentication code for a file.</p></div></div><div class="top"><p class="src"><a id="v:hmacSha512Source" class="def">hmacSha512Source</a> :: <a href="Raaz-Core-ByteSource.html#t:ByteSource">ByteSource</a> src =&gt; <a href="Raaz-Core-Primitives.html#t:Key">Key</a> (<a href="Raaz-Hash.html#t:HMAC">HMAC</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a>) -&gt; 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="Raaz-Hash.html#t:HMAC">HMAC</a> <a href="Raaz-Hash-Sha512.html#t:SHA512">SHA512</a>) <a href="src/Raaz-Hash-Sha512.html#hmacSha512Source" class="link">Source</a> <a href="#v:hmacSha512Source" class="selflink">#</a></p><div class="doc"><p>Compute the message authetication code for a generic byte source.</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>