gnutls_fips140_run_self_tests(3)
π gnutls_fips140_run_self_tests π
okay bestie so this one lives in the gnutls manual, and it's lowkey one of the most serious little functions in the whole library. it's giving β¨ "I check my own homework" β¨ energy, except the homework is cryptography and failing it is not a vibe.
β¨ NAME β¨
gnutls_fips140_run_self_tests β an API function, no cap π
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
int gnutls_fips140_run_self_tests( void);
π ARGUMENTS π
voidβ that's it, bestie. nothing goes in. no params, no drama, she takes no input, she simply runs. π
π¦ DESCRIPTION π¦
so like, this function manually performs the second round of the FIPS140 self-tests. manually! as in you have to call it, she's not gonna do it unprompted. π
and what does that round include, you ask? glad you asked:
- Known answer tests (KAT) for the selected set of symmetric cipher, MAC, public key, KDF, and DRBG π₯
- Library integrity checks β
okay now the serious part, bestie, listen up: upon failure with FIPS140 mode enabled, it makes the library unusable. like, unusable unusable. that's not a soft fail, that's a "we're done here" situation. π
also: this function is not thread-safe. so do NOT go calling it from a bunch of threads at once thinking you're being efficient. you're not. you're being chaotic. π«Ά
π RETURNS π
0upon success π- a negative error code otherwise π
π SINCE π
3.7.7 β she's been around since 3.7.7, an icon, a legend, a moment. π
π REPORTING BUGS π
found a bug? don't be shy, report it, that's the whole point of community:
- Report bugs to <bugs@gnutls.org>. π
- Home page: https://www.gnutls.org
π COPYRIGHT π
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.
(translation: free to share, free to remix, just keep the receipts. slay. π )
π§ 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/
iykyk, the Texinfo manual is where all the lore lives. go read it. πβ¨
and that's the whole page, bestie!! π«Ά this was the gnutls manual, version 3.8.13, and yeah the page itself is dated with that same 3.8.13 and titled gnutls_fips140_run_self_tests(3) β now go call that function responsibly and stay thread-safe out there ππΈπ
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms