gnutls_pkcs12_generate_mac3(3)
π gnutls_pkcs12_generate_mac3 β the manual page, but make it make sense π
okay bestie, so this is a page from the gnutls manual, and today's main character is gnutls_pkcs12_generate_mac3. it's giving crypto, it's giving PKCS12, it's giving "yes i read the docs and so can you". let's go π«Ά
β¨ NAME β¨
gnutls_pkcs12_generate_mac3 β an API function. that's it, that's the name, no notes π
πΈ SYNOPSIS πΈ
okay so here's the whole vibe, literally character for character:
#include <gnutls/pkcs12.h>
int gnutls_pkcs12_generate_mac3(gnutls_pkcs12_t pkcs12,
gnutls_mac_algorithm_t mac, const char * pass, unsigned int flags);
she's got four arguments and a dream β¨
π ARGUMENTS π
gnutls_pkcs12_t pkcs12β a pkcs12 type. yes queen, the actual structure you're working with.gnutls_mac_algorithm_t macβ the MAC algorithm to use. pick your fighter π₯const char * passβ the password for the MAC. keep it secret, keep it safe πunsigned int flagsβ an ORed sequence ofgnutls_pkcs12_flags_t. stack 'em up with|, iykyk.
π¦ DESCRIPTION π¦
so what does she do? this function will generate a MAC for the PKCS12 structure. that's the whole job, and she does it well π
and here's the tea: if flags contains GNUTLS_PKCS12_USE_PBMAC1, it uses the PBMAC1 key derivation function instead of the PKCS12 one. two paths, one function, very versatile of her π
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned. otherwise you get a negative error value π (not me getting a negative return, couldn't be me... unless π)
π REPORTING BUGS π
found a bug? spill. Report bugs to <bugs@gnutls.org>.
Home page: https://www.gnutls.org β go, follow, slay π
π 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. fr fr, that's the whole license paragraph, no cap π«‘
π₯ 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/
like, go read it, it's free, it's iconic πβ¨
and that's the page, bestie!! this was gnutls version 3.8.13, documented for gnutls_pkcs12_generate_mac3(3) β MACs generated, knowledge acquired, main character energy achieved ππΈπ
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