| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
compute a^0 = 0 (mod 1) for all a from scratch.
|
|
|
|
|
| |
The previous change had the undesired side effect of running the super
verbose run-regress-bn_test.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
bn_isqrt -C generates code included in lib/libcrypto/lib/bn_isqrt.c. The
regress tests already ensure that the content of the tables don't change.
Ensure further that the code generation doesn't get out of sync.
|
|
|
|
|
|
|
| |
Move exp/exptest.c to bn/bn_mod_exp.c. This is a BN test that mostly tests
a variety of BN_mod_exp*() API behavior and correctness.
Commit stolen from jsing
|
|
|
|
|
| |
This test is fast enough even on very slow machines that printing dots
doesn't seem necessary.
|
|
|
|
|
|
|
|
|
| |
The bn tests were distributed into three subdirectories rather randomly.
It's cleaner and easier to maintain if all this is in a single directory.
Use consistent names for the .c files, unify handling of the tests with
the exception of bn_test, which is special.
Discussed with jsing
|
|
|
|
|
| |
Run the prime constants exposed in BN_get0_nist_prime_*() and
BN_get_rfc3526_prime_*() through Ballie-PSW.
|
|
|
|
| |
Also, run all x25519 tests, don't stop on first failure.
|
|
|
|
| |
Silence is good. On failure, the regress framework will make it clear.
|
| |
|
|
|
|
|
| |
Some tests current fail due to a bug in BN_ucmp(), which will be fixed
soon.
|
|
|
|
| |
fixed in x509_constraints.c r1.29.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Libcrypto currently has a mess of *_lcl.h, *_locl.h, and *_local.h names
used for internal headers. Move all these headers we inherited from
OpenSSL to *_local.h, reserving the name *_internal.h for our own code.
Similarly, move dtls_locl.h and ssl_locl.h to dtls_local and ssl_local.h.
constant_time_locl.h is moved to constant_time.h since it's special.
Adjust all .c files in libcrypto, libssl and regress.
The diff is mechanical with the exception of tls13_quic.c, where
#include <ssl_locl.h> was fixed manually.
discussed with jsing,
no objection bcook
|
| |
|
|
|
|
|
| |
it appears that all BN public symbols are now documented,
except those intentionally undocumented.
|
|
|
|
|
|
| |
constraints.c:269: warning: ISO C90 forbids mixed declarations and code
from tb
|
|
|
|
| |
checks for BIO_reset().
|
|
|
|
|
|
|
|
|
|
| |
* List internal constants and types that are intentionally undocumented.
* List unused constants and types that are intentionally undocumented.
* Cope with intentionally undocumented identifiers being declared
more than once (in this case, because of #if and #else).
* Require exact matches for man -k searches (in this case,
such that BN_BITS does not match BN_BITS2).
* Handle the weird BN_ULONG, which is #define'd instead of using typedef.
|
|
|
|
| |
from bcook
|
|
|
|
|
|
|
| |
Apparently, the '0' in memset(a, '0', size - 1); could be a typo for '\0'.
Randomize the decimal digit to make the intent clear.
CID 377009
|
|
|
|
|
|
|
|
|
|
| |
Check for ASN_STRING_to_UTF8() failure before checking it matches our
expectations. This should convey clearly that test->want_len is never
negative.
CID 377011
Diagnosed by jsing
|
| |
|
|
|
|
| |
CID 377010
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
need in order to run.
Also, output the expected SKIPPED string as dictated by bsd.regress.mk.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Turns out that after ~40 years of practice I still can't do addition
with carry correctly :S
|
|
|
|
| |
things.
|
| |
|
|
|
|
|
|
|
|
| |
Generate random signatures of random messages and verify them. Then check
that the signature modified by adding the edwards25519 group order to the
upper half are rejected. This would not always be accepted without the
check in curve25519.c r1.14, but often enough that a few iterations suffice
to expose the missing check.
|
| |
|
|
|
|
| |
ok jsing@ tb@
|
| |
|
|
|
|
|
|
|
|
|
|
| |
that tb@ removed from asn1.h on January 14:
rev. 1.58: ASN1_CTX ASN1_const_CTX
rev. 1.60: ASN1_OBJECT_FLAG_CRITICAL ASN1_OBJECT_FLAG_DYNAMIC
rev. 1.60: ASN1_OBJECT_FLAG_DYNAMIC_DATA ASN1_OBJECT_FLAG_DYNAMIC_STRINGS
rev. 1.61: NETSCAPE_X509 NETSCAPE_X509_free NETSCAPE_X509_new
rev. 1.61: d2i_NETSCAPE_X509 i2d_NETSCAPE_X509
|
|
|
|
| |
files.
|
| |
|
|
|
|
| |
Struct tm is limited by it's year being an int.
|