diff options
author | jsing <> | 2024-11-01 12:56:39 +0000 |
---|---|---|
committer | jsing <> | 2024-11-01 12:56:39 +0000 |
commit | cee4df5e65a72510fc27da332f6fe8679772c4ee (patch) | |
tree | 6e5add5a5f8336efea769fd9cd7841aae1fbcb23 /src/lib/libcrypto/ppccap.c | |
parent | 3c32f5d82eb2e59b3a6ca0165691cdceca0d8357 (diff) | |
download | openbsd-cee4df5e65a72510fc27da332f6fe8679772c4ee.tar.gz openbsd-cee4df5e65a72510fc27da332f6fe8679772c4ee.tar.bz2 openbsd-cee4df5e65a72510fc27da332f6fe8679772c4ee.zip |
Clean up PPC CPU capabilities and Montgomery code.
ppc64-mont.pl (which produces bn_mul_mont_fpu64()) is unused on both
powerpc and powerpc64, so remove it. ppccap.c doesn't actually contain
anything to do with CPU capabilities - it just provides a bn_mul_mont()
that calls bn_mul_mont_int() (which ppc-mont.pl generates). Change
ppc-mont.pl to generate bn_mul_mont() directly and remove ppccap.c.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/ppccap.c')
-rw-r--r-- | src/lib/libcrypto/ppccap.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/lib/libcrypto/ppccap.c b/src/lib/libcrypto/ppccap.c deleted file mode 100644 index 8c4565f57c..0000000000 --- a/src/lib/libcrypto/ppccap.c +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | /* $OpenBSD: ppccap.c,v 1.7 2023/01/17 15:04:27 miod Exp $ */ | ||
2 | |||
3 | #include <sys/types.h> | ||
4 | #include <sys/sysctl.h> | ||
5 | #include <machine/cpu.h> | ||
6 | #include <unistd.h> | ||
7 | |||
8 | #include <crypto.h> | ||
9 | #include <openssl/bn.h> | ||
10 | |||
11 | #ifdef OPENSSL_BN_ASM_MONT | ||
12 | extern int bn_mul_mont_int(BN_ULONG *, const BN_ULONG *, const BN_ULONG *, | ||
13 | const BN_ULONG *, const BN_ULONG *, int); | ||
14 | int | ||
15 | bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, | ||
16 | const BN_ULONG *np, const BN_ULONG *n0, int num) | ||
17 | { | ||
18 | return bn_mul_mont_int(rp, ap, bp, np, n0, num); | ||
19 | } | ||
20 | #endif | ||