diff options
| author | tb <> | 2023-03-27 10:20:27 +0000 |
|---|---|---|
| committer | tb <> | 2023-03-27 10:20:27 +0000 |
| commit | 33735e4122c0261b555f35ac60c32d7fca12f86c (patch) | |
| tree | 8daaaecbb4b903cff346b132cce84b2f9bd33e29 /src/lib/libc | |
| parent | 4612cc67b82652b839f175ffee531cb56fba2723 (diff) | |
| download | openbsd-33735e4122c0261b555f35ac60c32d7fca12f86c.tar.gz openbsd-33735e4122c0261b555f35ac60c32d7fca12f86c.tar.bz2 openbsd-33735e4122c0261b555f35ac60c32d7fca12f86c.zip | |
Use bn_copy() rather than inlining it
ok jsing
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/bn/bn_gf2m.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bn/bn_gf2m.c b/src/lib/libcrypto/bn/bn_gf2m.c index c90c9f64de..3a0accb4a2 100644 --- a/src/lib/libcrypto/bn/bn_gf2m.c +++ b/src/lib/libcrypto/bn/bn_gf2m.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_gf2m.c,v 1.30 2023/03/27 08:49:34 tb Exp $ */ | 1 | /* $OpenBSD: bn_gf2m.c,v 1.31 2023/03/27 10:20:27 tb Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. | 3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. |
| 4 | * | 4 | * |
| @@ -967,7 +967,7 @@ BN_GF2m_mod_exp_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const int p[], | |||
| 967 | return BN_one(r); | 967 | return BN_one(r); |
| 968 | 968 | ||
| 969 | if (BN_abs_is_word(b, 1)) | 969 | if (BN_abs_is_word(b, 1)) |
| 970 | return BN_copy(r, a) != NULL; | 970 | return bn_copy(r, a); |
| 971 | 971 | ||
| 972 | BN_CTX_start(ctx); | 972 | BN_CTX_start(ctx); |
| 973 | if ((u = BN_CTX_get(ctx)) == NULL) | 973 | if ((u = BN_CTX_get(ctx)) == NULL) |
