gnutls_crypto_register_mac(3)
β¨ gnutls_crypto_register_mac(3) β¨
okay bestie, gather round π this one lives in the gnutls manual, and it's literally called gnutls_crypto_register_mac β say that five times fast, I dare you π«Ά
πΈ NAME πΈ
gnutls_crypto_register_mac β it's an API function, bestie. that's the whole vibe β¨
π SYNOPSIS π
#include <gnutls/crypto.h>
int gnutls_crypto_register_mac(gnutls_mac_algorithm_t algorithm, int
priority, gnutls_mac_init_func init, gnutls_mac_setkey_func setkey,
gnutls_mac_setnonce_func setnonce, gnutls_mac_hash_func hash,
gnutls_mac_output_func output, gnutls_mac_deinit_func deinit,
gnutls_mac_fast_func hash_fast);
look at all those parameters. she's high maintenance and honestly? valid π
π ARGUMENTS π
gnutls_mac_algorithm_t algorithmβ this is the gnutls MAC identifier, like her little name tag at the party πint priorityβ the priority of the algorithm. yes it matters, keep reading π₯gnutls_mac_init_func initβ a function that initializes the MAC. first step, always πgnutls_mac_setkey_func setkeyβ a function that sets the key of the MAC πgnutls_mac_setnonce_func setnonceβ a function that sets the nonce for the mac. lowkey optional β it may beNULLfor common MAC algorithms πgnutls_mac_hash_func hashβ performs the hash operation β¨gnutls_mac_output_func outputβ provides the output of the MAC, aka the reveal πgnutls_mac_deinit_func deinitβ a function that deinitializes the MAC. clean up after yourself, queen πgnutls_mac_fast_func hash_fastβ performs the MAC operation in one go. no cap, all in one πβοΈ
π DESCRIPTION π
so here's the tea β this function will register a MAC algorithm to be used by gnutls. like, you're adding your own fave to the roster π
any algorithm you register will override the included algorithms β yes, it's giving main character energy π β and by convention, kernel implemented algorithms have priority of 90 and CPU-assisted of 80. write that down π
and the plot twist: the algorithm with the lowest priority will be used by gnutls. lowest wins. make it make sense, I know, but that's the rule bestie π
π DEPRECATED π
since 3.7.0 it is no longer possible to override cipher implementation
ngl this one's basically retired. she's living in the past, still iconic, but retired π
β RETURNS β
GNUTLS_E_SUCCESS on success π otherwise a negative error code π (so, if it's negative, something went wrong, bestie, go check your vibes)
π¦ SINCE π¦
3.4.0 β she's been around a minute π
π REPORTING BUGS π
found a bug? spill the tea, not to me though, to these people:
Report bugs to <bugs@gnutls.org>.
Home page: https://www.gnutls.org
π COPYRIGHT π
Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.
(yes you can copy it, no you don't have to pay, just keep the receipts π§Ύβ¨)
π SEE ALSO π
The full documentation for gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form, visit
https://www.gnutls.org/manual/
go forth and read, bestie, it's giving academic but make it cute ππ
and that's the whole page fr fr π«Ά this was gnutls_crypto_register_mac(3) from the gnutls manual, version 3.8.13 β periodt πβ¨π
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms