Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | remove duplicate includes | jsg | 2023-04-19 | 2 | -4/+2 |
| | |||||
* | remove duplicate includes | jsg | 2023-04-19 | 1 | -2/+1 |
| | | | | ok tb@ | ||||
* | Rename Hex array to hex_digits. | jsing | 2023-04-19 | 1 | -5/+5 |
| | | | | ok tb@ | ||||
* | Move the BN_bn2bin()/BN_bin2bn() family to bn_convert.c | jsing | 2023-04-19 | 2 | -182/+183 |
| | |||||
* | Reorder functions. | jsing | 2023-04-19 | 1 | -102/+102 |
| | | | | No functional change. | ||||
* | Move BN_options() from bn_convert.c to bn_lib.c | jsing | 2023-04-19 | 2 | -21/+21 |
| | |||||
* | unifdef BN_RECURSION | jsing | 2023-04-19 | 5 | -594/+5 |
| | | | | | | | | | | | | This removes a bunch of incomplete and scary code, which potentially leaks secrets and is not constant time. A performance gain is achieved on arm64 for sizes that we care about, while a minimal decrease in performance is noted for larger sizes on some other platforms. While we will potentially reimplement Karatsuba (or Toom-Cook) at a later date, it will be easier and safer to do it from a clean slate. ok tb@ | ||||
* | Use NULL, not 0 for pointers and use an explicit comparison against NULL. | tb | 2023-04-18 | 1 | -3/+3 |
| | |||||
* | ectest: Remove #if 1 | tb | 2023-04-18 | 1 | -3/+1 |
| | |||||
* | Unifdef OPENSSL_NO_EC_NISTP_64_GCC_128 | tb | 2023-04-18 | 1 | -203/+1 |
| | |||||
* | Remove prototypes under OPENSSL_NO_EC_NISTP_64_GCC_128 | tb | 2023-04-18 | 1 | -18/+1 |
| | | | | | | | The code was deleted a while back, the prototypes remained. We had OPENSSL_NO_EC_NISTP_64_GCC_128 in opensslfeatures.h since forever. discussed with jsing | ||||
* | Move x509.h inclusion into alphabetical order | tb | 2023-04-18 | 1 | -3/+2 |
| | |||||
* | Bring includes into canonical order | tb | 2023-04-18 | 6 | -37/+35 |
| | | | | Requested by jsing | ||||
* | Sigh cvs... Also drop OPENSSL_NO_DEPRECATED from ec.h | tb | 2023-04-18 | 1 | -3/+1 |
| | |||||
* | Move some includes out of OPENSSL_NO_DEPRECATED | tb | 2023-04-18 | 9 | -27/+9 |
| | | | | | | | | | | | | | Some headers were included conditionally on OPENSSL_NO_DEPRECATED in hopes that eventually the mess of everything includes everything will magically resolve itself. Of course everyone would end up building openssl with OPENSSL_NO_DEPRECATED over time... Right. Surprisingly, the ecosystem has come to rely on these implicit inclusions, so about two dozen ports would fail to build because of this. Patching this would be easy but really not worth the effort. ok jsing | ||||
* | ectest: drop a broken #if 0 /* optional */ piece of code | tb | 2023-04-18 | 1 | -20/+5 |
| | | | | | This places a point at infinity and then fails. Fix some wacky indentation in the vicinity. | ||||
* | ec_point_conversion: drop test for sect571k1 | tb | 2023-04-18 | 1 | -350/+2 |
| | | | | Maybe it should be replaced by another test, although P-256 seems enough. | ||||
* | ectest: drop some gross unused macros | tb | 2023-04-18 | 1 | -49/+1 |
| | |||||
* | ectest: unifdef OPENSSL_NO_EC2M | tb | 2023-04-18 | 1 | -418/+1 |
| | |||||
* | Skip binary curves in ec_point_conversion | tb | 2023-04-17 | 1 | -3/+14 |
| | |||||
* | Switch all ec tests to using dynamic linking | tb | 2023-04-17 | 3 | -8/+14 |
| | | | | | This only requires very minor changes and simplifies testing quite a bit. Some of the changes can be undone after the next bump. | ||||
* | Simplify Makefile | tb | 2023-04-17 | 1 | -12/+1 |
| | |||||
* | Drop GF2m tests | tb | 2023-04-17 | 1 | -647/+1 |
| | | | | The code they test will go away soon. | ||||
* | Allow overriding the bc implementation used in run-bc | tb | 2023-04-17 | 1 | -2/+7 |
| | | | | | | | | | | | | While base bc is great, it uses libcrypto's BIGNUM implementation. This implies that the independent verification of the bn_test isn't as independent as it should be. With this commit, run-bc picks up bn-gh if it is installed. This appears to work on amd64, arm64 and sparc64 (where gbc is busted). I will send PRs to the regress maintainers once I will have tested this a bit more thoroughly. Committing this early since I juggle way too many diffs already. | ||||
* | Fix typo | tb | 2023-04-17 | 1 | -2/+2 |
| | |||||
* | Drop two useless READMEs | tb | 2023-04-17 | 2 | -18/+0 |
| | | | | "go ahead" jsing | ||||
* | Skip sect* curve checks | tb | 2023-04-17 | 1 | -2/+2 |
| | | | | | GF2m curves will go away soon. This reduces the pile of diffs in my jungle a tiny little bit. | ||||
* | c_zlib.c needs bio_local.h with -DZLIB. | tb | 2023-04-17 | 1 | -1/+2 |
| | | | | | Apparently nobody tried to compile libcrypto with ZLI since Jan 2022. Maybe this means that we can unifdef -U ZLIB or maybe not... | ||||
* | Tweak indent and use named registers. | jsing | 2023-04-17 | 1 | -13/+13 |
| | | | | No functional change. | ||||
* | Hook sha3 up to build. | jsing | 2023-04-17 | 1 | -1/+3 |
| | | | | ok tb@ | ||||
* | Move BN_bn2mpi()/BN_mpi2bn() into bn_convert.c | jsing | 2023-04-17 | 3 | -138/+74 |
| | |||||
* | Use C99 initializers for the default_pctx and mark it static const | tb | 2023-04-17 | 1 | -8/+3 |
| | |||||
* | Add missing const qualifiers to the v3_* externs | tb | 2023-04-17 | 1 | -11/+11 |
| | | | | ok jsing | ||||
* | Fix whitespace in DHparam_print_fp() | tb | 2023-04-17 | 1 | -2/+4 |
| | |||||
* | Remove now unused dh_prn.c | tb | 2023-04-17 | 1 | -64/+0 |
| | |||||
* | Drop dh_prn.c | tb | 2023-04-17 | 1 | -2/+1 |
| | |||||
* | Move DHparam_print_fp() next to DHparam_print() | tb | 2023-04-17 | 2 | -17/+18 |
| | | | | | As usual with the fp suffix, the former wraps the latter with a file BIO. There is no reason for this function to be in a separate file. | ||||
* | remove bad Pp; | jmc | 2023-04-17 | 1 | -3/+2 |
| | | | | (sorry, otto, for not spotting in the updated diff) | ||||
* | Fix previous: add a missing and | tb | 2023-04-16 | 1 | -2/+3 |
| | |||||
* | Dump (leak) info using utrace(2) and compile the code always in | otto | 2023-04-16 | 2 | -148/+199 |
| | | | | | except for bootblocks. This way we have built-in leak detecction always (if enable by malloc flags). See man pages for details. | ||||
* | Garbage collect the now unused obfuscating macro string_stack_free() | tb | 2023-04-16 | 1 | -4/+1 |
| | |||||
* | Inline the three uses of string_stack_free() | tb | 2023-04-16 | 1 | -4/+4 |
| | | | | | | | sk_OPENSSL_STRING_pop_free() is much more explicit and isn't that much more complicated. x509_util.c can also use it directly... No binary change | ||||
* | Remove the now unused vpm_int.h | tb | 2023-04-16 | 1 | -64/+0 |
| | |||||
* | x509_vfy.c and x509_vpm.c don't need vpm_int.h anymore | tb | 2023-04-16 | 2 | -4/+4 |
| | |||||
* | Move X509_VERIFY_PARAM_st from vpm_int.h to x509_local.h | tb | 2023-04-16 | 2 | -13/+13 |
| | |||||
* | Provide EVP methods for SHA3 224/256/384/512. | jsing | 2023-04-16 | 3 | -2/+193 |
| | | | | ok tb@ | ||||
* | Provide EVP methods for SHA512/224 and SHA512/256. | jsing | 2023-04-16 | 4 | -4/+91 |
| | | | | ok tb@ | ||||
* | Bounds check mdlen that is passed to sha3_init(). | jsing | 2023-04-16 | 1 | -2/+5 |
| | | | | While here, use KECCAK_BYTE_WIDTH instead of hardcoding the value. | ||||
* | Shuffle ext_cmp() and ext_list_free() up a bit | tb | 2023-04-16 | 1 | -18/+14 |
| | |||||
* | Remove unnecessary prototypes in the middle of the code | tb | 2023-04-16 | 1 | -5/+1 |
| | | | | In addition, ext_cmp() was already prototyped earlier... |