man > EVP_MAC-Poly1305(7)

đŸˇī¸ NAME

EVP_MAC-Poly1305 - The Poly1305 EVP_MAC implementation

🚀 Quick Reference

Use CaseCommandDescription
🔍 Fetch MACEVP_MAC_fetch(NULL, "POLY1305", NULL)Acquire the Poly1305 MAC implementation
🔑 Set KeyEVP_MAC_CTX_set_params(ctx, params) with OSSL_MAC_PARAM_KEYSet the 256-bit key (must be unique per message)
🚀 Init MACEVP_MAC_init(ctx, key, keylen, NULL)Initialize MAC context with key
đŸ“Ĩ Update MACEVP_MAC_update(ctx, data, datalen)Feed data to authenticate
✅ FinalizeEVP_MAC_final(ctx, out, &outlen, outsize)Compute the 16-byte authentication tag
📏 Get SizeEVP_MAC_CTX_get_mac_size(ctx) or EVP_MAC_CTX_get_params(ctx, params) with OSSL_MAC_PARAM_SIZERetrieve MAC output size (16 bytes)

📖 Description

Support for computing Poly1305 MACs through the EVP_MAC API.

🔑 Identity

This implementation is identified with this name and properties, to be used with EVP_MAC_fetch():

"POLY1305", "provider=default"

âš™ī¸ Supported Parameters

The general description of these parameters can be found in "PARAMETERS" in EVP_MAC(3).

The following parameter can be set with EVP_MAC_CTX_set_params():

The following parameters can be retrieved with EVP_MAC_CTX_get_params():

The "size" parameter can also be retrieved with EVP_MAC_CTX_get_mac_size(). The length of the "size" parameter should not exceed that of an unsigned int.

📝 Notes

The OpenSSL implementation of the Poly 1305 MAC corresponds to RFC 7539.

It is critical to never reuse the key. The security implication noted in RFC 8439 applies equally to the OpenSSL implementation.

📚 See Also

ÂŠī¸ 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>.

3.0.2 2026-06-02 EVP_MAC-POLY1305(7SSL)

EVP_MAC-Poly1305(7)
đŸˇī¸ NAME 🚀 Quick Reference 📖 Description
🔑 Identity âš™ī¸ Supported Parameters
📝 Notes 📚 See Also ÂŠī¸ Copyright

Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 19:47 @2600:1f28:365:80b0:b91e:58eb:6587:15c8
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format