diff options
author | jsing <> | 2024-04-15 14:36:16 +0000 |
---|---|---|
committer | jsing <> | 2024-04-15 14:36:16 +0000 |
commit | cfeb4098e14715e4fc4c508e2a707258822aeaa7 (patch) | |
tree | 95c6c1802f4703f197151d5001c0b279cc1f073f | |
parent | d2daaa3702c2e527e918b7aa9f6c6183ca882b53 (diff) | |
download | openbsd-cfeb4098e14715e4fc4c508e2a707258822aeaa7.tar.gz openbsd-cfeb4098e14715e4fc4c508e2a707258822aeaa7.tar.bz2 openbsd-cfeb4098e14715e4fc4c508e2a707258822aeaa7.zip |
Enable negative zero checks for BN_clear_bit() and BN_mask_bits().
-rw-r--r-- | src/regress/lib/libcrypto/bn/bn_bits.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_bits.c b/src/regress/lib/libcrypto/bn/bn_bits.c index 4ed13e424b..e93fabfdd5 100644 --- a/src/regress/lib/libcrypto/bn/bn_bits.c +++ b/src/regress/lib/libcrypto/bn/bn_bits.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn_bits.c,v 1.1 2024/04/09 14:59:57 jsing Exp $ */ | 1 | /* $OpenBSD: bn_bits.c,v 1.2 2024/04/15 14:36:16 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2024 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2024 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -111,12 +111,10 @@ test_bn_clear_bit(void) | |||
111 | fprintf(stderr, "FAIL: clear bit did not result in zero\n"); | 111 | fprintf(stderr, "FAIL: clear bit did not result in zero\n"); |
112 | goto failure; | 112 | goto failure; |
113 | } | 113 | } |
114 | #if 0 | ||
115 | if (BN_is_negative(bn)) { | 114 | if (BN_is_negative(bn)) { |
116 | fprintf(stderr, "FAIL: clear bit resulted in -0\n"); | 115 | fprintf(stderr, "FAIL: clear bit resulted in -0\n"); |
117 | goto failure; | 116 | goto failure; |
118 | } | 117 | } |
119 | #endif | ||
120 | 118 | ||
121 | failed = 0; | 119 | failed = 0; |
122 | 120 | ||
@@ -198,12 +196,10 @@ test_bn_mask_bits(void) | |||
198 | fprintf(stderr, "FAIL: mask bits did not result in zero\n"); | 196 | fprintf(stderr, "FAIL: mask bits did not result in zero\n"); |
199 | goto failure; | 197 | goto failure; |
200 | } | 198 | } |
201 | #if 0 | ||
202 | if (BN_is_negative(bn)) { | 199 | if (BN_is_negative(bn)) { |
203 | fprintf(stderr, "FAIL: mask bits resulted in -0\n"); | 200 | fprintf(stderr, "FAIL: mask bits resulted in -0\n"); |
204 | goto failure; | 201 | goto failure; |
205 | } | 202 | } |
206 | #endif | ||
207 | 203 | ||
208 | failed = 0; | 204 | failed = 0; |
209 | 205 | ||