iv></div></div><a id="id-1.11.7.38.7.3.2" class="indexterm"></a><pre class="synopsis">
hmac(data text, key text, type text) returns bytea
hmac(data bytea, key bytea, type text) returns bytea
</pre><p>
    Calculates hashed MAC for <em class="parameter"><code>data</code></em> with key <em class="parameter"><code>key</code></em>.
    <em class="parameter"><code>type</code></em> is the same as in <code class="function">digest()</code>.
   </p><p>
    This is similar to <code class="function">digest()</code> bu