EVP_MAC-GMAC(7ossl)
π EVP_MAC-GMAC
okay so bestie, welcome to the glow-up page for EVP_MAC-GMAC β it's one of the OpenSSL manual pages (the 7ossl girlies, you know the ones), and it's literally all about the GMAC implementation of EVP_MAC. grab a strawberry drink π and let's get into it.
β¨ NAME β¨
EVP_MAC-GMAC β the GMAC EVP_MAC implementation. that's it, that's the vibe. π
πΈ DESCRIPTION πΈ
So. This bad boy gives you support for computing GMAC MACs through the EVP_MAC API. iconic behaviour, no cap. π
And lowkey the way it works is: this implementation uses EVP_CIPHER functions to get access to the underlying cipher. that's the whole trick, and it ate. π₯
π¦ Identity
This implementation is identified with this name and these properties, to be used with EVP_MAC_fetch():
"GMAC", "provider=default" or "provider=fips"
so yeah β that's how you find her. provider=default or provider=fips, pick your fighter. π
π Supported parameters
The general description of these parameters can be found in "PARAMETERS" in EVP_MAC(3). go check that out if you want the full lore, 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 energy, different entrance. π«Ά"iv"(OSSL_MAC_PARAM_IV) <octet string> β sets the IV of the underlying cipher, when applicable. "when applicable" is doing a lot of heavy lifting there, respect. π§"cipher"(OSSL_MAC_PARAM_CIPHER) <UTF8 string> β sets the name of the underlying cipher to be used. main character cipher energy. π"properties"(OSSL_MAC_PARAM_PROPERTIES) <UTF8 string> β sets the properties to be queried when trying to fetch the underlying cipher. this must be given together with the cipher naming parameter to be considered valid β so like, they're a package deal, bestie, don't try to separate them. π
The following parameters can be retrieved with EVP_MAC_CTX_get_params():
"size"(OSSL_MAC_PARAM_SIZE) <unsigned integer> β gets the MAC size. that's the tea. π
Also, the "size" parameter can also be retrieved with EVP_MAC_CTX_get_mac_size(). and just so you know, the length of the "size" parameter is equal to that of an unsigned int. noted, fr fr. β
π SEE ALSO π
EVP_MAC_CTX_get_params(3), EVP_MAC_CTX_set_params(3), "PARAMETERS" in EVP_MAC(3), OSSL_PARAM(3)
go read those next, bestie, they're the supporting cast and honestly they serve. π
π 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>.
ok important note bestie: this is the legal bit, so like, don't skip it β use it only in compliance with the License, periodt. π
and that's the page!! π« this one came from version 3.5.6, dated 2026-04-07 β so go forth, compute those GMACs, and slay. ππ
π¦
π¦ 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