5 EVP_MAC-BLAKE2, EVP_MAC-BLAKE2BMAC, EVP_MAC-BLAKE2SMAC
6 - The BLAKE2 EVP_MAC implementations
10 Support for computing BLAKE2 MACs through the B<EVP_MAC> API.
14 These implementations are identified with one of these names and
15 properties, to be used with EVP_MAC_fetch():
19 =item "BLAKE2BMAC", "provider=default"
21 =item "BLAKE2SMAC", "provider=default"
25 =head2 Supported parameters
27 The general description of these parameters can be found in
28 L<EVP_MAC(3)/PARAMETERS>.
30 All these parameters can be set with EVP_MAC_CTX_set_params().
31 Furthermore, the "size" parameter can be retrieved with
32 EVP_MAC_CTX_get_params(), or with EVP_MAC_CTX_get_mac_size().
33 The length of the "size" parameter should not exceed that of a B<size_t>.
37 =item "key" (B<OSSL_MAC_PARAM_KEY>) <octet string>
40 It may be at most 64 bytes for BLAKE2BMAC or 32 for BLAKE2SMAC and at
41 least 1 byte in both cases.
42 Setting this parameter is identical to passing a I<key> to L<EVP_MAC_init(3)>.
44 =item "custom" (B<OSSL_MAC_PARAM_CUSTOM>) <octet string>
46 Sets the custom value.
47 It is an optional value of at most 16 bytes for BLAKE2BMAC or 8 for
48 BLAKE2SMAC, and is empty by default.
50 =item "salt" (B<OSSL_MAC_PARAM_SALT>) <octet string>
53 It is an optional value of at most 16 bytes for BLAKE2BMAC or 8 for
54 BLAKE2SMAC, and is empty by default.
56 =item "size" (B<OSSL_MAC_PARAM_SIZE>) <unsigned integer>
59 It can be any number between 1 and 32 for EVP_MAC_BLAKE2S or between 1
60 and 64 for EVP_MAC_BLAKE2B.
61 It is 32 and 64 respectively by default.
67 L<EVP_MAC_CTX_get_params(3)>, L<EVP_MAC_CTX_set_params(3)>,
68 L<EVP_MAC(3)/PARAMETERS>, L<OSSL_PARAM(3)>
72 The macros and functions described here were added to OpenSSL 3.0.
76 Copyright 2018-2020 The OpenSSL Project Authors. All Rights Reserved.
78 Licensed under the Apache License 2.0 (the "License"). You may not use
79 this file except in compliance with the License. You can obtain a copy
80 in the file LICENSE in the source distribution or at
81 L<https://www.openssl.org/source/license.html>.