summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-04-25 17:59:41 +0000
committertb <>2023-04-25 17:59:41 +0000
commit49d4e7f13703e6c53400ac3ec96f2fe687d3cb85 (patch)
tree485d9abc8616aa41a43f791c6acc5a5ac9d37bb3
parent6a08d636beca95a31810925330735e180eec76be (diff)
downloadopenbsd-49d4e7f13703e6c53400ac3ec96f2fe687d3cb85.tar.gz
openbsd-49d4e7f13703e6c53400ac3ec96f2fe687d3cb85.tar.bz2
openbsd-49d4e7f13703e6c53400ac3ec96f2fe687d3cb85.zip
BN_RECP_CTX moves to internal
-rw-r--r--src/lib/libcrypto/bn/bn_local.h6
-rw-r--r--src/lib/libcrypto/ossl_typ.h3
2 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 061544056b..24d91af462 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.20 2023/04/25 17:13:06 tb Exp $ */ 1/* $OpenBSD: bn_local.h,v 1.21 2023/04/25 17:59:41 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 *
@@ -141,13 +141,13 @@ struct bn_mont_ctx_st {
141/* Used for reciprocal division/mod functions 141/* Used for reciprocal division/mod functions
142 * It cannot be shared between threads 142 * It cannot be shared between threads
143 */ 143 */
144struct bn_recp_ctx_st { 144typedef struct bn_recp_ctx_st {
145 BIGNUM N; /* the divisor */ 145 BIGNUM N; /* the divisor */
146 BIGNUM Nr; /* the reciprocal */ 146 BIGNUM Nr; /* the reciprocal */
147 int num_bits; 147 int num_bits;
148 int shift; 148 int shift;
149 int flags; 149 int flags;
150}; 150} BN_RECP_CTX;
151 151
152/* Used for slow "generation" functions. */ 152/* Used for slow "generation" functions. */
153struct bn_gencb_st { 153struct bn_gencb_st {
diff --git a/src/lib/libcrypto/ossl_typ.h b/src/lib/libcrypto/ossl_typ.h
index 7edab01376..b45f546cc0 100644
--- a/src/lib/libcrypto/ossl_typ.h
+++ b/src/lib/libcrypto/ossl_typ.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ossl_typ.h,v 1.23 2023/04/16 08:17:04 tb Exp $ */ 1/* $OpenBSD: ossl_typ.h,v 1.24 2023/04/25 17:59:41 tb Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -89,7 +89,6 @@ typedef struct bignum_st BIGNUM;
89typedef struct bignum_ctx BN_CTX; 89typedef struct bignum_ctx BN_CTX;
90typedef struct bn_blinding_st BN_BLINDING; 90typedef struct bn_blinding_st BN_BLINDING;
91typedef struct bn_mont_ctx_st BN_MONT_CTX; 91typedef struct bn_mont_ctx_st BN_MONT_CTX;
92typedef struct bn_recp_ctx_st BN_RECP_CTX;
93typedef struct bn_gencb_st BN_GENCB; 92typedef struct bn_gencb_st BN_GENCB;
94 93
95typedef struct bio_st BIO; 94typedef struct bio_st BIO;