diff options
author | tb <> | 2022-07-12 16:08:19 +0000 |
---|---|---|
committer | tb <> | 2022-07-12 16:08:19 +0000 |
commit | b513e09c868855f076a4a370c449f8266330d35a (patch) | |
tree | 6b1f9a64db06ce4d76666571bdb892f700d9dc14 /src | |
parent | 87ede05352c9455433b363d404d744eb4de70aa0 (diff) | |
download | openbsd-b513e09c868855f076a4a370c449f8266330d35a.tar.gz openbsd-b513e09c868855f076a4a370c449f8266330d35a.tar.bz2 openbsd-b513e09c868855f076a4a370c449f8266330d35a.zip |
Move BN_lsw() to bn_lcl.h so that other code can use it.
ok jsing
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/bn/bn_kron.c | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/bn/bn_lcl.h | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/bn/bn_kron.c b/src/lib/libcrypto/bn/bn_kron.c index 15033ff9db..998adedcd8 100644 --- a/src/lib/libcrypto/bn/bn_kron.c +++ b/src/lib/libcrypto/bn/bn_kron.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn_kron.c,v 1.9 2022/06/20 19:42:58 tb Exp $ */ | 1 | /* $OpenBSD: bn_kron.c,v 1.10 2022/07/12 16:08:19 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2000 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2000 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -55,9 +55,6 @@ | |||
55 | 55 | ||
56 | #include "bn_lcl.h" | 56 | #include "bn_lcl.h" |
57 | 57 | ||
58 | /* The least significant word of a BIGNUM. */ | ||
59 | #define BN_lsw(n) (((n)->top == 0) ? (BN_ULONG) 0 : (n)->d[0]) | ||
60 | |||
61 | /* | 58 | /* |
62 | * Kronecker symbol, implemented according to Henri Cohen, "A Course in | 59 | * Kronecker symbol, implemented according to Henri Cohen, "A Course in |
63 | * Computational Algebraic Number Theory", Algorithm 1.4.10. | 60 | * Computational Algebraic Number Theory", Algorithm 1.4.10. |
diff --git a/src/lib/libcrypto/bn/bn_lcl.h b/src/lib/libcrypto/bn/bn_lcl.h index d8c9e20f40..91ce5951e5 100644 --- a/src/lib/libcrypto/bn/bn_lcl.h +++ b/src/lib/libcrypto/bn/bn_lcl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn_lcl.h,v 1.31 2022/01/14 08:01:47 tb Exp $ */ | 1 | /* $OpenBSD: bn_lcl.h,v 1.32 2022/07/12 16:08:19 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 | * |
@@ -493,6 +493,9 @@ struct bn_gencb_st { | |||
493 | } | 493 | } |
494 | #endif /* !BN_LLONG */ | 494 | #endif /* !BN_LLONG */ |
495 | 495 | ||
496 | /* The least significant word of a BIGNUM. */ | ||
497 | #define BN_lsw(n) (((n)->top == 0) ? (BN_ULONG) 0 : (n)->d[0]) | ||
498 | |||
496 | void bn_mul_normal(BN_ULONG *r, BN_ULONG *a, int na, BN_ULONG *b, int nb); | 499 | void bn_mul_normal(BN_ULONG *r, BN_ULONG *a, int na, BN_ULONG *b, int nb); |
497 | void bn_mul_comba8(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b); | 500 | void bn_mul_comba8(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b); |
498 | void bn_mul_comba4(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b); | 501 | void bn_mul_comba4(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b); |