From 70b5e4a9ddfad29232b45bb7cfe175cb06edf1a7 Mon Sep 17 00:00:00 2001 From: tb <> Date: Wed, 12 Feb 2025 21:22:15 +0000 Subject: recp -> reciprocal renaming in tests --- src/regress/lib/libcrypto/bn/bn_mod_exp.c | 4 ++-- src/regress/lib/libcrypto/bn/bn_test.c | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/regress/lib/libcrypto/bn/bn_mod_exp.c b/src/regress/lib/libcrypto/bn/bn_mod_exp.c index 98b6a5d2ef..5cfacddf17 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 @@ -/* $OpenBSD: bn_mod_exp.c,v 1.40 2023/10/19 13:38:12 tb Exp $ */ +/* $OpenBSD: bn_mod_exp.c,v 1.41 2025/02/12 21:22:15 tb Exp $ */ /* * Copyright (c) 2022,2023 Theo Buehler @@ -59,7 +59,7 @@ static const struct mod_exp_test { INIT_MOD_EXP_FN(BN_mod_exp), INIT_MOD_EXP_FN(BN_mod_exp_ct), INIT_MOD_EXP_FN(BN_mod_exp_nonct), - INIT_MOD_EXP_FN(BN_mod_exp_recp), + INIT_MOD_EXP_FN(BN_mod_exp_reciprocal), INIT_MOD_EXP_FN(BN_mod_exp_simple), INIT_MOD_EXP_MONT_FN(BN_mod_exp_mont), INIT_MOD_EXP_MONT_FN(BN_mod_exp_mont_ct), diff --git a/src/regress/lib/libcrypto/bn/bn_test.c b/src/regress/lib/libcrypto/bn/bn_test.c index 4aeb3ee284..5348788f50 100644 --- a/src/regress/lib/libcrypto/bn/bn_test.c +++ b/src/regress/lib/libcrypto/bn/bn_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_test.c,v 1.22 2025/01/22 13:02:14 tb Exp $ */ +/* $OpenBSD: bn_test.c,v 1.23 2025/02/12 21:22:15 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -91,7 +91,7 @@ int test_rshift1(BIO *bp, BN_CTX *ctx); int test_rshift(BIO *bp, BN_CTX *ctx); int test_div(BIO *bp, BN_CTX *ctx); int test_div_word(BIO *bp, BN_CTX *ctx); -int test_div_recp(BIO *bp, BN_CTX *ctx); +int test_div_reciprocal(BIO *bp, BN_CTX *ctx); int test_mul(BIO *bp, BN_CTX *ctx); int test_sqr(BIO *bp, BN_CTX *ctx); int test_mont(BIO *bp, BN_CTX *ctx); @@ -225,7 +225,7 @@ main(int argc, char *argv[]) (void)BIO_flush(out); message(out, "BN_div_reciprocal"); - if (!test_div_recp(out, ctx)) + if (!test_div_reciprocal(out, ctx)) goto err; (void)BIO_flush(out); @@ -561,7 +561,7 @@ test_div_word(BIO *bp, BN_CTX *ctx) } int -test_div_recp(BIO *bp, BN_CTX *ctx) +test_div_reciprocal(BIO *bp, BN_CTX *ctx) { BN_RECP_CTX *recp = NULL; BIGNUM *a, *b, *c, *d, *e; @@ -1501,7 +1501,7 @@ test_kron(BIO *bp, BN_CTX *ctx) /* r := a^t mod b */ BN_set_negative(b, 0); - if (!BN_mod_exp_recp(r, a, t, b, ctx)) + if (!BN_mod_exp_reciprocal(r, a, t, b, ctx)) goto err; BN_set_negative(b, 1); -- cgit v1.2.3-55-g6feb