aboutsummaryrefslogtreecommitdiff
path: root/tests/core
Commit message (Collapse)AuthorAgeFilesLines
* tests/core/crypto: Use the `tests/common` boilerplateYawning Angel2024-03-048-107/+87
|
* core/crypto/kmac: Initial importYawning Angel2024-03-041-0/+98
|
* core/crypto/tuplehash: Initial importYawning Angel2024-03-042-131/+342
|
* core/crypto/shake: Support cSHAKEYawning Angel2024-03-041-6/+60
|
* core/crypto/hkdf: Initial importYawning Angel2024-03-041-0/+67
|
* core/crypto/pbkdf2: Initial importYawning Angel2024-03-042-0/+120
|
* Merge pull request #3203 from listeriaceae/mastergingerBill2024-03-011-0/+181
|\ | | | | port math.round from Golang
| * port math.round from GolangJuan Ignacio Díaz2024-02-161-0/+181
| |
* | core/container/avl: Initial importYawning Angel2024-02-242-0/+162
| |
* | test/core/container: Refactor for multiple container typesYawning Angel2024-02-242-19/+34
| |
* | tests/core: Bring the Makefile more in-sync with build.batYawning Angel2024-02-243-25/+33
| |
* | Make sure we are listening before starting the clientLaytan Laats2024-02-201-15/+10
| |
* | Add logs to flaky testLaytan Laats2024-02-201-6/+33
| |
* | Remove flaky testLaytan Laats2024-02-201-23/+0
| | | | | | | | | | | | | | It wasn't testing the right thing in the previous iteration. And in this iteration the behaviour is a timeout on Unix, and nothing on Windows.
* | Improve net testsLaytan Laats2024-02-201-128/+81
|/ | | | | | | | | | | | | | | | | Watching the sporadic CI failures it seems to come from these tests a lot of the time, this PR cleans up and simplifies (while testing the same things): 1. Lots of tests were using threads without a need for it 2. Tests had hardcoded `time.sleep` calls which is never a good idea 3. An unclear abstraction was implemented without a real need 4. They weren't being ran on non-windows 5. The `client_connects_to_open_but_not_accepting_port` was not doing what you wanted to test for, the `tcp_server` proc was returning, and then `dial` was called, which meant that the server already closed and you got a refusal error. Now it correctly listens without accepting, which even results in a different error because the kernel buffer would have buffered the send
* core/crypto: Stop using context.temp_allocatorYawning Angel2024-02-071-0/+25
| | | | | | | | | | | The max digest size for the foreseeable future will be 512 bits, and the max block size is currently 1152 bits (SHA3-224). If people add more exotic hash algorithms without bumping the constants when required, tests will fail. The stream buffer will currently be 576 bytes, which is "fine" to just stick on the stack, and is a sensible multiple of the more common block size of 64 bytes.
* core/crypto/hmac: Initial importYawning Angel2024-02-072-130/+243
|
* core/crypto/hash: Make the low level interface allocator-lessYawning Angel2024-02-071-4/+10
| | | | Just (ab)using reflect to victory is probably fine.
* tests/core/crypto: ReorganizeYawning Angel2024-02-075-668/+674
| | | | | | | All of our crypto is modern now unless exiled to the legacy sub-package, so move the test cases for the currently un-unified algorithms into the main test driver file, and rename the benchmark driver to reflect reality.
* core/crypto/shake: SHAKE is an XOF, not a hashYawning Angel2024-02-072-31/+79
|
* tests/core/crypto: Cleanup/modernize a bitYawning Angel2024-02-073-249/+366
|
* core:crypto/hash: Add a generic higher level hash interfaceYawning Angel2024-02-072-388/+615
| | | | | | There is a lot of code duplicated in convenience methods in each hash implementation, and having a generic hash type makes implementing higher-level constructs such as HMAC significantly easier down the road.
* fix hxa test use after free, skip weird pow test failureLaytan Laats2024-02-021-2/+1
|
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-285-6/+6
|
* Merge pull request #3006 from hwchen/hwchen/last_index_anyJeroen van Rijn2024-01-081-0/+12
|\ | | | | fix strings.last_index_any for single char
| * fix strings.last_index_any for single charWalther Chen2023-12-181-0/+12
| |
* | Update core:encoding to Unicode 15.1 table.Jeroen van Rijn2024-01-022-104/+104
| |
* | add other failing test and fix themLaytan Laats2023-12-181-1/+12
| |
* | switch tests aroundLaytan Laats2023-12-181-1/+1
| |
* | add failing test for runtime arena edge caseLaytan Laats2023-12-183-1/+71
|/
* Used `strings.builder_reset` instead of `clear` for the string builderHector2023-11-251-4/+6
|
* Updated to tabs and used provided test methods.Hector2023-11-251-33/+37
|
* Binary search improvementsHector2023-11-253-3/+85
| | | | | | | | Modified the algorithm so that the index is either the location of the element if found or the index at which to insert the element to maintain sorted order. Also added some tests to verify the above claim.
* Merge pull request #2939 from laytan/allow-larger-thread-poly-dataJeroen van Rijn2023-11-243-1/+93
|\ | | | | Allow larger thread poly data
| * fix self_cleanup causing join to faillaytan2023-11-201-6/+10
| |
| * Fix shadowingLaytan Laats2023-11-151-12/+12
| |
| * Allow larger thread poly dataLaytan Laats2023-11-153-1/+89
| | | | | | | | | | | | | | | | The poly data currently has the restriction of being less than a pointer's size, but there is much more space in the `Thread.user_args` array which can be utilized, this commit allows you to pass types that are larger than pointer length as long as the total size of the poly data is less than that of the `Thread.user_args`.
* | core/crypto: Exile keccak, md5 and sha1 to legacyYawning Angel2023-11-171-3/+3
| | | | | | | | | | | | In an perfect world these would just be removed, but the world is imperfect, and people are forced to interact/interface with things that are broken.
* | core/crypto/whirlpool: Remove, historical/exoticYawning Angel2023-11-171-28/+0
| |
* | core/crypto/tiger: Remove, historical/exoticYawning Angel2023-11-171-110/+0
| |
* | core/crypto/streebog: Remove, exoticYawning Angel2023-11-171-31/+0
| |
* | core/crypto/ripemd: Remove, historical/exoticYawning Angel2023-11-171-85/+0
| |
* | core/crypto/md4: Remove, badly brokenYawning Angel2023-11-171-21/+0
| |
* | core/crypto/md2: Remove, badly brokenYawning Angel2023-11-171-21/+0
| |
* | core/crypto/jh: Remove, use SHA-3Yawning Angel2023-11-171-61/+0
| |
* | core/crypto/haval: Remove, badly brokenYawning Angel2023-11-171-171/+0
| |
* | core/crypto/groestl: Remove, use SHA-3Yawning Angel2023-11-171-61/+0
| |
* | core/crypto/gost: Remove, exoticYawning Angel2023-11-171-22/+0
| |
* | core/crypto/blake: Remove, use BLAKE2b/BLAKE2sYawning Angel2023-11-171-61/+0
| |
* | core/crypto/sha2: Add SHA-512/256Yawning Angel2023-11-171-0/+16
|/