diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/bn/bn_nist.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/bn/bn_nist.c b/src/lib/libcrypto/bn/bn_nist.c index bad59ee30f..1b4c25cacf 100644 --- a/src/lib/libcrypto/bn/bn_nist.c +++ b/src/lib/libcrypto/bn/bn_nist.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_nist.c,v 1.24 2022/11/30 01:47:19 jsing Exp $ */ | 1 | /* $OpenBSD: bn_nist.c,v 1.25 2023/03/27 08:41:35 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Written by Nils Larsch for the OpenSSL project | 3 | * Written by Nils Larsch for the OpenSSL project |
| 4 | */ | 4 | */ |
| @@ -479,7 +479,7 @@ BN_nist_mod_192(BIGNUM *r, const BIGNUM *a, const BIGNUM *field, BN_CTX *ctx) | |||
| 479 | BN_zero(r); | 479 | BN_zero(r); |
| 480 | return 1; | 480 | return 1; |
| 481 | } else if (i > 0) | 481 | } else if (i > 0) |
| 482 | return (r == a) ? 1 : (BN_copy(r , a) != NULL); | 482 | return bn_copy(r, a); |
| 483 | 483 | ||
| 484 | if (r != a) { | 484 | if (r != a) { |
| 485 | if (!bn_wexpand(r, BN_NIST_192_TOP)) | 485 | if (!bn_wexpand(r, BN_NIST_192_TOP)) |
| @@ -628,7 +628,7 @@ BN_nist_mod_224(BIGNUM *r, const BIGNUM *a, const BIGNUM *field, BN_CTX *ctx) | |||
| 628 | BN_zero(r); | 628 | BN_zero(r); |
| 629 | return 1; | 629 | return 1; |
| 630 | } else if (i > 0) | 630 | } else if (i > 0) |
| 631 | return (r == a) ? 1 : (BN_copy(r, a) != NULL); | 631 | return bn_copy(r, a); |
| 632 | 632 | ||
| 633 | if (r != a) { | 633 | if (r != a) { |
| 634 | if (!bn_wexpand(r, BN_NIST_224_TOP)) | 634 | if (!bn_wexpand(r, BN_NIST_224_TOP)) |
| @@ -812,7 +812,7 @@ BN_nist_mod_256(BIGNUM *r, const BIGNUM *a, const BIGNUM *field, BN_CTX *ctx) | |||
| 812 | BN_zero(r); | 812 | BN_zero(r); |
| 813 | return 1; | 813 | return 1; |
| 814 | } else if (i > 0) | 814 | } else if (i > 0) |
| 815 | return (r == a) ? 1 : (BN_copy(r, a) != NULL); | 815 | return bn_copy(r, a); |
| 816 | 816 | ||
| 817 | if (r != a) { | 817 | if (r != a) { |
| 818 | if (!bn_wexpand(r, BN_NIST_256_TOP)) | 818 | if (!bn_wexpand(r, BN_NIST_256_TOP)) |
| @@ -1044,7 +1044,7 @@ BN_nist_mod_384(BIGNUM *r, const BIGNUM *a, const BIGNUM *field, BN_CTX *ctx) | |||
| 1044 | BN_zero(r); | 1044 | BN_zero(r); |
| 1045 | return 1; | 1045 | return 1; |
| 1046 | } else if (i > 0) | 1046 | } else if (i > 0) |
| 1047 | return (r == a) ? 1 : (BN_copy(r, a) != NULL); | 1047 | return bn_copy(r, a); |
| 1048 | 1048 | ||
| 1049 | if (r != a) { | 1049 | if (r != a) { |
| 1050 | if (!bn_wexpand(r, BN_NIST_384_TOP)) | 1050 | if (!bn_wexpand(r, BN_NIST_384_TOP)) |
| @@ -1296,7 +1296,7 @@ BN_nist_mod_521(BIGNUM *r, const BIGNUM *a, const BIGNUM *field, BN_CTX *ctx) | |||
| 1296 | BN_zero(r); | 1296 | BN_zero(r); |
| 1297 | return 1; | 1297 | return 1; |
| 1298 | } else if (i > 0) | 1298 | } else if (i > 0) |
| 1299 | return (r == a) ? 1 : (BN_copy(r, a) != NULL); | 1299 | return bn_copy(r, a); |
| 1300 | 1300 | ||
| 1301 | if (r != a) { | 1301 | if (r != a) { |
| 1302 | if (!bn_wexpand(r, BN_NIST_521_TOP)) | 1302 | if (!bn_wexpand(r, BN_NIST_521_TOP)) |
