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

KarpelesLab / pktkit / 24003982542
53%

Build:
DEFAULT BRANCH: master
Ran 05 Apr 2026 02:55PM UTC
Jobs 1
Files 80
Run time 1min
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

05 Apr 2026 02:54PM UTC coverage: 44.336% (-0.3%) from 44.621%
24003982542

push

github

MagicalTux
Optimize OpenVPN GCM data channel: 18x encrypt, 2x decrypt

Rewrite GCM encrypt/decrypt hot paths to eliminate per-packet allocations:

Encrypt (sendDataGCM): pre-allocate single output buffer from global pool,
build nonce/AD on stack, Seal directly into output. 9 allocs → 1 (4B pool
handle), 4450 → 226 ns/op, 319 → 6293 MB/s at 1420B.

Decrypt (handleDataGCM): parse wire format with direct slice indexing
instead of bytes.NewReader, swap tag in-place, Open in-place. 9 allocs → 1
(benchmark copy), 2769 → 1312 ns/op, 513 → 1082 MB/s at 1420B.

Move Noescape/NoescapeBytes helpers to pktkit.pool.go for sharing across
wg and ovpn packages. The noescape trick prevents stack-allocated [12]byte
nonce arrays from escaping to heap through the crypto AEAD []byte interface.

CBC path is unchanged (less common, more complex due to PKCS5/HMAC).

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

1 of 166 new or added lines in 3 files covered. (0.6%)

15 existing lines in 3 files now uncovered.

5871 of 13242 relevant lines covered (44.34%)

21.71 hits per line

Uncovered Changes

Lines Coverage ∆ File
158
0.0
0.0% ovpn/peer.go
7
56.52
-24.73% pool.go

Coverage Regressions

Lines Coverage ∆ File
9
0.0
0.0% ovpn/peer.go
3
52.03
-1.22% vclient/client.go
3
33.97
1.27% vclient/tcp.go
Jobs
ID Job ID Ran Files Coverage
1 24003982542.1 05 Apr 2026 02:55PM UTC 80
44.34
GitHub Action Run
Source Files on build 24003982542
  • Tree
  • List 80
  • Changed 6
  • Source Changed 3
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24003982542
  • e0f2db42 on github
  • Prev Build on master (#24003830068)
  • Next Build on master (#24004052060)
  • Delete
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