diff options
| author | tb <> | 2023-03-27 10:25:02 +0000 |
|---|---|---|
| committer | tb <> | 2023-03-27 10:25:02 +0000 |
| commit | aeb32cad44c92f3786167b06a0f9c4310cbb713d (patch) | |
| tree | ba91913b4904177f237fb62457d06d7234e7ad69 /src/lib/libcrypto/ec/ec2_mult.c | |
| parent | 31952254deba94cb76af7a03b169b818e5af326c (diff) | |
| download | openbsd-aeb32cad44c92f3786167b06a0f9c4310cbb713d.tar.gz openbsd-aeb32cad44c92f3786167b06a0f9c4310cbb713d.tar.bz2 openbsd-aeb32cad44c92f3786167b06a0f9c4310cbb713d.zip | |
Replace the remaining BN_copy() with bn_copy()
ok jsing
Diffstat (limited to 'src/lib/libcrypto/ec/ec2_mult.c')
| -rw-r--r-- | src/lib/libcrypto/ec/ec2_mult.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ec/ec2_mult.c b/src/lib/libcrypto/ec/ec2_mult.c index 8b8aaf7122..d32b7442c4 100644 --- a/src/lib/libcrypto/ec/ec2_mult.c +++ b/src/lib/libcrypto/ec/ec2_mult.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec2_mult.c,v 1.15 2022/11/26 16:08:52 tb Exp $ */ | 1 | /* $OpenBSD: ec2_mult.c,v 1.16 2023/03/27 10:25:02 tb Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. | 3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. |
| 4 | * | 4 | * |
| @@ -137,7 +137,7 @@ gf2m_Madd(const EC_GROUP *group, const BIGNUM *x, BIGNUM *x1, BIGNUM *z1, | |||
| 137 | if ((t2 = BN_CTX_get(ctx)) == NULL) | 137 | if ((t2 = BN_CTX_get(ctx)) == NULL) |
| 138 | goto err; | 138 | goto err; |
| 139 | 139 | ||
| 140 | if (!BN_copy(t1, x)) | 140 | if (!bn_copy(t1, x)) |
| 141 | goto err; | 141 | goto err; |
| 142 | if (!group->meth->field_mul(group, x1, x1, z2, ctx)) | 142 | if (!group->meth->field_mul(group, x1, x1, z2, ctx)) |
| 143 | goto err; | 143 | goto err; |
| @@ -183,7 +183,7 @@ gf2m_Mxy(const EC_GROUP *group, const BIGNUM *x, const BIGNUM *y, BIGNUM *x1, | |||
| 183 | return 1; | 183 | return 1; |
| 184 | } | 184 | } |
| 185 | if (BN_is_zero(z2)) { | 185 | if (BN_is_zero(z2)) { |
| 186 | if (!BN_copy(x2, x)) | 186 | if (!bn_copy(x2, x)) |
| 187 | return 0; | 187 | return 0; |
| 188 | if (!BN_GF2m_add(z2, x, y)) | 188 | if (!BN_GF2m_add(z2, x, y)) |
| 189 | return 0; | 189 | return 0; |
