diff options
| author | tb <> | 2023-04-25 17:17:21 +0000 |
|---|---|---|
| committer | tb <> | 2023-04-25 17:17:21 +0000 |
| commit | 4e453cdc31228e726a252175fe7eabda67e3d39d (patch) | |
| tree | 0f08415c27e41ee8bfea7dfadcac9698af9f5181 /src | |
| parent | dd59ec60c2480359d35f7d5f96d0769f80b4ff3f (diff) | |
| download | openbsd-4e453cdc31228e726a252175fe7eabda67e3d39d.tar.gz openbsd-4e453cdc31228e726a252175fe7eabda67e3d39d.tar.bz2 openbsd-4e453cdc31228e726a252175fe7eabda67e3d39d.zip | |
Remove a couple of temporary hacks
Diffstat (limited to '')
| -rw-r--r-- | src/regress/lib/libcrypto/bn/bn_mod_exp.c | 5 | ||||
| -rw-r--r-- | src/regress/lib/libcrypto/bn/bn_test.c | 14 |
2 files changed, 2 insertions, 17 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_mod_exp.c b/src/regress/lib/libcrypto/bn/bn_mod_exp.c index c3f669bda1..c20ad72442 100644 --- a/src/regress/lib/libcrypto/bn/bn_mod_exp.c +++ b/src/regress/lib/libcrypto/bn/bn_mod_exp.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_mod_exp.c,v 1.36 2023/04/25 15:34:07 tb Exp $ */ | 1 | /* $OpenBSD: bn_mod_exp.c,v 1.37 2023/04/25 17:17:21 tb Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 2022,2023 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2022,2023 Theo Buehler <tb@openbsd.org> |
| @@ -28,9 +28,6 @@ | |||
| 28 | #define N_MOD_EXP_TESTS 100 | 28 | #define N_MOD_EXP_TESTS 100 |
| 29 | #define N_MOD_EXP2_TESTS 50 | 29 | #define N_MOD_EXP2_TESTS 50 |
| 30 | 30 | ||
| 31 | int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, | ||
| 32 | const BIGNUM *m, BN_CTX *ctx); | ||
| 33 | |||
| 34 | #define INIT_MOD_EXP_FN(f) { .name = #f, .mod_exp_fn = (f), } | 31 | #define INIT_MOD_EXP_FN(f) { .name = #f, .mod_exp_fn = (f), } |
| 35 | #define INIT_MOD_EXP_MONT_FN(f) { .name = #f, .mod_exp_mont_fn = (f), } | 32 | #define INIT_MOD_EXP_MONT_FN(f) { .name = #f, .mod_exp_mont_fn = (f), } |
| 36 | 33 | ||
diff --git a/src/regress/lib/libcrypto/bn/bn_test.c b/src/regress/lib/libcrypto/bn/bn_test.c index 528238025d..f73799b3a8 100644 --- a/src/regress/lib/libcrypto/bn/bn_test.c +++ b/src/regress/lib/libcrypto/bn/bn_test.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_test.c,v 1.18 2023/04/25 15:33:25 tb Exp $ */ | 1 | /* $OpenBSD: bn_test.c,v 1.19 2023/04/25 17:17:21 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -79,18 +79,6 @@ | |||
| 79 | 79 | ||
| 80 | #include "bn_local.h" | 80 | #include "bn_local.h" |
| 81 | 81 | ||
| 82 | /* XXX - remove these once bn_local.h is fixed. */ | ||
| 83 | void BN_RECP_CTX_init(BN_RECP_CTX *recp); | ||
| 84 | BN_RECP_CTX *BN_RECP_CTX_new(void); | ||
| 85 | void BN_RECP_CTX_free(BN_RECP_CTX *recp); | ||
| 86 | int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *rdiv, BN_CTX *ctx); | ||
| 87 | int BN_mod_mul_reciprocal(BIGNUM *r, const BIGNUM *x, const BIGNUM *y, | ||
| 88 | BN_RECP_CTX *recp, BN_CTX *ctx); | ||
| 89 | int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, | ||
| 90 | const BIGNUM *m, BN_CTX *ctx); | ||
| 91 | int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, | ||
| 92 | BN_RECP_CTX *recp, BN_CTX *ctx); | ||
| 93 | |||
| 94 | const int num0 = 100; /* number of tests */ | 82 | const int num0 = 100; /* number of tests */ |
| 95 | const int num1 = 50; /* additional tests for some functions */ | 83 | const int num1 = 50; /* additional tests for some functions */ |
| 96 | const int num2 = 5; /* number of tests for slow functions */ | 84 | const int num2 = 5; /* number of tests for slow functions */ |
