]> git.ipfire.org Git - thirdparty/nettle.git/log
thirdparty/nettle.git
2 years agoMove ocb_aes128_ctx and nettle_ocb_aes128 to nettle-internal.{c,h} for now. ocb-mode
Niels Möller [Mon, 6 Feb 2023 19:36:45 +0000 (20:36 +0100)] 
Move ocb_aes128_ctx and nettle_ocb_aes128 to nettle-internal.{c,h} for now.

2 years agoAdd test for ocb with 96-bit tag.
Niels Möller [Mon, 6 Feb 2023 19:08:34 +0000 (20:08 +0100)] 
Add test for ocb with 96-bit tag.

2 years agoMove declaration of ocb_aes128_ctx to ocb-internal.h.
Niels Möller [Mon, 6 Feb 2023 19:08:04 +0000 (20:08 +0100)] 
Move declaration of ocb_aes128_ctx to ocb-internal.h.

2 years agoMake test_aead always use set_nonce function pointer, if non-NULL.
Niels Möller [Mon, 6 Feb 2023 19:06:13 +0000 (20:06 +0100)] 
Make test_aead always use set_nonce function pointer, if non-NULL.

2 years agoDelete #if:ed out 2-way and 4-way code
Niels Möller [Thu, 2 Feb 2023 18:53:15 +0000 (19:53 +0100)] 
Delete #if:ed out 2-way and 4-way code

2 years agoSimplify ocb_crypt_n logic, less duplication.
Niels Möller [Thu, 2 Feb 2023 18:50:33 +0000 (19:50 +0100)] 
Simplify ocb_crypt_n logic, less duplication.

2 years agoSimplify ocb_update logic, less duplication.
Niels Möller [Wed, 1 Feb 2023 16:23:32 +0000 (17:23 +0100)] 
Simplify ocb_update logic, less duplication.

2 years agoOptimizze ocb_update.
Niels Möller [Wed, 1 Feb 2023 16:15:43 +0000 (17:15 +0100)] 
Optimizze ocb_update.

2 years agoReplace offset with count of initial unaligned bytes.
Niels Möller [Wed, 1 Feb 2023 15:47:42 +0000 (16:47 +0100)] 
Replace offset with count of initial unaligned bytes.

2 years agoDefine endian-dependent macros.
Niels Möller [Wed, 1 Feb 2023 15:39:02 +0000 (16:39 +0100)] 
Define endian-dependent macros.

2 years agoOptimize ocb_checksum_n.
Niels Möller [Wed, 1 Feb 2023 14:59:38 +0000 (15:59 +0100)] 
Optimize ocb_checksum_n.

2 years agoRework with ocb_fill_n, 16 blocks at a time.
Niels Möller [Mon, 30 Jan 2023 19:27:01 +0000 (20:27 +0100)] 
Rework with ocb_fill_n, 16 blocks at a time.

2 years agoImplement 2-way processing for ocb_encrypt.
Niels Möller [Wed, 25 Jan 2023 14:10:45 +0000 (15:10 +0100)] 
Implement 2-way processing for ocb_encrypt.

2 years agoFix pointer bug in previous change.
Niels Möller [Wed, 25 Jan 2023 13:40:05 +0000 (14:40 +0100)] 
Fix pointer bug in previous change.

2 years agoAdd shared helper functions for ocb_encrypt and ocb_decrypt.
Niels Möller [Wed, 25 Jan 2023 13:07:12 +0000 (14:07 +0100)] 
Add shared helper functions for ocb_encrypt and ocb_decrypt.

2 years agoAdd ocb tests with larger messages.
Niels Möller [Wed, 25 Jan 2023 09:56:10 +0000 (10:56 +0100)] 
Add ocb tests with larger messages.

2 years agoAdd benchmarking of ocb_aes128.
Niels Möller [Wed, 25 Jan 2023 09:33:12 +0000 (10:33 +0100)] 
Add benchmarking of ocb_aes128.

2 years agoRework ocb-aes128 interface, new struct ocb_aes128_encrypt_key.
Niels Möller [Tue, 6 Dec 2022 20:14:18 +0000 (21:14 +0100)] 
Rework ocb-aes128 interface, new struct ocb_aes128_encrypt_key.

2 years agoImprove consistency with other message functions.
Niels Möller [Thu, 1 Dec 2022 18:17:24 +0000 (19:17 +0100)] 
Improve consistency with other message functions.

