EVP_MAC-POLY1305(7ossl)
π EVP_MAC-POLY1305(7ossl) β the OpenSSL girlies' guide π
okay bestie, so this is a page from the OpenSSL manual set β the EVP_MAC-POLY1305 one β and it's honestly such a slay little doc. Let's get into it β¨
β¨ NAME β¨
EVP_MAC-Poly1305 β the Poly1305 EVP_MAC implementation. that's it, that's the whole vibe π
π¦ DESCRIPTION π¦
So basically: this is support for computing Poly1305 MACs through the EVP_MAC API. iconic behavior, no notes π
πΈ Identity πΈ
This implementation is identified with this name and these properties, which you'd use with EVP_MAC_fetch():
"POLY1305", "provider=default"
like, that's its whole government name π«Ά
π Supported parameters π
The general description of these parameters lives in "PARAMETERS" in EVP_MAC(3) β go read that too, iykyk.
The following parameter can be set with EVP_MAC_CTX_set_params():
"key"(OSSL_MAC_PARAM_KEY)<octet string>β sets the MAC key. Setting this parameter is identical to passing a key toEVP_MAC_init(3). same thing, different font, fr fr.
The following parameters can be retrieved with EVP_MAC_CTX_get_params():
"size"(OSSL_MAC_PARAM_SIZE)<unsigned integer>β gets the MAC size.
Alsooo, the "size" parameter can also be retrieved with EVP_MAC_CTX_get_mac_size() (yes there are two ways, we love options π). One tiny thing tho: the length of the "size" parameter should not exceed that of an unsigned int. keep it in range bestie π
π₯ NOTES π₯
The OpenSSL implementation of the Poly 1305 MAC corresponds to RFC 7539. β¨
β οΈ okay this part is SO serious: it is critical to never reuse the key. The security implication noted in RFC 8439 applies equally to the OpenSSL implementation. like, do not do it. not once. not ever. π₯π
π SEE ALSO π
EVP_MAC_CTX_get_params(3)EVP_MAC_CTX_set_params(3)"PARAMETERS"inEVP_MAC(3)OSSL_PARAM(3)
go click around, it's giving lore π
π 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>.
and that's the whole page, bestie!! ππ¦ this was 3.5.0, dated 2026-09-25, and it's the EVP_MAC-POLY1305(7ossl) page β mwah, periodt πβ¨πΈ
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms