| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
This will be needed once headers pull in bn_arch.h.
|
|
|
|
|
|
| |
This adds more tests for BN_usub(), particularly where b > a, which should
be an error condition. One of these currently succeeds and produces
incorrect results.
|
| |
|
|
|
|
|
| |
The public APIs still change behaviour based on BN_FLG_CONSTTIME - set it
to avoid benchmark noise.
|
| |
|
|
|
|
| |
BN_rand() takes a bit length, not the top bit.
|
| |
|
|
|
|
| |
one in /usr/include/openssl.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
tests for TLSv1.3 since that's not currently handled.
|
| |
|
|
|
|
| |
32-bit systems.
|
|
|
|
| |
32-bit systems.
|
| |
|
|
|
|
| |
This prevents realloc from unnecessarily impacting the lshift benchmarks.
|
|
|
|
|
| |
Don't test waitid(WUNTRACED) as that's not portable and only 'works' due
to an implementation decision
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Provide regress coverage for BN_lshift1(), BN_rshift1(), BN_lshift() and
BN_rshift(), along with basic benchmarking functionality (run via
'make benchmark').
|
|
|
|
|
|
|
| |
A SSL_set_security_level() call was added to the cipher list regress, which
expects a failure - however, it should succeed and fails for a completely
unrelated reason. Rework this regress so that it actually passes and tests
for the expected behaviour.
|
| |
|
| |
|
|
|
|
|
|
| |
Rework the loops walking the chains to be correct for empty chains as well.
This simplifies the checking at the cost of slightly more initialization
and will allow further refactoring in a subsequent check.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Align initialization in walk_backward() with walk_forward(), fix grammar
in a comment and move initialization of oldhead_len in a place consistent
with the other length initializations in that function
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Add helpers to create and destroy a linear chain of BIOs. Provide two
defines for the two lengths of the test chains and make them distinct
to rule out coincidences. As a bonus, the code becomes simpler.
|
|
|
|
|
| |
Add helper that validate the chains. This deduplicates a lot of code and
makes the heart of the test much easier to read.
|
| |
|
|
|
|
|
|
| |
Some parts of this test rely on unportable behavior, so cannot run in
portable. This way we can run more tests for portable which is helpful
for analysis tools, better coverage, etc.
|
| |
|
|
|
|
|
|
| |
This tests for the behavior changes in bio_lib.c r1.40 and r1.41 and
makes sure that BIO_push() and BIO_set_next() act on two chains in the
expected and now documented way.
|
| |
|
|
|
|
| |
In bn_test.c include bn_local.h instead of using copy-pasted prototypes.
|
|
|
|
|
| |
For the test compilation using the CC crate, base clang is good enough,
so we don't need to pull in another heavy dependency just for this test.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
getopt(3) returns '?' when it encounters a flag not present in the in
the optstring or if a flag is missing its option argument. We can
handle this case with the "default" failure case with no loss of
legibility. Hence, remove all the redundant "case '?':" lines.
Prompted by dlg@. With help from dlg@ and millert@.
Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2
ok naddy@ millert@ dlg@
|
| |
|
|
|
|
|
|
|
|
| |
The issue is likely that the build is trying to compile some generated
C code with the prehistoric gcc from base, so add a tentative workaround
for that. Since I don't currently have access to a sparc64 box where I
could validate this easily and check if the workaround is enough, let's
not waste lots of cycles on this.
|
| |
|
|
|
|
| |
Should have been part of the previous commit
|