Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Whitespace fixes. | jsing | 2023-03-29 | 1 | -68/+68 | |
| | | | | | | | Mechanically replace "a,b" with "a, b", followed with some manual indentation clean up. No change in generated assembly. | |||||
* | Use multiple statements instead of a statement with multiple expressions. | jsing | 2023-03-29 | 1 | -4/+5 | |
| | | | | No change in generated assembly. | |||||
* | Mop up MD32_XARRAY from SHA1. | jsing | 2023-03-29 | 1 | -162/+135 | |
| | | | | | | | | | MD32_XARRAY (formerly SHA_XARRAY) was added as a workaround for a broken HP C compiler (circa 1999). Clean it up to simplify the code. No change in generated assembly. ok miod@ tb@ | |||||
* | Inline initial hash data values for SHA1. | jsing | 2023-03-29 | 1 | -13/+9 | |
| | | | | | | This follows what is done for other SHA implementations. ok miod@ tb@ | |||||
* | Reorder functions/code. | jsing | 2023-03-27 | 1 | -238/+238 | |
| | | | | No intended functional change. | |||||
* | Replace the remaining BN_copy() with bn_copy() | tb | 2023-03-27 | 19 | -116/+116 | |
| | | | | ok jsing | |||||
* | Convert BN_copy() with missing error checks to bn_copy() | tb | 2023-03-27 | 4 | -11/+18 | |
| | | | | ok jsing | |||||
* | Convert BN_copy() with explicit comparison against NULL to bn_copy() | tb | 2023-03-27 | 7 | -25/+25 | |
| | | | | ok jsing | |||||
* | Use bn_copy() rather than inlining it | tb | 2023-03-27 | 1 | -2/+2 | |
| | | | | ok jsing | |||||
* | Tidy includes. | jsing | 2023-03-27 | 1 | -5/+4 | |
| | ||||||
* | Avoid errno is EINVAL after OpenSSL initialization | jan | 2023-03-27 | 1 | -1/+5 | |
| | | | | ok tb@ | |||||
* | Drop unnecessary parentheses. | tb | 2023-03-27 | 1 | -3/+3 | |
| | | | | ok jsing | |||||
* | Convert bn_nist.c to BN_copy() | tb | 2023-03-27 | 1 | -6/+6 | |
| | | | | | | | Like everything else in this file, the use of BN_copy() needs to be ... special. Simplify using the new bn_copy(). ok jsing | |||||
* | Add bn_copy(), a sane wrapper of BN_copy() for internal use | tb | 2023-03-27 | 2 | -2/+10 | |
| | | | | ok jsing | |||||
* | Replace HASH_BLOCK_DATA_ORDER with sha1_block_data_order. | jsing | 2023-03-26 | 1 | -4/+4 | |
| | | | | | The only reason to use HASH_BLOCK_DATA_ORDER in the implementation is to make the code harder to read. | |||||
* | Remove unnecessary HIDDEN_DECLS. | jsing | 2023-03-26 | 1 | -6/+1 | |
| | ||||||
* | Removes some unwanted spaces. | jsing | 2023-03-26 | 1 | -7/+7 | |
| | ||||||
* | Whack sha1dgst.c with the style(9) stick again. | jsing | 2023-03-26 | 1 | -193/+246 | |
| | ||||||
* | Minor whitespace tidying | tb | 2023-03-26 | 2 | -6/+7 | |
| | ||||||
* | Tidy up includes. | jsing | 2023-03-26 | 1 | -9/+5 | |
| | ||||||
* | Inline sha_local.h in sha1dgst.c. | jsing | 2023-03-26 | 1 | -3/+360 | |
| | | | | | Nothing other than sha1dst.c uses this header - pull it in to sha1dgst.c directly (sha_local.h will be removed at a later date). | |||||
* | Make several calls to BN_nnmod() unconditional | tb | 2023-03-26 | 1 | -19/+10 | |
| | | | | | | | | This removes a potential branch in a sensitive function and makes the code a lot simpler. It is a really bad idea optimize here for what davidben aptly calls "calculator" purposes. ok jsing | |||||
* | Correctly reduce negative inpot to BN_mod_exp2_mont() | tb | 2023-03-26 | 1 | -3/+3 | |
| | | | | | | | | | | Negative bases could result in a negative modulus being returned. This is not strictly speaking incorrect but slightly surprising. This is all a consequence of the shortcut of defining BN_mod() as a macro using BN_div(). Fixes ossfuzz #55997 ok jsing | |||||
* | Add license to sha256.c/sha512.c. | jsing | 2023-03-26 | 2 | -6/+100 | |
| | ||||||
* | Use multiple statements instead of comma separated expressions. | jsing | 2023-03-26 | 1 | -24/+33 | |
| | | | | No change to generated assembly. | |||||
* | Add blank lines for readability. | jsing | 2023-03-26 | 1 | -1/+4 | |
| | ||||||
* | Add some blank lines for readability, along with some more style(9) tweaks. | jsing | 2023-03-26 | 2 | -7/+24 | |
| | ||||||
* | Whack sha with a style(9) stick. | jsing | 2023-03-26 | 4 | -505/+706 | |
| | | | | No change in generated assembly. | |||||
* | bn_prime.pl: fix shebang and a couple more whitespace tweaks | tb | 2023-03-26 | 1 | -3/+4 | |
| | ||||||
* | Use strict and warnings | tb | 2023-03-25 | 1 | -1/+6 | |
| | ||||||
* | Make an attempt at reducing the eyebleed in bn_prime.pl | tb | 2023-03-25 | 1 | -24/+18 | |
| | | | | | Use a style more resembling KNF and drop lots of parentheses. Simplify a few things. No change in generated output on success. | |||||
* | Use Eric Young's usual license in the proper place rather than a weird | tb | 2023-03-25 | 1 | -12/+57 | |
| | | | | commented-out license stub in a HERE document. | |||||
* | Add RCSID | tb | 2023-03-25 | 1 | -1/+1 | |
| | ||||||
* | Add checks to ensure the uint16_t array isn't overflowed when this | tb | 2023-03-25 | 1 | -0/+4 | |
| | | | | | script is run. This is more of an issue with uint16_t now than it was with prime_t aka BN_ULONG before r1.6. | |||||
* | Zap an empty line | tb | 2023-03-25 | 1 | -2/+1 | |
| | ||||||
* | Drop unnecessary casts from and to void * | tb | 2023-03-25 | 1 | -8/+6 | |
| | ||||||
* | Unindent asn1_bio_get_ex() | tb | 2023-03-25 | 1 | -6/+7 | |
| | ||||||
* | Pull in <openssl/rsa.h> directly | tb | 2023-03-25 | 1 | -1/+2 | |
| | | | | | | This is needed for many reasons. It is currently pulled in via x509.h but only when OPENSSL_NO_DEPRECATED is undefined. Again this should be fixed in the public header as well. | |||||
* | BN_free() is defined in <openssl/bn.h> | tb | 2023-03-25 | 2 | -4/+7 | |
| | | | | | | This is currently pulled in via dsa.h and ecdsa.h, but only when OPENSSL_NO_DEPRECATED is not defined. We should fix this in the public header, too - let's wait a bit with that. | |||||
* | fixes for mandoc -Tlint | jsg | 2023-03-18 | 1 | -5/+5 | |
| | | | | ok tb@ | |||||
* | Consistent phrasing: function -> function pointer | job | 2023-03-16 | 1 | -2/+2 | |
| | ||||||
* | Add X509_STORE_{set,get}_check_issued and X509_STORE_CTX_get_check_issued to ↵ | job | 2023-03-16 | 1 | -3/+75 | |
| | | | | | | manpage with and OK tb@ | |||||
* | Install EVP_CIPHER_meth_new.3 | tb | 2023-03-16 | 1 | -1/+2 | |
| | ||||||
* | Add EVP_CIPHER_meth_* documentation from OpenSSL 1.1 | tb | 2023-03-16 | 1 | -0/+335 | |
| | | | | | | | | This is essentially the original text with a few tweaks and fixes by me, removing parts inapplicable to LibreSSL. There are dangling references to EVP_CIPHER_CTX_copy(3) and EVP_CIPHER_CTX_get_cipher_data(3). This all isn't great, but it's better than nothing. Probably good enough for these rarely used functions. | |||||
* | Update manpage for X509_CRL_get0_tbs_sigalg()libressl-v3.7.1 | job | 2023-03-16 | 1 | -4/+18 | |
| | | | | OK tb@ | |||||
* | Bump LibreSSL version to 3.7.2 | tb | 2023-03-16 | 1 | -3/+3 | |
| | ||||||
* | Return the signature length after successful signing operation | tb | 2023-03-15 | 1 | -1/+3 | |
| | | | | | | | | | This is required behavior of the EVP_DigestSign() API, but seemingly almost nothing uses this. Well, turns out ldns does. Reported by Stephane. Helpful comments by sthen. ok jsing | |||||
* | Add comments that explain why things are done in this strange order. | tb | 2023-03-15 | 1 | -3/+13 | |
| | | | | | | There's some method to this madness. ok jsing | |||||
* | Push calloc() of ndef_aux down as far as possible and | tb | 2023-03-15 | 1 | -7/+8 | |
| | | | | | | | pull the setting of the ex_arg up, so we can do error checking. ok jsing | |||||
* | Error check BIO_asn1_set_{prefix,suffix}() calls | tb | 2023-03-15 | 1 | -3/+5 | |
| | | | | ok jsing |