EVP_MAC-BLAKE2(7ossl)
π EVP_MAC-BLAKE2 β the OpenSSL manual, but make it group chat π
okay so bestie, listen. this is the EVP_MAC-BLAKE2(7ossl) page from the OpenSSL manual (yep, that OpenSSL), and it's literally all about the BLAKE2 EVP_MAC implementations. it's short, it's cute, and you're gonna slay it. π«Ά
β¨ NAME β¨
EVP_MAC-BLAKE2, EVP_MAC-BLAKE2BMAC, EVP_MAC-BLAKE2SMAC β the BLAKE2 EVP_MAC implementations. that's the whole name section, no cap. π
πΈ DESCRIPTION πΈ
so basically: support for computing BLAKE2 MACs through the EVP_MAC API. that's the vibe. π
π Identity π
these implementations are identified with one of these names and properties, to be used with EVP_MAC_fetch(). write these down, bestie:
"BLAKE2BMAC", "provider=default"
"BLAKE2SMAC", "provider=default"
like, that's their whole government name. π
π¦ Supported parameters π¦
the general description of these parameters can be found in "PARAMETERS" in EVP_MAC(3). (go read it, i'll wait π)
all these parameters (except for "block-size") can be set with EVP_MAC_CTX_set_params(). furthermore, the "size" parameter can be retrieved with EVP_MAC_CTX_get_params(), or with EVP_MAC_CTX_get_mac_size(). and the length of the "size" parameter should not exceed that of a size_t β that's a real one, don't be messy. π
likewise, the "block-size" parameter can be retrieved with EVP_MAC_CTX_get_params(), or with EVP_MAC_CTX_get_block_size(). iconic symmetry, love that for them. β¨
"key"(OSSL_MAC_PARAM_KEY) <octet string> β sets the MAC key. it may be at most 64 bytes for BLAKE2BMAC or 32 for BLAKE2SMAC, and at least 1 byte in both cases. setting this parameter is identical to passing a key toEVP_MAC_init(3). same energy, different door. π"custom"(OSSL_MAC_PARAM_CUSTOM) <octet string> β sets the customization/personalization string. it's an optional value of at most 16 bytes for BLAKE2BMAC or 8 for BLAKE2SMAC, and is empty by default. make it yours, it's giving personal branding. π"salt"(OSSL_MAC_PARAM_SALT) <octet string> β sets the salt. it's an optional value of at most 16 bytes for BLAKE2BMAC or 8 for BLAKE2SMAC, and is empty by default. a lil seasoning, optional but tasty. π§"size"(OSSL_MAC_PARAM_SIZE) <unsigned integer> β sets the MAC size. it can be any number between 1 and 32 forEVP_MAC_BLAKE2Sor between 1 and 64 forEVP_MAC_BLAKE2B. it is 32 and 64 respectively by default. pick your size, main character. π"block-size"(OSSL_MAC_PARAM_BLOCK_SIZE) <unsigned integer> β gets the MAC block size. it is 64 forEVP_MAC_BLAKE2Sand 128 forEVP_MAC_BLAKE2B. note the word gets β this one's read-only, she's not taking requests. π
quick vibe check: remember that "block-size" is the odd one out β it can't be set, only retrieved. don't come for me, that's just what the page says. π
π SEE ALSO π
go touch some grass and also read these, bestie:
EVP_MAC_CTX_get_params(3)EVP_MAC_CTX_set_params(3)- "PARAMETERS" in
EVP_MAC(3) OSSL_PARAM(3)
β HISTORY β
the macros and functions described here were added to OpenSSL 3.0. so yes, she's a 3.0 girly. π
π COPYRIGHT π
Copyright 2018-2021 The OpenSSL Project Authors. All Rights Reserved.
licensed under the Apache License 2.0 (the "License"). you may not use this file except in compliance with the License. you can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>. read the license, it's free real estate. π
and that's the whole page, bestie, you ate. π«Ά this was EVP_MAC-BLAKE2(7ossl) from OpenSSL, source version 3.5.6, dated 2026-04-07 β mwah, go forth and MAC responsibly. πβ¨π
π¦ where this page comes from
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms