1EVP_MAC-HMAC(7ossl)                 OpenSSL                EVP_MAC-HMAC(7ossl)
2
3
4

NAME

6       EVP_MAC-HMAC - The HMAC EVP_MAC implementation
7

DESCRIPTION

9       Support for computing HMAC MACs through the EVP_MAC API.
10
11       This implementation uses EVP_MD functions to get access to the
12       underlying digest.
13
14   Identity
15       This implementation is identified with this name and properties, to be
16       used with EVP_MAC_fetch():
17
18       "HMAC", "provider=default" or "provider=fips"
19
20   Supported parameters
21       The general description of these parameters can be found in
22       "PARAMETERS" in EVP_MAC(3).
23
24       The following parameter can be set with EVP_MAC_CTX_set_params():
25
26       "key" (OSSL_MAC_PARAM_KEY) <octet string>
27           Sets the MAC key.  Setting this parameter is identical to passing a
28           key to EVP_MAC_init(3).
29
30       "digest" (OSSL_MAC_PARAM_DIGEST) <UTF8 string>
31           Sets the name of the underlying digest to be used.
32
33       "properties" (OSSL_MAC_PARAM_PROPERTIES) <UTF8 string>
34           Sets the properties to be queried when trying to fetch the
35           underlying digest.  This must be given together with the digest
36           naming parameter ("digest", or OSSL_MAC_PARAM_DIGEST) to be
37           considered valid.
38
39       "digest-noinit" (OSSL_MAC_PARAM_DIGEST_NOINIT) <integer>
40           A flag to set the MAC digest to not initialise the implementation
41           specific data.  The value 0 or 1 is expected.
42
43       "digest-oneshot" (OSSL_MAC_PARAM_DIGEST_ONESHOT) <integer>
44           A flag to set the MAC digest to be a one-shot operation.  The value
45           0 or 1 is expected.
46
47       "tls-data-size" (OSSL_MAC_PARAM_TLS_DATA_SIZE) <unsigned integer>
48
49       The following parameter can be retrieved with EVP_MAC_CTX_get_params():
50
51       "size" (OSSL_MAC_PARAM_SIZE) <unsigned integer>
52           The "size" parameter can also be retrieved with
53           EVP_MAC_CTX_get_mac_size().  The length of the "size" parameter is
54           equal to that of an unsigned int.
55
56       "block-size" (OSSL_MAC_PARAM_SIZE) <unsigned integer>
57           Gets the MAC block size.  The "block-size" parameter can also be
58           retrieved with EVP_MAC_CTX_get_block_size().
59

SEE ALSO

61       EVP_MAC_CTX_get_params(3), EVP_MAC_CTX_set_params(3), "PARAMETERS" in
62       EVP_MAC(3), OSSL_PARAM(3), HMAC(3)
63
65       Copyright 2018-2021 The OpenSSL Project Authors. All Rights Reserved.
66
67       Licensed under the Apache License 2.0 (the "License").  You may not use
68       this file except in compliance with the License.  You can obtain a copy
69       in the file LICENSE in the source distribution or at
70       <https://www.openssl.org/source/license.html>.
71
72
73
743.0.5                             2022-07-05               EVP_MAC-HMAC(7ossl)
Impressum