GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
BN_SET_NEGATIVE(3) FreeBSD Library Functions Manual BN_SET_NEGATIVE(3)

BN_set_negative, BN_is_negative
change and inspect the sign of a BIGNUM

#include <openssl/bn.h>

void
BN_set_negative(BIGNUM *b, int n);

int
BN_is_negative(const BIGNUM *b);

BN_set_negative() sets b to negative if both b and n are non-zero, otherwise it sets it to positive.

BN_is_negative() tests the sign of b.

BN_is_negative() returns 1 if b is negative or 0 otherwise.

BN_add(3), BN_new(3), BN_set_bit(3), BN_zero(3)

BN_set_negative() and BN_is_negative() first appeared in OpenSSL 0.9.8 and have been available since OpenBSD 4.5.
December 6, 2021 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.