gnutls_pubkey_verify_data2(3)

πŸ’– gnutls_pubkey_verify_data2 πŸ’–

okay bestie, welcome to the gnutls manual, this one's gnutls_pubkey_verify_data2(3) and it's giving cryptographic vibe check ✨


🌸 NAME 🌸

gnutls_pubkey_verify_data2 β€” it's an API function, no cap 🫢


πŸŽ€ SYNOPSIS πŸŽ€

#include <gnutls/abstract.h>

int gnutls_pubkey_verify_data2(gnutls_pubkey_t pubkey,
gnutls_sign_algorithm_t algo, unsigned int flags, const gnutls_datum_t *
data, const gnutls_datum_t * signature);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_pubkey_t pubkey β€” literally holds the public key, that's her whole job πŸ’…
  • gnutls_sign_algorithm_t algo β€” the signature algorithm that got used, periodt
  • unsigned int flags β€” zero, or an OR list of gnutls_certificate_verify_flags (mix and match as you please)
  • const gnutls_datum_t * data β€” holds the signed data πŸ“¦
  • const gnutls_datum_t * signature β€” contains the signature, the whole point of the situation

✨ DESCRIPTION ✨

so this function will verify the given signed data, using the parameters from the certificate. that's it, that's the move πŸ”₯


πŸ‘‘ RETURNS πŸ‘‘

if the verification fails, you get GNUTLS_E_PK_SIG_VERIFY_FAILED back. and if it's a success? zero or a positive code, slay πŸ’–

for signatures that are known to be insecure, this function returns GNUTLS_E_INSUFFICIENT_SECURITY β€” unless you specified the flag GNUTLS_VERIFY_ALLOW_BROKEN. so like… you can, but bestie, be so serious rn 😭

⭐ SINCE ⭐

3.0 β€” she's been iconic since 3.0, iykyk


πŸ’€ REPORTING BUGS πŸ’€

found a bug? 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. 🫢


🌈 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/

okay and that's the whole page bestie, no notes πŸ’œ this was gnutls version 3.8.13, and the manual page is gnutls_pubkey_verify_data2(3). go verify something iconic, ily, bye 🧚✨

πŸ“¦ where this page comes from