summaryrefslogtreecommitdiff
path: root/regress/lib
AgeCommit message (Collapse)Author
2024-02-02bio_dump: fix indentTheo Buehler
2024-02-02bio_dump: add one more testcaseTheo Buehler
This one covers the silly minuses between the hexdump and the ASCII dump when dumping eight bytes per line.
2024-02-02Add regress coverage for BIO_dump()Theo Buehler
2024-01-30Add a shutdown sequence regress test.Joel Sing
Some software relies on SSL_shutdown() returning 0 (indicating close-notify sent) before returning 1 on a subsequent call (indicating close-notify sent and received). It is worth noting that there is no guarantee that this will occur in normal operation, as the peer could send a close-notify prior to SSL_shutdown() being called. This is currently failing for TLSv1.3.
2024-01-27Enable for TLSv1.3 now that shutdown behaviour matches the legacy stack.Joel Sing
2024-01-21Replace more occurrences of OBJ_NAME_do_all_sorted() withTheo Buehler
OBJ_NAME_do_all()
2024-01-20link the infcover test statically in preparation of zlib changesTheo Buehler
2024-01-19Enable shutdown regress test.Joel Sing
2024-01-19Add regress test coverage for SSL_shutdown().Joel Sing
This tests and codifies the behaviour of SSL_shutdown() with respect to SSL_quiet_shutdown() and SSL_set_shutdown(). For now, only the legacy stack (TLSv1.2) is tested, as there are currently some subtle differences with the TLSv1.3 stack.
2024-01-18ec_point_conversion: zap an empty lineTheo Buehler
2024-01-15Run the pkey cleanup test also for {Ed,X}25519Theo Buehler
2024-01-15Switch to EVP_CIPHER_do_all() now that snaps are available on most archesTheo Buehler
2024-01-11Remove the evp_pkey_method() testTheo Buehler
This is a minimal test for an API that will be removed in a subsequent commit.
2023-12-31Sprinkle a handfull of missing continueTheo Buehler
2023-12-30Add extended regress coverage for ASN.1 methodsTheo Buehler
Validate that every alias resolves to a non-alias in one step and that non-aliases have pkey_id == pkey_base_id, an info string and a pem_str. They can be looked up by their pkey_id or pem_str. Conversely, all these are false for aliases.
2023-12-29There is no need to include sys/uio.h here.Claudio Jeker
2023-12-27Add initial regress for CRYPTO_EX_DATA.Joel Sing
2023-12-27Remove engine regress.Joel Sing
Engines are no longer a thing. Discussed with tb@
2023-12-17c2sp: replace openssl 3.0 with 3.2 supportTheo Buehler
2023-04-23Import C2SP/CCTV testTheo Buehler
This currently only covers Ed25519 using the c2sp-testvectors package and checks that our Ed25519 implementation behaves as expected from a "ref10" implementation. This test has Go and c2sp-testvectors as a hard dependency. It will optionally pick up any OpenSSL package installed on the system and test that as well. https://github.com/C2SP/CCTV https://github.com/C2SP/CCTV/tree/main/ed25519
2023-12-15Remove the string_table testTheo Buehler
If it wasn't for security/xca, all of the ASN1_STRING_TABLE API would hit the attic before long. API design by a trained professional... The table can at least be made immutable, which in turn makes this test entirely pointless.
2023-12-13rfc3779: remove redundant const.Theo Buehler
This is already included in the typedef (yuck) and makes some Windows compilers unhappy.
2023-12-13tlsexttest: \178 isn't a valid octal escape sequenceTheo Buehler
2023-12-13constraints: \178 isn't a valid octal escape sequenceTheo Buehler
2023-12-13x509_asn1: avoid lookup table that makes some compilers whineTheo Buehler
2023-12-10evp_test: zap extra empty lineTheo Buehler
2023-12-08Add regress coverage for OBJ_NAME_do_all*()Theo Buehler
While this may seem a bit out of place since is an objects API by name, it really is about EVP. Plus, we want to leverage some things we already needed for the EVP_*do_all() API (which currently wraps OBJ_NAME_do_all* but that will change soon).
2023-11-27EVP test: fix includesTheo Buehler
2023-11-27EVP test: add regress coverage for the do_all() APITheo Buehler
2023-11-20Still need engine.h for ENGINE_free()Theo Buehler
But do away with the OPENSSL_NO_ENGINE dance.
2023-11-19Remove last OPENSSL_NO_ENGINE from libssl regressTheo Buehler
2023-11-19Unifdef OPENSSL_NO_ENGINE in libcrypto regressTheo Buehler
2023-11-18Sync example.c and minigzip.c with upstream.Theo Buehler
This silences lots of K&R warning noise.
2022-03-24Import upstream madler/zlib test files and run them with our libz.Alexander Bluhm
2023-11-13Retire the libcsi regressTheo Buehler
2023-11-07Fix an error message left out in the mustDecodeHexString() conversionTheo Buehler
2023-11-07Pull up the handling of the two webcrypto special snowflakesTheo Buehler
2023-11-07Drop a useless line and bump copyright yearsTheo Buehler
2023-11-07Unwrap a few linesTheo Buehler
2023-11-07Wrap hex.DecodeString() into mustDecodeHexString()Theo Buehler
The hex decoding is only done from the JSON files provided by the wycheproof-testvectors package. Failure is always fatal. So there is no need for repeated error checks, and we can use an ergonomic wrapper. Also rework the calculation of the message digest from input data this had a similar deficit. All in all this shaves off about 10% of the code and removes a lot of tedious repetition.
2023-11-07Use maps to retrieve various AES variantsTheo Buehler
2023-11-07Convert hashEvpMdFromString() to a mapTheo Buehler
2023-11-07Add stringer interfaces to the test groupsTheo Buehler
This simplifies and unifies a lot of error messages.
2023-11-06Pull everything except the actual run call out of the closureTheo Buehler
The determination of the test group type and the JSON unmarshalling can be done before the closure without performance impact. This is more readable and eliminates the need of a temporary variable again. Suggested by jsing
2023-11-06Introduce testGroupFromAlgorithm()Theo Buehler
This factors another ugly switch into a helper function. This should probably become a map eventually, but for now keep things straightforward.
2023-11-06Add a wycheproofTestGroupRunner interfaceTheo Buehler
This allows us to use a simpler way of running the individual test groups and gets rid of an ugly mostly copy-pasted switch inside a closure.
2023-11-06Add aliases for AES AEAD constructions and ChaChaTheo Buehler
These used the wycheproofTestGroupAead type but an upcoming change requires to change this. Introduce the aliases now to make the next diff cleaner.
2023-11-06Fix a for loop bug introduced in the concurrency refactorTheo Buehler
Due to Go's idiosyncratic semantics of for loops, tests would only run some of the test groups in the JSON file because by the time the closure is called, the array index could be changed. For example, on fast 8 core machines, the CMAC tests would run the last test group with key size 320 eight times rather than each of the eight test groups once. Make a copy of the pointer before passing it to the closure to avoid this issue. Simpler version of my initial fix from jsing
2023-11-06Uncomment json webcrypto line. Packages will have caught up...Theo Buehler
2023-10-31Remove 3 expected failures those got fixed in the regress code.Claudio Jeker