{
    "content": [
        {
            "type": "text",
            "text": "# EVP_MAC-BLAKE2SMAC (man)\n\n## NAME\n\nEVPMAC-BLAKE2, EVPMAC-BLAKE2BMAC, EVPMAC-BLAKE2SMAC - The BLAKE2 EVPMAC implementations\n\n## DESCRIPTION\n\nSupport for computing BLAKE2 MACs through the EVPMAC API.\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION** (2 subsections)\n- **SEE ALSO**\n- **HISTORY**\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "EVP_MAC-BLAKE2SMAC",
        "section": "",
        "mode": "man",
        "summary": "EVPMAC-BLAKE2, EVPMAC-BLAKE2BMAC, EVPMAC-BLAKE2SMAC - The BLAKE2 EVPMAC implementations",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "EVPMACCTXgetparams",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/EVPMACCTXgetparams/3/json"
            },
            {
                "name": "EVPMACCTXsetparams",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/EVPMACCTXsetparams/3/json"
            },
            {
                "name": "EVPMAC",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/EVPMAC/3/json"
            },
            {
                "name": "OSSLPARAM",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/OSSLPARAM/3/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": [
                    {
                        "name": "Identity",
                        "lines": 6
                    },
                    {
                        "name": "Supported parameters",
                        "lines": 29
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "HISTORY",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 9,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "EVPMAC-BLAKE2, EVPMAC-BLAKE2BMAC, EVPMAC-BLAKE2SMAC - The BLAKE2 EVPMAC implementations\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Support for computing BLAKE2 MACs through the EVPMAC API.\n",
                "subsections": [
                    {
                        "name": "Identity",
                        "content": "These implementations are identified with one of these names and properties, to be used with\nEVPMACfetch():\n\n\"BLAKE2BMAC\", \"provider=default\"\n\"BLAKE2SMAC\", \"provider=default\"\n"
                    },
                    {
                        "name": "Supported parameters",
                        "content": "The general description of these parameters can be found in \"PARAMETERS\" in EVPMAC(3).\n\nAll these parameters can be set with EVPMACCTXsetparams().  Furthermore, the \"size\"\nparameter can be retrieved with EVPMACCTXgetparams(), or with EVPMACCTXgetmacsize().\nThe length of the \"size\" parameter should not exceed that of a sizet.  Likewise, the \"block-\nsize\" parameter can be retrieved with EVPMACCTXgetparams(), or with\nEVPMACCTXgetblocksize().\n\n\"key\" (OSSLMACPARAMKEY) <octet string>\nSets the MAC key.  It may be at most 64 bytes for BLAKE2BMAC or 32 for BLAKE2SMAC and at\nleast 1 byte in both cases.  Setting this parameter is identical to passing a key to\nEVPMACinit(3).\n\n\"custom\" (OSSLMACPARAMCUSTOM) <octet string>\nSets the custom value.  It is an optional value of at most 16 bytes for BLAKE2BMAC or 8\nfor BLAKE2SMAC, and is empty by default.\n\n\"salt\" (OSSLMACPARAMSALT) <octet string>\nSets the salt.  It is an optional value of at most 16 bytes for BLAKE2BMAC or 8 for\nBLAKE2SMAC, and is empty by default.\n\n\"size\" (OSSLMACPARAMSIZE) <unsigned integer>\nSets the MAC size.  It can be any number between 1 and 32 for EVPMACBLAKE2S or between\n1 and 64 for EVPMACBLAKE2B.  It is 32 and 64 respectively by default.\n\n\"block-size\" (OSSLMACPARAMSIZE) <unsigned integer>\nGets the MAC block size.  By default, it is 64 for EVPMACBLAKE2S and 128 for\nEVPMACBLAKE2B.\n"
                    }
                ]
            },
            "SEE ALSO": {
                "content": "EVPMACCTXgetparams(3), EVPMACCTXsetparams(3), \"PARAMETERS\" in EVPMAC(3),\nOSSLPARAM(3)\n",
                "subsections": []
            },
            "HISTORY": {
                "content": "The macros and functions described here were added to OpenSSL 3.0.\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright 2018-2021 The OpenSSL Project Authors. All Rights Reserved.\n\nLicensed under the Apache License 2.0 (the \"License\").  You may not use this file except in\ncompliance with the License.  You can obtain a copy in the file LICENSE in the source\ndistribution or at <https://www.openssl.org/source/license.html>.\n\n\n\n3.0.2                                        2026-06-02                         EVPMAC-BLAKE2(7SSL)",
                "subsections": []
            }
        }
    }
}