BN_SET_NEGATIVE(3)

πŸ“¦ version 4.1.0, in opensuse-leap 16.0

πŸŽ€ BN_SET_NEGATIVE(3) β€” Library Functions Manual πŸŽ€

okay so bestie, this is the page for BN_SET_NEGATIVE(3) from the Library Functions Manual, and it’s literally all about the sign of a BIGNUM πŸ’…


✨ NAME ✨

BN_set_negative, BN_is_negative β€” change and inspect the sign of a BIGNUM πŸ¦‹

πŸ“š SYNOPSIS πŸ“š

#include <openssl/bn.h>

void
BN_set_negative(BIGNUM *b, int n);

int
BN_is_negative(const BIGNUM *b);

πŸ’– DESCRIPTION πŸ’–

BN_set_negative() is giving β€œset the sign” energy: it sets b to negative if both b and n are non-zero; otherwise it sets b to positive ✨

BN_is_negative() is the vibe check πŸ” β€” it tests the sign of b.

🫢 RETURN VALUES 🫢

BN_is_negative() returns 1 if b is negative, or 0 otherwise. periodt πŸ’…

πŸ‘€ SEE ALSO πŸ‘€

🌸 HISTORY 🌸

BN_set_negative() and BN_is_negative() first appeared in OpenSSL 0.9.8 and have been available since OpenBSD 4.5 πŸŽ€


xoxo, Debian πŸ“ December 6, 2021 β€” BN_SET_NEGATIVE(3) πŸ’–

πŸ“¦ where this page comes from