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

NAME

6       EVP_MAC-CMAC - The CMAC EVP_MAC implementation
7

DESCRIPTION

9       Support for computing CMAC MACs through the EVP_MAC API.
10
11       This implementation uses EVP_CIPHER functions to get access to the
12       underlying cipher.
13
14   Identity
15       This implementation is identified with this name and properties, to be
16       used with EVP_MAC_fetch():
17
18       "CMAC", "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       "cipher" (OSSL_MAC_PARAM_CIPHER) <UTF8 string>
31           Sets the name of the underlying cipher 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 cipher.  This must be given together with the cipher
36           naming parameter to be considered valid.
37
38       The following parameters can be retrieved with
39       EVP_MAC_CTX_get_params():
40
41       "size" (OSSL_MAC_PARAM_SIZE) <unsigned integer>
42           The "size" parameter can also be retrieved with with
43           EVP_MAC_CTX_get_mac_size().  The length of the "size" parameter is
44           equal to that of an unsigned int.
45
46       "block-size" (OSSL_MAC_PARAM_SIZE) <unsigned integer>
47           Gets the MAC block size.  The "block-size" parameter can also be
48           retrieved with EVP_MAC_CTX_get_block_size().
49

SEE ALSO

51       EVP_MAC_CTX_get_params(3), EVP_MAC_CTX_set_params(3), "PARAMETERS" in
52       EVP_MAC(3), OSSL_PARAM(3)
53
55       Copyright 2018-2021 The OpenSSL Project Authors. All Rights Reserved.
56
57       Licensed under the Apache License 2.0 (the "License").  You may not use
58       this file except in compliance with the License.  You can obtain a copy
59       in the file LICENSE in the source distribution or at
60       <https://www.openssl.org/source/license.html>.
61
62
63
643.0.5                             2022-11-01               EVP_MAC-CMAC(7ossl)
Impressum