gnutls_pubkey_export_gost_raw2(3)

✨ gnutls_pubkey_export_gost_raw2 ✨

okay bestie, welcome to the gnutls manual πŸ’– this one lives in the gnutls manual set, and it's all about pulling GOST public key params out of a key. let's go 🫢


🌸 NAME 🌸

gnutls_pubkey_export_gost_raw2 β€” API function, no cap πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <gnutls/abstract.h>

int gnutls_pubkey_export_gost_raw2(gnutls_pubkey_t key,
gnutls_ecc_curve_t * curve, gnutls_digest_algorithm_t * digest,
gnutls_gost_paramset_t * paramset, gnutls_datum_t * x, gnutls_datum_t *
y, unsigned int flags);

πŸ’– ARGUMENTS πŸ’–

  • gnutls_pubkey_t key β€” holds the public key, like it's literally holding it 🫴
  • gnutls_ecc_curve_t * curve β€” will hold the curve (may be NULL)
  • gnutls_digest_algorithm_t * digest β€” will hold the curve (may be NULL) (yes bestie, the manpage fr says "curve" here too, i'm not gaslighting you πŸ™ˆ)
  • gnutls_gost_paramset_t * paramset β€” will hold the parameters id (may be NULL)
  • gnutls_datum_t * x β€” will hold the x-coordinate (may be NULL)
  • gnutls_datum_t * y β€” will hold the y-coordinate (may be NULL)
  • unsigned int flags β€” flags from gnutls_abstract_export_flags_t

πŸ¦‹ DESCRIPTION πŸ¦‹

this function will export the GOST public key's parameters found in the given key ✨ the new parameters get allocated using gnutls_malloc() and will be stored in the appropriate datum. iconic behaviour tbh πŸ‘‘


πŸ’€ NOTE πŸ’€

parameters will be stored with least significant byte first. On version 3.6.3 this was incorrectly returned in big-endian format. a little oopsie, it happens πŸ’…

🌈 RETURNS 🌈

GNUTLS_E_SUCCESS on success πŸŽ‰ otherwise a negative error code 😭


⭐ SINCE ⭐

3.6.3 β€” been here since then, a true veteran πŸ‘‘


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found something cursed? 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. free and unbothered, as it should be 🧚


πŸ”₯ 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, you ate that πŸ“ this was gnutls 3.8.13, gnutls_pubkey_export_gost_raw2(3) β€” go export those coordinates, ily, periodt πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from