• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

KarpelesLab / anyhash
88%

Build:
DEFAULT BRANCH: master
Repo Added 09 Apr 2026 05:31PM UTC
Token PLsgjTsNQ1vSPhIvnoD6QTjftj855nLt9 regen
Build 19 Last
Files 17
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • master

13 Apr 2026 07:05PM UTC coverage: 87.714% (+0.3%) from 87.38%
24361627390

push

github

MagicalTux
Fix xxh3/xxh128 custom secret: use d.getSecret() in all code paths

All xxh3/xxh128 code paths (Write, every short/medium/long sum path,
and the merge-accumulators functions) hardcoded the global xxh3Secret
instead of consulting d.getSecret(), which returns the user-supplied
secret when one is set via SetSecret(). This meant custom secrets had
no effect on the hash output.

Replace all 41 references to xxh3Secret[…] in method bodies with a
local sec := d.getSecret(), and thread a sec parameter through the
standalone xxh3MergeAccs64/xxh3MergeAccs64Hi helpers.

Add TestXXH3Secret with PHP-generated vectors for both xxh3 and xxh128
using a 256-byte custom secret.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

19 of 54 new or added lines in 1 file covered. (35.19%)

2927 of 3337 relevant lines covered (87.71%)

637.79 hits per line

Relevant lines Covered
Build:
Build:
3337 RELEVANT LINES 2927 COVERED LINES
637.79 HITS PER LINE
Source Files on master
  • Tree
  • List 17
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
24361627390 master Fix xxh3/xxh128 custom secret: use d.getSecret() in all code paths All xxh3/xxh128 code paths (Write, every short/medium/long sum path, and the merge-accumulators functions) hardcoded the global xxh3Secret instead of consulting d.getSecret(), whi... push 13 Apr 2026 07:06PM UTC MagicalTux github
87.71
24335401296 master Further optimize gost compress: uint64 key gen, unrolled encrypt Rewrite gostCompress to use [4]uint64 for all 256-bit values (u, v, w), eliminating byte-level xor32/xor32Bytes/gostTransformA. The key schedule now produces [8]uint32 directly from... push 13 Apr 2026 09:13AM UTC MagicalTux github
87.38
24335062499 master Add throughput benchmarks table to README i9-14900K / Go 1.25 / 64 KiB payloads, covering all 60 algorithms. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> push 13 Apr 2026 09:05AM UTC MagicalTux github
87.32
24334979488 master Optimize whirlpool, crc32, xxh3/xxh128, tiger throughput whirlpool (132 → 307 MB/s, 2.3x): Unroll the 10-round key schedule and state update loops with 16 named scalar locals (K0..K7, s0..s7), eliminating (i+k)%8 modulo ops and the two 128-... push 13 Apr 2026 09:03AM UTC MagicalTux github
87.32
24333417795 master Speed up gost and snefru: 4.5x and 1.8x on 64 KiB throughput gost (13 → 59 MB/s): - Fold the GOST 28147-89 S-box substitution with the 11-bit left rotation into four precomputed 256-entry uint32 tables per S-box, so each round collapses to fo... push 13 Apr 2026 08:26AM UTC MagicalTux github
87.22
24332973163 master Add throughput benchmarks for every registered hash algorithm Covers every name returned by List() at two payload sizes (64 B to exercise finalization-heavy paths, 64 KiB to amortize setup over the block loop). Run with: go test -run=^$ -bench=. ... push 13 Apr 2026 08:15AM UTC MagicalTux github
87.01
24230317918 master Fix xxh128 seed, murmur3c/f PHP carry encoding, xxh32/64 validation - xxh128: the 17..128-byte path used (len * PRIME64_2) when computing the high 64 bits, missing the seed term. Use (len - seed) * PRIME64_2 per the XXH3 reference so non-zero... push 10 Apr 2026 06:45AM UTC MagicalTux github
87.01
24210909612 master Add seed and secret support for murmur3, xxh32, xxh64, xxh3, xxh128 New Options struct with Seed and Secret fields, passed via New(): h, _ := anyhash.New("murmur3a", anyhash.Options{Seed: 42}) h, _ := anyhash.New("xxh3", anyhash.Options{Seed:... push 09 Apr 2026 08:08PM UTC MagicalTux github
85.53
24210610619 master Refactor PHPMarshaler to use []any instead of ([]int32, []byte) Each state element is either int32 or []byte, matching PHP's HashContext serialization format exactly. This fixes MD5 where the buffer string appears at index 6 (middle of the array)... push 09 Apr 2026 08:01PM UTC MagicalTux github
86.07
24209997301 master Fix PHP cross-compatibility for md5, crc32b/c, murmur3a state encoding - MD5: read state words as big-endian from Go's binary format (was LE) - CRC32B/C: complement state during marshal/unmarshal (Go stores complemented CRC, PHP stores raw) - M... push 09 Apr 2026 07:47PM UTC MagicalTux github
86.2
See All Builds (19)

Badge your Repo: anyhash

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc