â ī¸ The legacy EVP_PKEY MAC signature implementations
| Use Case | Command | Description |
|---|---|---|
| đ HMAC signing (legacy) | EVP_PKEY_new_mac_key(EVP_PKEY_HMAC, NULL, key, keylen) | Create HMAC key for use with EVP_DigestSignInit |
| đ SipHash signing (legacy) | EVP_PKEY_new_mac_key(EVP_PKEY_SIPHASH, NULL, key, 16) | Create SipHash key (16-byte key) |
| đ Poly1305 signing (legacy) | EVP_PKEY_new_raw_private_key(EVP_PKEY_POLY1305, NULL, key, 32) | Create Poly1305 key (32-byte key) |
| đ CMAC signing (legacy) | EVP_PKEY_new_CMAC_key(NULL, key, keylen, cipher) | Create CMAC key with cipher (e.g., AES) |
â ī¸ The algorithms described here have legacy support for creating MACs using EVP_DigestSignInit(3) and related functions. This is not the preferred way of creating MACs. Instead you should use the newer EVP_MAC_init(3) functions. This mechanism is provided for backwards compatibility with older versions of OpenSSL.
The same signature parameters can be set using EVP_PKEY_CTX_set_params() as can be set via EVP_MAC_CTX_set_params() for the underlying EVP_MAC. See EVP_MAC-HMAC(7), EVP_MAC-Siphash(7), EVP_MAC-Poly1305(7) and EVP_MAC-CMAC(7) for details.
See EVP_PKEY-HMAC(7), EVP_PKEY-Siphash(7), EVP_PKEY-Poly1305(7) or EVP_PKEY-CMAC(7) for details about parameters that are supported during the creation of an EVP_PKEY.
đ SEE ALSO: EVP_MAC_init(3), EVP_DigestSignInit(3), EVP_PKEY-HMAC(7), EVP_PKEY-Siphash(7), EVP_PKEY-Poly1305(7), EVP_PKEY-CMAC(7), EVP_MAC-HMAC(7), EVP_MAC-Siphash(7), EVP_MAC-Poly1305(7), EVP_MAC-CMAC(7), provider-signature(7)
ÂŠī¸ Copyright 2020 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>.
Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 17:37 @2600:1f28:365:80b0:f8a4:e764:d6bb:8e66
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format