aboutsummaryrefslogtreecommitdiff
path: root/hash_test.go
Commit message (Expand)AuthorAgeFilesLines
* hash: Use a hashAlgorithmDetails struct for single source of truth•••hashAlgorithm's are assumed to be valid; methods on invalid hashAlgorithms will panic from out-of-bounds read when it's not found in hashAlgorithmTable and that's expected and intended. v0.1.2Gravatar Runxi Yu2026-01-271-1/+1
* repo: Drop hashSize and use hashAlgo.size()Gravatar Runxi Yu2026-01-171-1/+1
* Use actual git for tests and enhance HeadGravatar Runxi Yu2025-11-161-24/+55
* Unexport Repository.HashSizeGravatar Runxi Yu2025-11-161-2/+2
* hash: Make fewer helper functions need explicit hash length fieldsGravatar Runxi Yu2025-11-161-9/+11
* Revert "hash: Generic hash-algorithm API"•••This reverts commit 94bfb1fa147f80e6ec39009d41fc2f853925e0a5. Generics actually kinda suck for these purposes... once you look at it from the user's perspective. Gravatar Runxi Yu2025-11-161-11/+10
* hash: Generic hash-algorithm APIGravatar Runxi Yu2025-11-161-10/+11
* Support multiple hash sizes in one buildGravatar Runxi Yu2025-11-161-8/+8
* Use SHA-256 by defaultGravatar Runxi Yu2025-11-151-5/+14
* Initial commitGravatar Runxi Yu2025-11-131-0/+33