summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/rsautl.c (unfollow)
Commit message (Collapse)AuthorFilesLines
17 hoursUnifdef AES_CTR_ASM.jsing1-14/+1
This is a remnant from s390x assembly.
18 hoursSimplify EVP code for AES CBC.jsing1-26/+33
Change aes_cbc_cipher() to call AES_cbc_encrypt() directly, rather than via the stream.cbc function pointer. Remove stream.cbc since it is no longer used. Also provide a separate aes_cbc_init_key() function which makes this standalone and does not require checking mode flags. ok joshua@ tb@
19 hoursadd missing u64/uint64_t conversionbcook1-3/+3
ok jsing@
19 hoursUse stdint types instead of u64/u32/u8.jsing5-134/+127
No change in generated assembly.
20 hoursRemove contortions with the rem_4bit table.jsing1-28/+9
Instead of using size_t and a PACK macro, store the entries as uint16_t and then uncondtionally left shift 48 bits. This gives a small performance gain on some architectures and has the advantage of reducing the size of the table from 1024 bits to 256 bits. ok beck@ joshua@ tb@
21 hoursInline REDUCE1BIT macro.jsing1-15/+6
The REDUCE1BIT macro is now only used in one place, so just inline it. Additionally we do not need separate 32 bit and 64 bit versions - just use the 64 bit version and let the compiler deal with it (we effectively get the same code on i386). ok beck@ joshua@
21 hoursbio_dump: only run strncmp if there's something to comparetb1-2/+2
21 hoursbio_mem: avoid pointer arithmetic on NULLtb1-2/+4
Prompted by a diff by Kenjiro Nakayama ok jsing
21 hoursrc2: two files escaped the lure of the attic, set these poor souls freetb2-241/+0
37 hoursRemove TABLE_BITS from gcm128.jsing2-248/+3
TABLE_BITS is always currently defined as 4 - 8 is considered to be insecure due to timing leaks and 1 is considerably slower. Remove code that is not regularly tested, does not serve a lot of purpose and is making clean up harder than it needs to be. ok tb@
3 daysReplace GCM_MUL/GHASH defines with static inline functions.jsing1-121/+99
Rather than having defines for GCM_MUL/GHASH (along with the wonder that is GCM_FUNCREF_4BIT) then conditioning on their availability, provide and call gcm_mul()/gcm_ghash() unconditionally. This simplifies all of the call sites. ok tb@
3 daysStop using CRYPTO_gcm128_init() and stack allocated GCM128_CONTEXT.jsing1-16/+16
Since struct gcm128_context is not exposed via a public header, there is no way CRYPTO_gcm128_init() can actually be used properly. Instead, use CRYPTO_gcm128_new() and CRYPTO_gcm128_free_bird()^WCRYPTO_gcm128_release() (naming consistency is apparently hard).
5 daysnc: disallow -T with = when arguments are not key=value pairstb1-1/+3
From Ross L Richardson
8 daysIncrease default PKCS12_SALT_LEN from 8 to 16 bytestb1-2/+2
Currently PKCS12_setup_mac() function uses salt length of 8 bytes / 64 bits when no salt length is specified. Increase this fallback default to 16 bytes / 128 bits, as recommended by NIST SP 800-132. Note this is for interoperability purposes. Some FIPS implementations enforce minimum salt length of 16 bytes. Examples of such FIPS implemenations are Bouncycastle FIPS Java API and Chainguard FIPS Provider for OpenSSL. Also future v3.6 release of OpenSSL will also increase the default salt length to 16 bytes. From Dimitri John Ledkov, thanks
9 daysasn_moid: move inclusion of err_local.h to the proper placetb1-2/+2
9 daysSort FOOerror() in ASCII ordertb1-18/+18
9 daysSimplify the remaining FOOerror()tb1-26/+28
Redirect through an additional macro that adds the repeated function, file and line macros. Reduces the eyesore and makes the whole thing much more redable. similar to a suggestion by jsing a while back
9 daysRemove unused internal FOOerror()tb1-11/+1
pointed out by djm a while back
9 daysRemove error macros except PEMerr(), RSAerr() and SSLerr()tb1-37/+4
These three are still used in about half a dozen ports. All the others are unused. ok jsing
9 daysssl_local.h: stop guarding SYSerror() with an #ifdeftb1-3/+1
9 daysMove the internal FOOerror() to err_local.htb2-40/+38
These are now only used in libcrypto. They should never have been in a public header in the first place. ok jsing
9 daysUse err_local.h rather than err.h in most placestb222-456/+454
ok jsing
9 daysssl_local: provide an SSL-internal version of SYSerror()tb1-1/+4
9 daysSSL_error_internal: remove a superfluous pair of parenstb1-3/+2
9 daysssl_local.h: adjust some whitespacetb1-3/+3
9 daysconst correct SSL_error_internal()tb2-4/+4
9 dayscms: disallow AEAD ciphers and AES XTStb1-3/+21
The CMS code doesn't support RFC 5083/5084 authenticated enveloped data and outputs garbage that even itself can't decrypt for a reason that I have not tried to pinpoint. So refuse using AEAD ciphers and AES XTS for enveloped data from the cms "app" and throw an error pointing out that this isn't supported. OpenSSL have since added incorrect support for AuthEnvelopedData (ASN.1 and code review are hard), so doing this right will need both correct and interoperable code, which I doubt anyone will bother to write anytime soon. Reported by Ben Cooper in https://github.com/libressl/portable/issues/1157 ok beck jsing
10 daysGarbage collect docs of BIO_dump{,_indent}_{cb,fp}()tb1-35/+3
The _cb() variants were only documented as intentionally undocumented. Be that as it may, they left the building more than a year ago.
10 daysbss_log.c: don't rely on err.h pulling in bio.htb1-2/+2
ok jsing
10 daysopenssl ocsp: switch from X509V3error() to perror()tb1-6/+6
ok jsing
14 daysmerge the x509name test into x509_name_test.ctb4-73/+125
Remove the old x509name test and its Makefile rule. Its logic has been fully integrated into x509_name_test.c using a new table-driven approach. Each x509 name entry is added and validated step by step, checking both the string representation produced by X509_NAME_print_ex() and the internal RDN set structure. This makes the test easier to extend and maintain, and eliminates the need for an external .expected file or output diff. From Kenjiro Nakayama (with tiny tweaks)
2025-05-04Fix up two markup mistakes with .Fn and .Xrtb1-4/+4
2025-05-04Improve the pqueue testtb3-48/+57
This simplifies the test in portable and makes the whole thing a bit less ugly overall. From Kenjiro Nakayama with minor tweaks by me
2025-05-04sigh. pqueue_find() also needs a const treatmenttb2-4/+4
2025-05-04pqueue.h: zap trailing whitespacetb1-3/+3
2025-05-04const correct first argument of pitem_new()tb2-4/+4
Makes upcoming changes in regress less ugly.
2025-05-04Remove the X9.62 prime239v{1,2,3} curvestb1-179/+1
While RFC 3279 allows these curves for use in X.509 certificates (*), no one actually does this. Certs using these curves cannot be used for TLS and the curves aren't accepted by FIPS either. codesearch shows no actual uses of these curves, only their OIDs are listed. At this point these have become useless historical baggage. ok jsing (*) Of the 27 curves listed in RFC 3279 the only one that seems to have seen actual use in certificates is P-256.
2025-05-04Remove the three test cases covering prime239v*tb1-121/+1
2025-05-04Move P-256 where it belongstb1-67/+67
ok jsing
2025-05-03Fix typo in curve comment: P224r2 -> P224t1tb1-2/+2
2025-05-03CTASSERT that internal pub/priv keys match the sizes exposed in mlkem.htb2-2/+10
This will need reworking (especially deduplicating) anyway, but it doesn't hurt now. From Kenjiro Nakayama
2025-05-03Verify that the selected key share is indeed group 29tb1-1/+6
From Kenjiro Nakayama
2025-05-03mlkem_unittest: check return value of decap()tb1-5/+11
From Kenjiro Nakayama
2025-05-03mlkem_tests: add an empty line for consistencytb1-1/+2
2025-05-01More space around .Dl + a typo on toptb2-5/+11
2025-05-01lhash: add missing spaces before assignment operatortb1-4/+4
2025-04-30tlsext: stop sending SNI before ALPN in clientstb1-24/+1
All supported releases of LibreSSL ensure that the corresponding callbacks are called in a predefined order rather than honoring the order in which a client sends its extensions. Therefore the ALPN callback for apache-httpd's virtual host setups can rely on SNI information being available and we no longer need to work around this on hte client side. Cuts the amount of code needed for tlsext randomization in half. ok jsing
2025-04-30tlsexttest: remove check that clients receive SNI before ALPNtb1-33/+3
The next commit will remove the kludge for compatibility of Apache with older libressl, so remove the corresponding regress coverage and only check that PSK is the last extension.
2025-04-28EC_GROUP_check.3: rephrase a sentence to avoid a word repetitiontb1-4/+4
2025-04-28EC_GROUP_new_by_curve_name.3: escape a - in code.tb1-3/+3