2 years agoMore ocb functions
Niels Möller [Wed, 30 Nov 2022 19:59:00 +0000 (20:59 +0100)] 
More ocb functions

2 years agoUse bswap-internal.h and bswap64_if_le.
Niels Möller [Mon, 28 Nov 2022 19:03:02 +0000 (20:03 +0100)] 
Use bswap-internal.h and bswap64_if_le.

2 years agoMake ctx argument to ocb_digest const.
Niels Möller [Mon, 28 Nov 2022 18:54:32 +0000 (19:54 +0100)] 
Make ctx argument to ocb_digest const.

2 years agoAdd open questions, sketch message prototypes.
Niels Möller [Sat, 24 Sep 2022 08:50:58 +0000 (10:50 +0200)] 
Add open questions, sketch message prototypes.

2 years agoFix comment.
Niels Möller [Sat, 24 Sep 2022 08:49:57 +0000 (10:49 +0200)] 
Fix comment.

2 years agoocb: Delete unneeded zero checks.
Niels Möller [Sat, 14 May 2022 20:34:14 +0000 (22:34 +0200)] 
ocb: Delete unneeded zero checks.

2 years agoocb: Rewrite trailing-zeros loop to not use __builtin_ctzll.
Niels Möller [Sat, 14 May 2022 20:33:28 +0000 (22:33 +0200)] 
ocb: Rewrite trailing-zeros loop to not use __builtin_ctzll.

2 years agoocb: Use bswap_if_le, for portability.
Niels Möller [Sat, 14 May 2022 20:31:41 +0000 (22:31 +0200)] 
ocb: Use bswap_if_le, for portability.

2 years agoUse aes128_invert_key
Niels Möller [Sun, 26 Sep 2021 08:44:06 +0000 (10:44 +0200)] 
Use aes128_invert_key

2 years agoImplement OCB mode
Niels Möller [Sat, 18 Sep 2021 08:00:02 +0000 (10:00 +0200)] 
Implement OCB mode

2 years agoExtend aead tests.
Niels Möller [Mon, 6 Feb 2023 19:15:10 +0000 (20:15 +0100)] 
Extend aead tests.

* testsuite/testutils.c (test_aead): Always use set_nonce function
pointer if non-NULL, test varying alignment, output the unexpected
data when test fails.

2 years agoconst-declare the xts_key argument to xts aes encrypt/decrypt message functions.
Niels Möller [Mon, 5 Dec 2022 14:20:02 +0000 (15:20 +0100)] 
const-declare the xts_key argument to xts aes encrypt/decrypt message functions.

2 years agoAdd FIXME comment on ccm_aes128_encrypt_message, API could be improved.
Niels Möller [Mon, 5 Dec 2022 14:15:22 +0000 (15:15 +0100)] 
Add FIXME comment on ccm_aes128_encrypt_message, API could be improved.

2 years agoMerge branch 'delete-arcfour-asm' into master
Niels Möller [Thu, 10 Nov 2022 19:04:43 +0000 (20:04 +0100)] 
Merge branch 'delete-arcfour-asm' into master

2 years agoChangeLog update.
Niels Möller [Wed, 9 Nov 2022 19:55:46 +0000 (20:55 +0100)] 
ChangeLog update.

2 years agoMerge branch 'nettle-ppc-poly1305-multi' into master
Niels Möller [Wed, 9 Nov 2022 10:26:54 +0000 (11:26 +0100)] 
Merge branch 'nettle-ppc-poly1305-multi' into master

See merge request nettle/nettle!56

2 years agoWhitespace fixes.
Niels Möller [Wed, 9 Nov 2022 10:26:18 +0000 (11:26 +0100)] 
Whitespace fixes.

2 years ago[PowerPC] Use INC_GPR/INC_VR marcos and define HAVE_NATIVE_poly1305_blocks in fat...
Maamoun TK [Tue, 8 Nov 2022 06:19:33 +0000 (08:19 +0200)] 
[PowerPC] Use INC_GPR/INC_VR marcos and define HAVE_NATIVE_poly1305_blocks in fat build

2 years agoAdd ASM_FLAGS variable to configure.
Niels Möller [Mon, 7 Nov 2022 19:18:20 +0000 (20:18 +0100)] 
Add ASM_FLAGS variable to configure.

