summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn/bn_local.h
diff options
context:
space:
mode:
authortb <>2023-08-09 09:09:24 +0000
committertb <>2023-08-09 09:09:24 +0000
commit95e0708389805cb1b16c1ce58b7f070258d316cd (patch)
tree41a815a3c376b191177486d9fb4d5299c7ef7093 /src/lib/libcrypto/bn/bn_local.h
parentb747bfb735f278053b97b609afd7fa3b35ee1582 (diff)
downloadopenbsd-95e0708389805cb1b16c1ce58b7f070258d316cd.tar.gz
openbsd-95e0708389805cb1b16c1ce58b7f070258d316cd.tar.bz2
openbsd-95e0708389805cb1b16c1ce58b7f070258d316cd.zip
Merge BN_BLINDING_create_param() into BN_BLINDING_new()
Diffstat (limited to 'src/lib/libcrypto/bn/bn_local.h')
-rw-r--r--src/lib/libcrypto/bn/bn_local.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/libcrypto/bn/bn_local.h b/src/lib/libcrypto/bn/bn_local.h
index be9f67adea..66df40ada0 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.35 2023/08/09 08:27:02 tb Exp $ */ 1/* $OpenBSD: bn_local.h,v 1.36 2023/08/09 09:09:24 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,14 +292,13 @@ int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
292int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, 292int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,
293 BN_RECP_CTX *recp, BN_CTX *ctx); 293 BN_RECP_CTX *recp, BN_CTX *ctx);
294 294
295BN_BLINDING *BN_BLINDING_new(const BIGNUM *e, BIGNUM *m, BN_CTX *ctx,
296 int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
297 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx), BN_MONT_CTX *m_ctx);
295void BN_BLINDING_free(BN_BLINDING *b); 298void BN_BLINDING_free(BN_BLINDING *b);
296int BN_BLINDING_convert(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *); 299int BN_BLINDING_convert(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *);
297int BN_BLINDING_invert(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b, BN_CTX *); 300int BN_BLINDING_invert(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b, BN_CTX *);
298
299CRYPTO_THREADID *BN_BLINDING_thread_id(BN_BLINDING *); 301CRYPTO_THREADID *BN_BLINDING_thread_id(BN_BLINDING *);
300BN_BLINDING *BN_BLINDING_create_param(const BIGNUM *e, BIGNUM *m, BN_CTX *ctx,
301 int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
302 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx), BN_MONT_CTX *m_ctx);
303 302
304/* Explicitly const time / non-const time versions for internal use */ 303/* Explicitly const time / non-const time versions for internal use */
305int BN_mod_exp_ct(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, 304int BN_mod_exp_ct(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,