gnutls_privkey_import_dsa_raw(3)

✨ gnutls_privkey_import_dsa_raw ✨

okay bestie, so this is a page from the gnutls manual, section 3 (that's the library-functions girlies, iykyk). It's literally called gnutls_privkey_import_dsa_raw and it's about shoving raw DSA numbers into a gnutls private key. Let's get into it πŸ’…


🌸 NAME 🌸

gnutls_privkey_import_dsa_raw β€” it's an API function, no cap.


πŸŽ€ SYNOPSIS πŸŽ€

#include <gnutls/abstract.h>

int gnutls_privkey_import_dsa_raw(gnutls_privkey_t key, const
gnutls_datum_t * p, const gnutls_datum_t * q, const gnutls_datum_t * g,
const gnutls_datum_t * y, const gnutls_datum_t * x);

like, six arguments. she's high maintenance but she delivers 🫢


πŸ’– ARGUMENTS πŸ’–

  • gnutls_privkey_t key β€” the structure that's gonna hold your parsed key. this is where the magic gets stored, bestie, she's the main character here πŸ‘‘
  • const gnutls_datum_t * p β€” holds the p. that's it. that's the whole job.
  • const gnutls_datum_t * q β€” holds the q. (yes the alphabet continues, we love a theme 🌈)
  • const gnutls_datum_t * g β€” holds the g. iconic of her tbh.
  • const gnutls_datum_t * y β€” holds the y, and heads up β€” this one is optional ✨ you can skip it if you don't have it.
  • const gnutls_datum_t * x β€” holds the x. and yeah, we skipped r and s and went straight to x, that's just how DSA does it, not my problem πŸ’€

πŸ¦‹ DESCRIPTION πŸ¦‹

So this function takes those raw DSA parameters you just handed it and converts them into the native gnutls_privkey_t format. The output gets stored in key.

that's the whole vibe. raw numbers in, native key out. obsessed 🧚


⭐ RETURNS ⭐

If it ate: GNUTLS_E_SUCCESS (0) comes back at you πŸ’–

If it did NOT eat: you get a negative error value, and you have my condolences 😭


πŸ› REPORTING BUGS πŸ›

Found a bug? tell the girlies, they want to know:


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. (so like, go off, 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/

fr fr, if the docs aren't on your machine, that URL is your bestie. don't skip it.

and that's the whole page, babe πŸ’… this was gnutls 3.8.13, page gnutls_privkey_import_dsa_raw(3). go import those DSA params, you absolute legend 🫢✨

πŸ“¦ where this page comes from