From: tb Date: Wed, 2 Aug 2023 08:34:42 +0000 (+0000) Subject: Make BN_BLINDING_{new,update}() static in bn_blind.c X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a901983316d45ff7351dea5aa18f505d294eca8b;p=openbsd Make BN_BLINDING_{new,update}() static in bn_blind.c ok jsing --- diff --git a/lib/libcrypto/bn/bn_blind.c b/lib/libcrypto/bn/bn_blind.c index 6c434bef060..3132d22a078 100644 --- a/lib/libcrypto/bn/bn_blind.c +++ b/lib/libcrypto/bn/bn_blind.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_blind.c,v 1.27 2023/08/02 08:31:12 tb Exp $ */ +/* $OpenBSD: bn_blind.c,v 1.28 2023/08/02 08:34:42 tb Exp $ */ /* ==================================================================== * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. * @@ -131,7 +131,7 @@ struct bn_blinding_st { const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); }; -BN_BLINDING * +static BN_BLINDING * BN_BLINDING_new(const BIGNUM *A, const BIGNUM *Ai, BIGNUM *mod) { BN_BLINDING *ret = NULL; @@ -182,7 +182,7 @@ BN_BLINDING_free(BN_BLINDING *r) free(r); } -int +static int BN_BLINDING_update(BN_BLINDING *b, BN_CTX *ctx) { int ret = 0; diff --git a/lib/libcrypto/bn/bn_local.h b/lib/libcrypto/bn/bn_local.h index 53d557dbe2f..b8731a70ef2 100644 --- a/lib/libcrypto/bn/bn_local.h +++ b/lib/libcrypto/bn/bn_local.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_local.h,v 1.29 2023/08/02 08:31:12 tb Exp $ */ +/* $OpenBSD: bn_local.h,v 1.30 2023/08/02 08:34:42 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -291,9 +291,7 @@ int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, BN_RECP_CTX *recp, BN_CTX *ctx); -BN_BLINDING *BN_BLINDING_new(const BIGNUM *A, const BIGNUM *Ai, BIGNUM *mod); void BN_BLINDING_free(BN_BLINDING *b); -int BN_BLINDING_update(BN_BLINDING *b, BN_CTX *ctx); int BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx); int BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx); int BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *);