summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/objects/obj_xref.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-01-28Move the three functions that are in bn_depr.c back to bn_prime.c.jsing2-53/+57
They should go away, but they have not yet disappeared and this consolidates the source files. Discussed with tb@
2023-01-28Move the more readable version of bn_mul_mont() from bn_asm.c to bn_mont.c.jsing2-168/+55
Nothing actually uses this code, as OPENSSL_BN_ASM_MONT is not defined unless there is an assembly implementation available (not to mention that defining both OPENSSL_NO_ASM and OPENSSL_BN_ASM_MONT at the same time is extra strange). Discussed with tb@
2023-01-28Fix previous.jsing1-4/+9
2023-01-28Provide bn_div_rem_words() and make use of it.jsing5-67/+87
Provide a function that divides a double word (h:l) by d, returning the quotient q and the remainder r, such that q * d + r is equal to the numerator. Call this from the three places that currently implement this themselves. This is implemented with some slight indirection, which allows for per architecture implementations, replacing the define/macro tangle, which messes with variables that are not passed to it. Also remove a duplicate of bn_div_words() for the BN_ULLONG && BN_DIV2W case - this is already handled. ok tb@
2023-01-27Add openssl 3.0 interop teststb5-12/+70
The plan is to retire the 1.0.2 interop tests soon so as to be able to drop the dead and dangerous OpenSSL 1.0.2 port. The cert part is extremely slow on arm64: the whole interop test on an m1 is about 10x slower (~45 min!) than on a modern amd64 laptop, so people running regress may want to wait a bit with adding OpenSSL 3 to their test boxes until this is sorted out.
2023-01-24Check return value of X509_digestjob1-2/+3
OK tb@
2023-01-23Change include from _internal_s2n_bignum.h to s2n_bignum_internal.h.jsing9-9/+9
2023-01-23Include the ISC license from s2n-bignum's LICENSE file.jsing9-9/+108
2023-01-23Bring in various s2n-bignum functions for amd64.jsing9-0/+1458
This brings in bignum_add(), bignum_cmadd(), bignum_cmul(), bignum_mul() and bignum_sub(), along with bignum_{mul,sqr}_4_8_alt() and bignum_{mul,sqr}_8_16_alt(). Discussed with tb@
2023-01-23Move bn_mul_add_words() and bn_mul_words() from bn_asm.c to bn_mul.c.jsing7-138/+156
These are wrapped with #ifndef HAVE_BN_ADD_MUL_WORDS/HAVE_BN_MUL_WORDS, which are defined for architectures that provide their own assembly versions.
2023-01-23Move bn_sqr_words from bn_asm.c to bn_sqr.c.jsing7-59/+69
This is wrapped with #ifndef HAVE_BN_SQR_WORDS, which is then defined for architectures that provide their own assembly versions.
2023-01-23Move bn_div_words from bn_asm.c to bn_div.c.jsing7-86/+98
This is wrapped with #ifndef HAVE_BN_DIV_WORDS, which are defined for architectures that provide their own assembly versions.
2023-01-23Include bn_arch.h now that we're using defines from it.jsing1-1/+2
2023-01-23Move bn_add_words() and bn_sub_words from bn_asm.c to bn_add.c.jsing7-159/+184
These are wrapped with #ifndef HAVE_BN_ADD_WORDS/HAVE_BN_SUB_WORDS, which are defined for architectures that provide their own assembly versions.
2023-01-21Enable bn_sqr() on amd64.jsing1-1/+2
ok tb@
2023-01-21Provide an implementation of bn_sqr() that calls s2n-bignum's bignum_sqr().jsing3-3/+41
ok tb@
2023-01-21Fix include.jsing1-1/+1
2023-01-21Include the ISC license from s2n-bignum's LICENSE file.jsing1-1/+12