summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2021-12-04 16:11:10 +0000
committertb <>2021-12-04 16:11:10 +0000
commit4ee15155fb4728d6a86ea60dfaf1739558d87da6 (patch)
tree0b47ab242658ea9358949569327cf710b0accd7d /src
parentc854c621beec2012e09fabb761b5d7c2355acbc2 (diff)
downloadopenbsd-4ee15155fb4728d6a86ea60dfaf1739558d87da6.tar.gz
openbsd-4ee15155fb4728d6a86ea60dfaf1739558d87da6.tar.bz2
openbsd-4ee15155fb4728d6a86ea60dfaf1739558d87da6.zip
Annotate the structs to be moved to bn_lcl.h in the next bump
ok inoguchi jsing
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/bn/bn.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bn/bn.h b/src/lib/libcrypto/bn/bn.h
index af4dd41bd5..db5e7f908c 100644
--- a/src/lib/libcrypto/bn/bn.h
+++ b/src/lib/libcrypto/bn/bn.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn.h,v 1.49 2021/12/04 16:05:46 tb Exp $ */ 1/* $OpenBSD: bn.h,v 1.50 2021/12/04 16:11:10 tb Exp $ */
2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -259,6 +259,7 @@ void BN_with_flags(BIGNUM *dest, const BIGNUM *src, int flags);
259 | (n))) 259 | (n)))
260#endif 260#endif
261 261
262/* Move to bn_lcl.h */
262struct bignum_st { 263struct bignum_st {
263 BN_ULONG *d; /* Pointer to an array of 'BN_BITS2' bit chunks. */ 264 BN_ULONG *d; /* Pointer to an array of 'BN_BITS2' bit chunks. */
264 int top; /* Index of last used d +1. */ 265 int top; /* Index of last used d +1. */
@@ -268,6 +269,7 @@ struct bignum_st {
268 int flags; 269 int flags;
269}; 270};
270 271
272/* Move to bn_lcl.h */
271/* Used for montgomery multiplication */ 273/* Used for montgomery multiplication */
272struct bn_mont_ctx_st { 274struct bn_mont_ctx_st {
273 int ri; /* number of bits in R */ 275 int ri; /* number of bits in R */
@@ -280,6 +282,7 @@ struct bn_mont_ctx_st {
280 int flags; 282 int flags;
281}; 283};
282 284
285/* Move to bn_lcl.h */
283/* Used for reciprocal division/mod functions 286/* Used for reciprocal division/mod functions
284 * It cannot be shared between threads 287 * It cannot be shared between threads
285 */ 288 */
@@ -291,6 +294,7 @@ struct bn_recp_ctx_st {
291 int flags; 294 int flags;
292}; 295};
293 296
297/* Move to bn_lcl.h */
294/* Used for slow "generation" functions. */ 298/* Used for slow "generation" functions. */
295struct bn_gencb_st { 299struct bn_gencb_st {
296 unsigned int ver; /* To handle binary (in)compatibility */ 300 unsigned int ver; /* To handle binary (in)compatibility */