130 lines
4.6 KiB
HTML
130 lines
4.6 KiB
HTML
|
<?xml version="1.0" ?>
|
||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<head>
|
||
|
<title>EVP_MAC-HMAC</title>
|
||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||
|
<link rev="made" href="mailto:" />
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
|
||
|
|
||
|
|
||
|
<ul id="index">
|
||
|
<li><a href="#NAME">NAME</a></li>
|
||
|
<li><a href="#DESCRIPTION">DESCRIPTION</a>
|
||
|
<ul>
|
||
|
<li><a href="#Identity">Identity</a></li>
|
||
|
<li><a href="#Supported-parameters">Supported parameters</a></li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
<li><a href="#SEE-ALSO">SEE ALSO</a></li>
|
||
|
<li><a href="#COPYRIGHT">COPYRIGHT</a></li>
|
||
|
</ul>
|
||
|
|
||
|
<h1 id="NAME">NAME</h1>
|
||
|
|
||
|
<p>EVP_MAC-HMAC - The HMAC EVP_MAC implementation</p>
|
||
|
|
||
|
<h1 id="DESCRIPTION">DESCRIPTION</h1>
|
||
|
|
||
|
<p>Support for computing HMAC MACs through the <b>EVP_MAC</b> API.</p>
|
||
|
|
||
|
<p>This implementation uses EVP_MD functions to get access to the underlying digest.</p>
|
||
|
|
||
|
<h2 id="Identity">Identity</h2>
|
||
|
|
||
|
<p>This implementation is identified with this name and properties, to be used with EVP_MAC_fetch():</p>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<dt id="HMAC-provider-default-or-provider-fips">"HMAC", "provider=default" or "provider=fips"</dt>
|
||
|
<dd>
|
||
|
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
<h2 id="Supported-parameters">Supported parameters</h2>
|
||
|
|
||
|
<p>The general description of these parameters can be found in <a href="../man3/EVP_MAC.html">"PARAMETERS" in EVP_MAC(3)</a>.</p>
|
||
|
|
||
|
<p>The following parameter can be set with EVP_MAC_CTX_set_params():</p>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<dt id="key-OSSL_MAC_PARAM_KEY-octet-string">"key" (<b>OSSL_MAC_PARAM_KEY</b>) <octet string></dt>
|
||
|
<dd>
|
||
|
|
||
|
<p>Sets the MAC key. Setting this parameter is identical to passing a <i>key</i> to <a href="../man3/EVP_MAC_init.html">EVP_MAC_init(3)</a>.</p>
|
||
|
|
||
|
</dd>
|
||
|
<dt id="digest-OSSL_MAC_PARAM_DIGEST-UTF8-string">"digest" (<b>OSSL_MAC_PARAM_DIGEST</b>) <UTF8 string></dt>
|
||
|
<dd>
|
||
|
|
||
|
<p>Sets the name of the underlying digest to be used.</p>
|
||
|
|
||
|
</dd>
|
||
|
<dt id="properties-OSSL_MAC_PARAM_PROPERTIES-UTF8-string">"properties" (<b>OSSL_MAC_PARAM_PROPERTIES</b>) <UTF8 string></dt>
|
||
|
<dd>
|
||
|
|
||
|
<p>Sets the properties to be queried when trying to fetch the underlying digest. This must be given together with the digest naming parameter ("digest", or <b>OSSL_MAC_PARAM_DIGEST</b>) to be considered valid.</p>
|
||
|
|
||
|
</dd>
|
||
|
<dt id="digest-noinit-OSSL_MAC_PARAM_DIGEST_NOINIT-integer">"digest-noinit" (<b>OSSL_MAC_PARAM_DIGEST_NOINIT</b>) <integer></dt>
|
||
|
<dd>
|
||
|
|
||
|
<p>A flag to set the MAC digest to not initialise the implementation specific data. The value 0 or 1 is expected.</p>
|
||
|
|
||
|
</dd>
|
||
|
<dt id="digest-oneshot-OSSL_MAC_PARAM_DIGEST_ONESHOT-integer">"digest-oneshot" (<b>OSSL_MAC_PARAM_DIGEST_ONESHOT</b>) <integer></dt>
|
||
|
<dd>
|
||
|
|
||
|
<p>A flag to set the MAC digest to be a one-shot operation. The value 0 or 1 is expected.</p>
|
||
|
|
||
|
</dd>
|
||
|
<dt id="tls-data-size-OSSL_MAC_PARAM_TLS_DATA_SIZE-unsigned-integer">"tls-data-size" (<b>OSSL_MAC_PARAM_TLS_DATA_SIZE</b>) <unsigned integer></dt>
|
||
|
<dd>
|
||
|
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
<p>The following parameter can be retrieved with EVP_MAC_CTX_get_params():</p>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<dt id="size-OSSL_MAC_PARAM_SIZE-unsigned-integer">"size" (<b>OSSL_MAC_PARAM_SIZE</b>) <unsigned integer></dt>
|
||
|
<dd>
|
||
|
|
||
|
<p>The "size" parameter can also be retrieved with EVP_MAC_CTX_get_mac_size(). The length of the "size" parameter is equal to that of an <b>unsigned int</b>.</p>
|
||
|
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
<dl>
|
||
|
|
||
|
<dt id="block-size-OSSL_MAC_PARAM_BLOCK_SIZE-unsigned-integer">"block-size" (<b>OSSL_MAC_PARAM_BLOCK_SIZE</b>) <unsigned integer></dt>
|
||
|
<dd>
|
||
|
|
||
|
<p>Gets the MAC block size. The "block-size" parameter can also be retrieved with EVP_MAC_CTX_get_block_size().</p>
|
||
|
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
<h1 id="SEE-ALSO">SEE ALSO</h1>
|
||
|
|
||
|
<p><a href="../man3/EVP_MAC_CTX_get_params.html">EVP_MAC_CTX_get_params(3)</a>, <a href="../man3/EVP_MAC_CTX_set_params.html">EVP_MAC_CTX_set_params(3)</a>, <a href="../man3/EVP_MAC.html">"PARAMETERS" in EVP_MAC(3)</a>, <a href="../man3/OSSL_PARAM.html">OSSL_PARAM(3)</a>, <a href="../man3/HMAC.html">HMAC(3)</a></p>
|
||
|
|
||
|
<h1 id="COPYRIGHT">COPYRIGHT</h1>
|
||
|
|
||
|
<p>Copyright 2018-2023 The OpenSSL Project Authors. All Rights Reserved.</p>
|
||
|
|
||
|
<p>Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <a href="https://www.openssl.org/source/license.html">https://www.openssl.org/source/license.html</a>.</p>
|
||
|
|
||
|
|
||
|
</body>
|
||
|
|
||
|
</html>
|
||
|
|
||
|
|