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

NAME

6       EVP_MAC-BLAKE2, EVP_MAC-BLAKE2BMAC, EVP_MAC-BLAKE2SMAC - The BLAKE2
7       EVP_MAC implementations
8

DESCRIPTION

10       Support for computing BLAKE2 MACs through the EVP_MAC API.
11
12   Identity
13       These implementations are identified with one of these names and
14       properties, to be used with EVP_MAC_fetch():
15
16       "BLAKE2BMAC", "provider=default"
17       "BLAKE2SMAC", "provider=default"
18
19   Supported parameters
20       The general description of these parameters can be found in
21       "PARAMETERS" in EVP_MAC(3).
22
23       All these parameters can be set with EVP_MAC_CTX_set_params().
24       Furthermore, the "size" parameter can be retrieved with
25       EVP_MAC_CTX_get_params(), or with EVP_MAC_CTX_get_mac_size().  The
26       length of the "size" parameter should not exceed that of a size_t.
27       Likewise, the "block-size" parameter can be retrieved with
28       EVP_MAC_CTX_get_params(), or with EVP_MAC_CTX_get_block_size().
29
30       "key" (OSSL_MAC_PARAM_KEY) <octet string>
31           Sets the MAC key.  It may be at most 64 bytes for BLAKE2BMAC or 32
32           for BLAKE2SMAC and at least 1 byte in both cases.  Setting this
33           parameter is identical to passing a key to EVP_MAC_init(3).
34
35       "custom" (OSSL_MAC_PARAM_CUSTOM) <octet string>
36           Sets the custom value.  It is an optional value of at most 16 bytes
37           for BLAKE2BMAC or 8 for BLAKE2SMAC, and is empty by default.
38
39       "salt" (OSSL_MAC_PARAM_SALT) <octet string>
40           Sets the salt.  It is an optional value of at most 16 bytes for
41           BLAKE2BMAC or 8 for BLAKE2SMAC, and is empty by default.
42
43       "size" (OSSL_MAC_PARAM_SIZE) <unsigned integer>
44           Sets the MAC size.  It can be any number between 1 and 32 for
45           EVP_MAC_BLAKE2S or between 1 and 64 for EVP_MAC_BLAKE2B.  It is 32
46           and 64 respectively by default.
47
48       "block-size" (OSSL_MAC_PARAM_SIZE) <unsigned integer>
49           Gets the MAC block size.  By default, it is 64 for EVP_MAC_BLAKE2S
50           and 128 for EVP_MAC_BLAKE2B.
51

SEE ALSO

53       EVP_MAC_CTX_get_params(3), EVP_MAC_CTX_set_params(3), "PARAMETERS" in
54       EVP_MAC(3), OSSL_PARAM(3)
55

HISTORY

57       The macros and functions described here were added to OpenSSL 3.0.
58
60       Copyright 2018-2021 The OpenSSL Project Authors. All Rights Reserved.
61
62       Licensed under the Apache License 2.0 (the "License").  You may not use
63       this file except in compliance with the License.  You can obtain a copy
64       in the file LICENSE in the source distribution or at
65       <https://www.openssl.org/source/license.html>.
66
67
68
693.0.5                             2022-11-01             EVP_MAC-BLAKE2(7ossl)
Impressum