| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
(the mystery of spotting typos right after commit strikes again)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make proper use of CBB and CBS. If a CBS ever owns data, you're holding
it wrong. Ditch gross macros, sscanf, and globals. The use of fgets is
annoying here, so replace it with getline, which be provided by portable
if needed.
Most importantly, make the tests actually signal failure rather than
only printing an error. Fix the state machines in a few of them. Some
tests didn't parse the .txt file at all. Others mostly did but didn't
actually test what they were supposed to be testing. Such failures
were hidden by the way the tests were written.
This basically needed a complete revamp. It still isn't pretty and much
of it could be deduplicated, but I only have so much time alotted on this
blue planet.
|
| |
|
|
|
|
| |
From Kenjiro Nakayama
|
|
|
|
| |
There's still CBS holding data in here. Yuck.
|
| |
|
|
|
|
| |
RCS marker, KNF for comment, fix and sort includes as usual.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Changes include conversion from C++, basic KNF, then adaptation to
use our sha3 functions for sha3 and shake instead of the BorinSSL
version. This Adds units tests to run against BoringSSL and NIST test
vectors.
The future public API is the same as Boring's - but is not yet exposed
pending making bytestring.h public (which will happen separately) and
a minor bump
Currently this will just ensure we build and run regress.
ok tb@ to get it into the tree and massage from there.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Changes include conversion from C++, basic KNF, then adaptation to
use our sha3 functions for sha3 and shake instead of the BorinSSL
version. This Adds units tests to run against BoringSSL and NIST test
vectors.
The future public API is the same as Boring's - but is not yet exposed
pending making bytesring.h public (which will happen separately) and
a minor bump
Currently this will just ensure we build and run regress.
ok tb@ to get it into the tree and massage from there.
|
| |
|
|
|
|
|
| |
because they are intended as internal, and applications are supposed to use
the documented aliases DH, DSA, EC_KEY, and RSA from ossl_typ.h instead.
|
|
|
|
| |
because they are completely unused by anything.
|
|
|
|
| |
that are obsolete after PBE was mostly removed from LibreSSL.
|
|
|
|
| |
that are only used for GOST.
|
|
|
|
|
| |
because LibreSSL does not support RC5 and because these constants
are almost unused in the wild.
|
|
|
|
| |
that are internal to the library and unused in the wild
|
|
|
|
| |
that are only intended for internal use and unused in the wild
|
| |
|
|
|
|
|
| |
that are only intended for internal use, do very little (only validity
checking), are unused in the wild, and marked obsolete in OpenSSL 3.
|
|
|
|
| |
Fix related indentation while here.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
(will be fixed shortly).
|
|
|
|
|
| |
Can't replace it with adding the point to itself since that also leaks
(another doc bug). Who would've thought.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Of course the four stunning beauties in there aren't printing anything.
the hex family converts an elliptic curve point's X9.62 encoding into a
hex string (which kind of makes sense, you can print that if you want).
Much more astounding is EC_POINT_point2bn() where the X9.62 octet string
is interpreted as a BIGNUM. Yes, the bignum's hex digits are the point
conversion form followed by the affine coordinate(s) of the elliptic
curve point, and yes you can choose between compressed, uncompressed,
and hybrid encoding, why do you ask? This doesn't really make any sense
whatsoever but of course you can also print that if you really want to.
Of course the beloved platinum members of the "gotta try every terrible
OpenSSL interface" club had to use and expose this.
|
| |
|
|
|
|
| |
Some test cases are disabled since they exercise an upcoming bug fix.
|
| |
|
|
|
|
|
|
| |
point to an octet string and match with the initial octet string.
would have caught the regression found by anton
|
| |
|
| |
|
|
|
|
|
| |
This makes the internal curve test in ectest.c superfluous.
Also fix a logic error.
|
| |
|
| |
|
| |
|