2 years agoComment fix
Niels Möller [Mon, 7 Nov 2022 19:13:30 +0000 (20:13 +0100)] 
Comment fix

2 years agoUpdate BLOCK_R64 macro description
Maamoun TK [Sun, 6 Nov 2022 06:11:18 +0000 (06:11 +0000)] 
Update BLOCK_R64 macro description

2 years ago[PowerPC] Move register allocation from poly1305.m4
Maamoun TK [Sun, 6 Nov 2022 06:00:38 +0000 (08:00 +0200)] 
[PowerPC] Move register allocation from poly1305.m4

2 years ago[PowerPC] Implement _nettle_poly1305_blocks based on radix 2^44
Maamoun TK [Tue, 1 Nov 2022 06:09:44 +0000 (08:09 +0200)] 
[PowerPC] Implement _nettle_poly1305_blocks based on radix 2^44

2 years agox86_64: Implement _nettle_poly1305_blocks.
Niels Möller [Mon, 31 Oct 2022 18:18:24 +0000 (19:18 +0100)] 
x86_64: Implement _nettle_poly1305_blocks.

2 years agoNew function _nettle_poly1305_update.
Niels Möller [Mon, 31 Oct 2022 18:04:23 +0000 (19:04 +0100)] 
New function _nettle_poly1305_update.

2 years agoMinor comment fix.
Niels Möller [Mon, 31 Oct 2022 17:48:52 +0000 (18:48 +0100)] 
Minor comment fix.

2 years agoMerge branch 'power7-chacha-fix' into 'master'
Niels Möller [Thu, 20 Oct 2022 19:07:51 +0000 (19:07 +0000)] 
Merge branch 'power7-chacha-fix' into 'master'

Fix illegal instruction in chacha-2core.asm on POWER7

See merge request nettle/nettle!54

2 years agoFix illegal instruction in chacha-2core.asm on POWER7
Maamoun TK [Thu, 20 Oct 2022 12:54:19 +0000 (14:54 +0200)] 
Fix illegal instruction in chacha-2core.asm on POWER7

2 years agoDocumentation of Balloon hash.
Zoltan Fridrich [Sun, 16 Oct 2022 13:00:36 +0000 (15:00 +0200)] 
Documentation of Balloon hash.

2 years agoUse updated version of qemu that emulates vmsumudm properly on ppc
Maamoun TK [Thu, 13 Oct 2022 09:47:08 +0000 (11:47 +0200)] 
Use updated version of qemu that emulates vmsumudm properly on ppc

2 years agoUndo workaround for unsupported vmsumudm on ppc
Maamoun TK [Thu, 13 Oct 2022 09:46:50 +0000 (11:46 +0200)] 
Undo workaround for unsupported vmsumudm on ppc

2 years agoFix bug in poly1305-internal.asm affecting big-endian mode
Maamoun TK [Thu, 13 Oct 2022 09:44:41 +0000 (11:44 +0200)] 
Fix bug in poly1305-internal.asm affecting big-endian mode

2 years agoAdd back implementation of mpn_sec_tabselect, for mini-gmp builds.
Niels Möller [Thu, 13 Oct 2022 17:16:36 +0000 (19:16 +0200)] 
Add back implementation of mpn_sec_tabselect, for mini-gmp builds.

2 years agoDelete sec_tabselect, use gmp's mpn_sec_tabselect instead.
Niels Möller [Tue, 11 Oct 2022 18:27:39 +0000 (20:27 +0200)] 
Delete sec_tabselect, use gmp's mpn_sec_tabselect instead.

2 years agoAdd benchmarking of modulo q inversion.
Niels Möller [Sun, 2 Oct 2022 15:56:16 +0000 (17:56 +0200)] 
Add benchmarking of modulo q inversion.

2 years agoFix compiler warnings in the eccdata program.
Niels Möller [Thu, 29 Sep 2022 19:23:22 +0000 (21:23 +0200)] 
Fix compiler warnings in the eccdata program.

2 years agoChangeLog update.
Niels Möller [Thu, 29 Sep 2022 19:19:50 +0000 (21:19 +0200)] 
ChangeLog update.

2 years agoDelete ecc->mul_g and ecc->h_to_a indirection for ecdsa/gostdsa sign. ecdsa-weierstrass-only
Niels Möller [Wed, 28 Sep 2022 17:29:15 +0000 (19:29 +0200)] 
Delete ecc->mul_g and ecc->h_to_a indirection for ecdsa/gostdsa sign.

