gnutls_pk_to_sign(3)
π gnutls_pk_to_sign β the manual page, but make it make sense π
okay bestie, so this is gnutls_pk_to_sign(3), and it lives in the gnutls manual section 3 (that's the library-functions girlies, iykyk). it's literally one of the shortest little functions in the whole gnutls family and honestly? she's an icon for that. tiny, does one job, serves. let's get into it πΈ
β¨ NAME β¨
gnutls_pk_to_sign β API function π«Ά
β¨ SYNOPSIS β¨
the way you just include the header and call her:
#include <gnutls/gnutls.h>
gnutls_sign_algorithm_t gnutls_pk_to_sign(gnutls_pk_algorithm_t pk,
gnutls_digest_algorithm_t hash);
like. look at those types. gnutls_pk_algorithm_t in, gnutls_digest_algorithm_t in, gnutls_sign_algorithm_t out. a whole glow-up pipeline π
β¨ ARGUMENTS β¨
gnutls_pk_algorithm_t pkβ is a public key algorithm. yes girl, the key kind. the "how do we do the crypto" kind πgnutls_digest_algorithm_t hashβ a hash algorithm. the little blender that smushes your data into a fixed-size thingy π
β¨ DESCRIPTION β¨
so what does she actually do? this function maps public key and hash algorithms combinations to signature algorithms. that's it. that's the whole vibe. you hand her a key algo + a hash algo, she hands you back the signature algo that combo corresponds to. matchmaker energy fr fr π
β¨ RETURNS β¨
she returns a gnutls_sign_algorithm_t value, or GNUTLS_SIGN_UNKNOWN on error. so if you get GNUTLS_SIGN_UNKNOWN back, that's not a vibe β that combo just doesn't map to anything, bestie π
not me getting GNUTLS_SIGN_UNKNOWN and pretending everything's fine π always check your return value, okay? okay.
β¨ REPORTING BUGS β¨
found something cursed? tell the gnutls girlies directly:
- Report bugs to <bugs@gnutls.org>.
- Home page: https://www.gnutls.org
they wanna hear it, no cap π
β¨ 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.
(that's the legal fairy dust β¨ keep the notice, keep the notice, periodt.)
β¨ 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, go visit:
https://www.gnutls.org/manual/
like, actually go read it, she's thorough π
and that's the whole page, bestie!! short king of a manpage, we love her. this one's from gnutls 3.8.13, sitting in the gnutls manual, and it was hand-delivered to your terminal with love π stay hydrated, read your return values, and go map some algorithms π¦
π¦ 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