GNUTLS_X509_PRIVKEY_IMPORT_DSA_RAW(3)

✨ NAME ✨

gnutls_x509_privkey_import_dsa_raw β€” bestie, this is the API function that takes raw DSA numbers and turns them into a real, native GnuTLS private key πŸ’… (this page lives in the gnutls manual, section 3, iykyk)


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_privkey_import_dsa_raw(gnutls_x509_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);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_privkey_t key β€” this is the lil container where the parsed key is gonna live. the data to store the parsed key goes here 🫢
  • const gnutls_datum_t * p β€” holds the p πŸ“
  • const gnutls_datum_t * q β€” holds the q πŸ“
  • const gnutls_datum_t * g β€” holds the g πŸ“
  • const gnutls_datum_t * y β€” holds the y, and okay important: this one is optional πŸ‘‘
  • const gnutls_datum_t * x β€” holds the x πŸ“

πŸ’– DESCRIPTION πŸ’–

okay so here's the vibe: this function takes the DSA raw parameters you hand it and converts them into the native gnutls_x509_privkey_t format ✨. like, it's giving glow-up, raw numbers to fully-formed key.

the output gets stored in key 🌈. that's the whole thing. no cap.


⭐ RETURNS ⭐

on success you get GNUTLS_E_SUCCESS (0) back and you can go be iconic πŸŽ‰. otherwise, bestie, it's a negative error value 😭 β€” check it, always.


πŸ¦‹ REPORTING BUGS πŸ¦‹

found a bug? not the vibe. report it 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 πŸ’œ. (yes, that means you can share it, just keep the receipts, 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, visit

https://www.gnutls.org/manual/


🌟 and that's the whole page, bestie. go forth and import those DSA parameters responsibly. main character energy only. 🌟

β€” written by the gnutls girlies, version 3.8.13, gnutls_x509_pri..._import_dsa_raw(3) πŸŽ€βœ¨πŸ«Ά

πŸ“¦ where this page comes from