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. The mode of the
32           cipher must be CBC.
33
34       "properties" (OSSL_MAC_PARAM_PROPERTIES) <UTF8 string>
35           Sets the properties to be queried when trying to fetch the
36           underlying cipher.  This must be given together with the cipher
37           naming parameter to be considered valid.
38
39       The following parameters can be retrieved with
40       EVP_MAC_CTX_get_params():
41
42       "size" (OSSL_MAC_PARAM_SIZE) <unsigned integer>
43           The "size" parameter can also be retrieved with with
44           EVP_MAC_CTX_get_mac_size().  The length of the "size" parameter is
45           equal to that of an unsigned int.
46
47       "block-size" (OSSL_MAC_PARAM_SIZE) <unsigned integer>
48           Gets the MAC block size.  The "block-size" parameter can also be
49           retrieved with EVP_MAC_CTX_get_block_size().
50

SEE ALSO

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