2 years agoDelete ecc->mul and ecc->mul_g indirection for ecdsa/gostdsa verify.
Niels Möller [Wed, 28 Sep 2022 17:21:50 +0000 (19:21 +0200)] 
Delete ecc->mul and ecc->mul_g indirection for ecdsa/gostdsa verify.

2 years agoMerge branch 'ecdsa-duplication-fix'
Niels Möller [Wed, 28 Sep 2022 15:50:16 +0000 (17:50 +0200)] 
Merge branch 'ecdsa-duplication-fix'

2 years agoComment update ecdsa-duplication-fix
Niels Möller [Wed, 28 Sep 2022 15:46:27 +0000 (17:46 +0200)] 
Comment update

2 years agoStricter validation of nettle_cipher and nettle_hash in tests.
Niels Möller [Wed, 28 Sep 2022 09:49:54 +0000 (11:49 +0200)] 
Stricter validation of nettle_cipher and nettle_hash in tests.

Increase NETTLE_MAX_HASH_BLOCK_SIZE to 144, to accommodate sha3_224.

2 years agoChangeLog and AUTHORS update for SIV-GCM.
Niels Möller [Wed, 28 Sep 2022 08:59:36 +0000 (10:59 +0200)] 
ChangeLog and AUTHORS update for SIV-GCM.

2 years agoChangeLog and AUTHORS update for Balloon.
Niels Möller [Wed, 28 Sep 2022 08:46:41 +0000 (10:46 +0200)] 
ChangeLog and AUTHORS update for Balloon.

2 years agoMerge branch 'wip/dueno/aes-gcm-siv' into 'master'
Niels Möller [Wed, 28 Sep 2022 08:24:50 +0000 (08:24 +0000)] 
Merge branch 'wip/dueno/aes-gcm-siv' into 'master'

Implement AES-GCM-SIV

See merge request nettle/nettle!52

2 years agoImplement AES-GCM-SIV
Daiki Ueno [Tue, 16 Aug 2022 07:37:51 +0000 (16:37 +0900)] 
Implement AES-GCM-SIV

This implements AES-GCM-SIV, described in RFC8452, on top of the
existing AES-GCM primitives.  In particular, its hash algorithm
POLYVAL is implemented using the GHASH with additional byte order
conversion according to RFC8452 Appendix A.

Signed-off-by: Daiki Ueno <dueno@redhat.com>
2 years agoAdd Red Hat copyright lines. balloon
Zoltan Fridrich [Sat, 24 Sep 2022 08:57:34 +0000 (10:57 +0200)] 
Add Red Hat copyright lines.

2 years agoAvoid calling hash update with NULL input (and zero length)
Zoltan Fridrich [Sat, 24 Sep 2022 08:56:31 +0000 (10:56 +0200)] 
Avoid calling hash update with NULL input (and zero length)

2 years agoDelete fail variable in tests
Zoltan Fridrich [Sat, 24 Sep 2022 08:54:38 +0000 (10:54 +0200)] 
Delete fail variable in tests

2 years agoImplement balloon password hashing
Zoltan Fridrich [Wed, 14 Sep 2022 08:07:19 +0000 (10:07 +0200)] 
Implement balloon password hashing

2 years agoFix ECDSA verify corner case
Niels Möller [Wed, 14 Sep 2022 14:17:52 +0000 (16:17 +0200)] 
Fix ECDSA verify corner case

* ecc-ecdsa-verify.c (ecc_ecdsa_verify): Use ecc_nonsec_add_jjj,
to produce correct result in a corner case where point addition
needs to use point duplication. Also use ecc_j_to_a rather than
ecc->h_to_a, since ecdsa supports only weierstrass curves.
* ecc-gostdsa-verify.c (ecc_gostdsa_verify): Analogous change.

* testsuite/ecdsa-verify-test.c (test_main): Add corresponding test.
* testsuite/ecdsa-sign-test.c (test_main): And a test producing
the problematic signature.

2 years agoNew function ecc_nonsec_add_jjj
Niels Möller [Wed, 14 Sep 2022 14:02:41 +0000 (16:02 +0200)] 
New function ecc_nonsec_add_jjj

