summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2023-08-02 08:39:04 +0000
committertb <>2023-08-02 08:39:04 +0000
commita84053cabae35f4a87f7ac66ed02deb3b7c3be52 (patch)
treeafa0fb5de6801a98fb7cd62b9a17a6e008e49457 /src/lib
parent069a91213b3a3ad975d793aa49627a929ba333d0 (diff)
downloadopenbsd-a84053cabae35f4a87f7ac66ed02deb3b7c3be52.tar.gz
openbsd-a84053cabae35f4a87f7ac66ed02deb3b7c3be52.tar.bz2
openbsd-a84053cabae35f4a87f7ac66ed02deb3b7c3be52.zip
Remove the unused BN_BLINDING_{convert,invert}()
ok jsing
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/bn/bn_blind.c14
-rw-r--r--src/lib/libcrypto/bn/bn_local.h4
2 files changed, 2 insertions, 16 deletions
diff --git a/src/lib/libcrypto/bn/bn_blind.c b/src/lib/libcrypto/bn/bn_blind.c
index 3132d22a07..fad103705f 100644
--- a/src/lib/libcrypto/bn/bn_blind.c
+++ b/src/lib/libcrypto/bn/bn_blind.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_blind.c,v 1.28 2023/08/02 08:34:42 tb Exp $ */ 1/* $OpenBSD: bn_blind.c,v 1.29 2023/08/02 08:39:04 tb Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -215,12 +215,6 @@ err:
215} 215}
216 216
217int 217int
218BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx)
219{
220 return BN_BLINDING_convert_ex(n, NULL, b, ctx);
221}
222
223int
224BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *ctx) 218BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *ctx)
225{ 219{
226 int ret = 1; 220 int ret = 1;
@@ -249,12 +243,6 @@ BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *ctx)
249} 243}
250 244
251int 245int
252BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx)
253{
254 return BN_BLINDING_invert_ex(n, NULL, b, ctx);
255}
256
257int
258BN_BLINDING_invert_ex(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b, BN_CTX *ctx) 246BN_BLINDING_invert_ex(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b, BN_CTX *ctx)
259{ 247{
260 int ret; 248 int ret;
diff --git a/src/lib/libcrypto/bn/bn_local.h b/src/lib/libcrypto/bn/bn_local.h
index b8731a70ef..81636d413e 100644
--- a/src/lib/libcrypto/bn/bn_local.h
+++ b/src/lib/libcrypto/bn/bn_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_local.h,v 1.30 2023/08/02 08:34:42 tb Exp $ */ 1/* $OpenBSD: bn_local.h,v 1.31 2023/08/02 08:39:04 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 *
@@ -292,8 +292,6 @@ int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,
292 BN_RECP_CTX *recp, BN_CTX *ctx); 292 BN_RECP_CTX *recp, BN_CTX *ctx);
293 293
294void BN_BLINDING_free(BN_BLINDING *b); 294void BN_BLINDING_free(BN_BLINDING *b);
295int BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx);
296int BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx);
297int BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *); 295int BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *);
298int BN_BLINDING_invert_ex(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b, BN_CTX *); 296int BN_BLINDING_invert_ex(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b, BN_CTX *);
299 297