summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/BN_set_negative.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/man/BN_set_negative.3')
-rw-r--r--src/lib/libcrypto/man/BN_set_negative.363
1 files changed, 0 insertions, 63 deletions
diff --git a/src/lib/libcrypto/man/BN_set_negative.3 b/src/lib/libcrypto/man/BN_set_negative.3
deleted file mode 100644
index 6cdff5c974..0000000000
--- a/src/lib/libcrypto/man/BN_set_negative.3
+++ /dev/null
@@ -1,63 +0,0 @@
1.\" $OpenBSD: BN_set_negative.3,v 1.6 2021/12/06 19:45:27 schwarze Exp $
2.\"
3.\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
17.Dd $Mdocdate: December 6 2021 $
18.Dt BN_SET_NEGATIVE 3
19.Os
20.Sh NAME
21.Nm BN_set_negative ,
22.Nm BN_is_negative
23.Nd change and inspect the sign of a BIGNUM
24.Sh SYNOPSIS
25.In openssl/bn.h
26.Ft void
27.Fo BN_set_negative
28.Fa "BIGNUM *b"
29.Fa "int n"
30.Fc
31.Ft int
32.Fo BN_is_negative
33.Fa "const BIGNUM *b"
34.Fc
35.Sh DESCRIPTION
36.Fn BN_set_negative
37sets
38.Fa b
39to negative if both
40.Fa b
41and
42.Fa n
43are non-zero, otherwise it sets it to positive.
44.Pp
45.Fn BN_is_negative
46tests the sign of
47.Fa b .
48.Sh RETURN VALUES
49.Fn BN_is_negative
50returns 1 if
51.Fa b
52is negative or 0 otherwise.
53.Sh SEE ALSO
54.Xr BN_add 3 ,
55.Xr BN_new 3 ,
56.Xr BN_set_bit 3 ,
57.Xr BN_zero 3
58.Sh HISTORY
59.Fn BN_set_negative
60and
61.Fn BN_is_negative
62first appeared in OpenSSL 0.9.8 and have been available since
63.Ox 4.5 .