2 years agoCleanup of eccdata.
Niels Möller [Thu, 8 Sep 2022 18:24:16 +0000 (20:24 +0200)] 
Cleanup of eccdata.

* eccdata.c (string_toupper): New utility function.
(output_modulo): Move more of the per-modulo output here.
(output_curve): Remove corresponding code.

2 years agoMove bswap-related functions to bswap-internal.h. bswap-header
Niels Möller [Wed, 31 Aug 2022 16:06:03 +0000 (18:06 +0200)] 
Move bswap-related functions to bswap-internal.h.

2 years agoUpdate AUTHORS file with SM4 contribution.
Niels Möller [Fri, 19 Aug 2022 07:39:31 +0000 (09:39 +0200)] 
Update AUTHORS file with SM4 contribution.

2 years agoAdd sm4.h to HEADERS. sm4
Niels Möller [Thu, 18 Aug 2022 14:51:48 +0000 (16:51 +0200)] 
Add sm4.h to HEADERS.

2 years agoChangeLog entries for SM4.
Niels Möller [Thu, 18 Aug 2022 13:35:49 +0000 (15:35 +0200)] 
ChangeLog entries for SM4.

2 years agodoc: documentation for GCM using SM4 cipher
Tianjia Zhang [Mon, 21 Feb 2022 08:37:16 +0000 (16:37 +0800)] 
doc: documentation for GCM using SM4 cipher

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
2 years agogcm: Add SM4 as the GCM underlying cipher
Tianjia Zhang [Mon, 21 Feb 2022 08:37:15 +0000 (16:37 +0800)] 
gcm: Add SM4 as the GCM underlying cipher

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
2 years agodoc: Add menu items for SM4
Niels Möller [Thu, 18 Aug 2022 09:31:47 +0000 (11:31 +0200)] 
doc: Add menu items for SM4

2 years agodoc: documentation for SM4 cipher algorithm
Tianjia Zhang [Mon, 21 Feb 2022 08:37:14 +0000 (16:37 +0800)] 
doc: documentation for SM4 cipher algorithm

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
2 years agonettle-benchmark: bench SM4 symmetric algorithm
Tianjia Zhang [Mon, 21 Feb 2022 08:37:13 +0000 (16:37 +0800)] 
nettle-benchmark: bench SM4 symmetric algorithm

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
2 years agotestsuite: add test for SM4 symmetric algorithm
Tianjia Zhang [Mon, 21 Feb 2022 08:37:12 +0000 (16:37 +0800)] 
testsuite: add test for SM4 symmetric algorithm

Add a testuite for SM4 symmetric algorithm. Test vectors are based
on: https://tools.ietf.org/id/draft-ribose-cfrg-sm4-10.html

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
2 years agoIntroduce SM4 symmetric cipher algorithm
Tianjia Zhang [Mon, 21 Feb 2022 08:37:11 +0000 (16:37 +0800)] 
Introduce SM4 symmetric cipher algorithm

Introduce the SM4 cipher algorithms (OSCCA GB/T 32907-2016).

SM4 (GBT.32907-2016) is a cryptographic standard issued by the
Organization of State Commercial Administration of China (OSCCA)
as an authorized cryptographic algorithms for the use within China.

SMS4 was originally created for use in protecting wireless
networks, and is mandated in the Chinese National Standard for
Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure)
(GB.15629.11-2003).

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
2 years agoChange mips abi check to apply only to mips64.
Niels Möller [Thu, 18 Aug 2022 07:54:42 +0000 (09:54 +0200)] 
Change mips abi check to apply only to mips64.

2 years agotests: Define mpz_urandomm when building with mini-gmp.
Niels Möller [Wed, 17 Aug 2022 14:53:11 +0000 (16:53 +0200)] 
tests: Define mpz_urandomm when building with mini-gmp.

2 years agoFix memory leak in new test.
Niels Möller [Tue, 16 Aug 2022 19:31:41 +0000 (21:31 +0200)] 
Fix memory leak in new test.

2 years agoReduce output range of ecc_mod_sub.
Niels Möller [Tue, 16 Aug 2022 17:47:20 +0000 (19:47 +0200)] 
Reduce output range of ecc_mod_sub.

