diff options
| author | tb <> | 2021-12-04 16:09:59 +0000 |
|---|---|---|
| committer | tb <> | 2021-12-04 16:09:59 +0000 |
| commit | 93fdb330ca4f7de225940bc2da7752faee8ae984 (patch) | |
| tree | 95cb147ec3aa8db65a0d2a4bb8c89ac9116c2c22 /src/lib/libc | |
| parent | 57082c28039cc632468182b73bebd65a224cbf9d (diff) | |
| download | openbsd-93fdb330ca4f7de225940bc2da7752faee8ae984.tar.gz openbsd-93fdb330ca4f7de225940bc2da7752faee8ae984.tar.bz2 openbsd-93fdb330ca4f7de225940bc2da7752faee8ae984.zip | |
Use BN_is_negative(p) instead of p->neg in one place.
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/bn/bn_x931p.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bn/bn_x931p.c b/src/lib/libcrypto/bn/bn_x931p.c index 55ca21c08c..a0a194aa34 100644 --- a/src/lib/libcrypto/bn/bn_x931p.c +++ b/src/lib/libcrypto/bn/bn_x931p.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_x931p.c,v 1.11 2019/01/20 01:56:59 tb Exp $ */ | 1 | /* $OpenBSD: bn_x931p.c,v 1.12 2021/12/04 16:09:59 tb Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2005. | 3 | * project 2005. |
| 4 | */ | 4 | */ |
| @@ -154,7 +154,7 @@ BN_X931_derive_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2, const BIGNUM *Xp, | |||
| 154 | if (!BN_sub(p, p, t)) | 154 | if (!BN_sub(p, p, t)) |
| 155 | goto err; | 155 | goto err; |
| 156 | 156 | ||
| 157 | if (p->neg && !BN_add(p, p, p1p2)) | 157 | if (BN_is_negative(p) && !BN_add(p, p, p1p2)) |
| 158 | goto err; | 158 | goto err; |
| 159 | 159 | ||
| 160 | /* p now equals Rp */ | 160 | /* p now equals Rp */ |
