gnutls_privkey_get_pk_algorithm(3)

πŸ’– gnutls_privkey_get_pk_algorithm(3) πŸ’–

okay bestie, welcome to the gnutls manual, page three of gnutls_privkey_get_pk_algorithm ✨ this one is literally the "what kind of key even ARE you" function and it's lowkey so useful 🫢


✨ NAME ✨

gnutls_privkey_get_pk_algorithm β€” API function πŸ’…


🌸 SYNOPSIS 🌸

#include <gnutls/abstract.h>

int gnutls_privkey_get_pk_algorithm(gnutls_privkey_t key, unsigned int *
bits);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_privkey_t key β€” should contain a gnutls_privkey_t type πŸ’œ like, that's the whole vibe, it's a private key, hand it over
  • unsigned int * bits β€” if you set it, it'll return the number of bits of the parameters (it may be NULL tho, no pressure bestie πŸ™ˆ)

πŸ¦‹ DESCRIPTION πŸ¦‹

so this function will return the public key algorithm of a private key πŸ”₯ and if it's possible, it will also return a number of bits that indicates the security parameter of the key. it's giving "tell me about yourself" energy but for cryptography πŸ’…βœ¨


⭐ RETURNS ⭐

a member of the gnutls_pk_algorithm_t enumeration on success πŸ‘‘ or a negative error code on error 😭 (yes, negative, so vibe check that return value fr fr)


🌈 SINCE 🌈

2.12.0 β€” an icon, an OG, been here since forever πŸ’–


πŸ“ REPORTING BUGS πŸ“

found a bug? not me gatekeeping that, please tell the people 🫢

Report bugs to <bugs@gnutls.org>. Home page: https://www.gnutls.org


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. (slay, it's free, go wild, just keep the receipt 🧾✨)


πŸ‘‘ 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/


and that's the whole page bestie!! 🌸 this was gnutls version 3.8.13, and if you were wondering about the date β€” the footer was being mysterious about it, so just know this page is out here living its best life in the 3.8.13 era πŸ’…πŸ’– mwah, go read your keys πŸ¦‹βœ¨

πŸ“¦ where this page comes from