* ecc-mod-arith.c (ecc_mod_sub): Ensure that if inputs are in the
range 0 <= a, b < 2m, then output is in the same range.
* eccdata.c (output_curve): New outputs ecc_Bm2p and ecc_Bm2q.
* ecc-internal.h (struct ecc_modulo): New member Bm2m (B^size -
2m), needed by ecc_mod_sub. Update all curves.
* testsuite/ecc-mod-arith-test.c: New tests for ecc_mod_add and
ecc_mod_sub.

2 years agoMinor cleanup to eccdata program
Niels Möller [Tue, 16 Aug 2022 15:03:03 +0000 (17:03 +0200)] 
Minor cleanup to eccdata program

2 years agoMerge branch 'sha256-compress-n' into master-updates
Niels Möller [Mon, 15 Aug 2022 07:27:36 +0000 (09:27 +0200)] 
Merge branch 'sha256-compress-n' into master-updates

2 years agoWorkaround for qemu bug affecting the ppc intruction vmsumudm
Niels Möller [Sun, 14 Aug 2022 18:53:10 +0000 (20:53 +0200)] 
Workaround for qemu bug affecting the ppc intruction vmsumudm

Introduce overriding environment variable NETTLE_FAT_DISABLE_POWER9
that disables use of power9 code. This makes poly1305 tests under qemu
pass. See https://gitlab.com/qemu-project/qemu/-/issues/1156.

3 years agoDocument hash compress functions, based on patch from Corentin Labbe.
Niels Möller [Sun, 7 Aug 2022 19:03:56 +0000 (21:03 +0200)] 
Document hash compress functions, based on patch from Corentin Labbe.

3 years agoTweak to AC_CONFIG_SRCDIR.
Niels Möller [Sun, 7 Aug 2022 18:40:59 +0000 (20:40 +0200)] 
Tweak to AC_CONFIG_SRCDIR.

* configure.ac: Refer to nettle-types.h, rather than arcfour.c,
for AC_CONFIG_SRCDIR.

3 years agoDelete all arcfour assembly code delete-arcfour-asm
Niels Möller [Sun, 7 Aug 2022 18:34:12 +0000 (20:34 +0200)] 
Delete all arcfour assembly code

3 years agoMerge branch 'ppc-r64-44' into 'master'
Niels Möller [Sat, 6 Aug 2022 19:45:01 +0000 (19:45 +0000)] 
Merge branch 'ppc-r64-44' into 'master'

[PowerPC] Implement Poly1305 single block update based on radix 2^64

See merge request nettle/nettle!47

3 years ago[PowerPC] Use defined structure constants of P1305 in asm.m4
Maamoun TK [Sat, 6 Aug 2022 05:09:55 +0000 (05:09 +0000)] 
[PowerPC] Use defined structure constants of P1305 in asm.m4

3 years agoFix alloca warnings on bsd systems.
Niels Möller [Fri, 5 Aug 2022 19:23:10 +0000 (21:23 +0200)] 
Fix alloca warnings on bsd systems.

* nettle-internal.h: Include stdlib.h, fix alloca warnings on BSD.
* hmac.c: Delete corresponding include here, no longer needed.

3 years agoFix to getopt.c includes.
Niels Möller [Fri, 5 Aug 2022 19:18:53 +0000 (21:18 +0200)] 
Fix to getopt.c includes.

* getopt.c: Include stdlib.h and unistd.h unconditionally,
similarly to the gnulib version of this file.

3 years agoChangeLog entries for *BSD portability fixes from Brad Smith.
Niels Möller [Thu, 4 Aug 2022 08:58:00 +0000 (10:58 +0200)] 
ChangeLog entries for *BSD portability fixes from Brad Smith.

3 years agoFix 64-bit MIPS ABI check for other OS's like *BSD / Linux
Brad Smith [Mon, 1 Aug 2022 19:38:15 +0000 (15:38 -0400)] 
Fix 64-bit MIPS ABI check for other OS's like *BSD / Linux

Signed-off-by: Brad Smith <brad@comstyle.com>
3 years agoEliminate conflict with OpenBSD's swap32 macro
Brad Smith [Mon, 1 Aug 2022 18:57:34 +0000 (14:57 -0400)] 
Eliminate conflict with OpenBSD's swap32 macro

blowfish-bcrypt.c:152:33: error: too many arguments provided to function-like macro invocation
static void swap32(uint32_t *x, int count)
                                ^
/usr/include/sys/endian.h:71:9: note: macro 'swap32' defined here

Signed-off-by: Brad Smith <brad@comstyle.com>