info > EVP_MAC-GMAC(7)

๐Ÿ“– NAME

EVP_MAC-GMAC - The GMAC EVP_MAC implementation

๐Ÿš€ Quick Reference

Use CaseCommandDescription
Compute GMAC EVP_MAC_fetch(NULL, "GMAC", "provider=default") ๐Ÿ“Œ Fetch the GMAC MAC implementation
Set cipher EVP_MAC_CTX_set_params(ctx, {OSSL_MAC_PARAM_CIPHER, "AES-128-GCM", ...}) ๐Ÿ”‘ Set the underlying cipher (e.g., AES-128-GCM)
Set key EVP_MAC_CTX_set_params(ctx, {OSSL_MAC_PARAM_KEY, key_data, ...}) ๐Ÿ” Set the MAC key
Set IV EVP_MAC_CTX_set_params(ctx, {OSSL_MAC_PARAM_IV, iv_data, ...}) ๐Ÿงช Set the initialization vector
Get MAC size EVP_MAC_CTX_get_mac_size(ctx) ๐Ÿ“ Retrieve the MAC length

๐Ÿ“ DESCRIPTION

Support for computing GMAC MACs through the EVP_MAC API.

This implementation uses EVP_CIPHER functions to get access to the underlying cipher.

๐Ÿ” Identity

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

โš™๏ธ 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 is equal to that of an unsigned int.

๐Ÿ“š 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-GMAC(7SSL)

EVP_MAC-GMAC(7)
๐Ÿ“– NAME ๐Ÿš€ Quick Reference ๐Ÿ“ DESCRIPTION
๐Ÿ” Identity โš™๏ธ Supported parameters
๐Ÿ“š SEE ALSO ยฉ๏ธ COPYRIGHT

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-05 19:55 @216.73.216.192
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format