Skip to content

[codex] test cryptox AES-GCM helpers#60

Draft
prettyboyvic wants to merge 1 commit into
Grainlify:mainfrom
prettyboyvic:test/cryptox-aesgcm
Draft

[codex] test cryptox AES-GCM helpers#60
prettyboyvic wants to merge 1 commit into
Grainlify:mainfrom
prettyboyvic:test/cryptox-aesgcm

Conversation

@prettyboyvic

Copy link
Copy Markdown

Summary

  • add focused AES-GCM/key parsing tests for internal/cryptox
  • cover empty and non-empty round-trips, invalid base64/key lengths, random nonce behavior, tamper detection, wrong-key failure, and short blobs
  • factor AES-GCM construction and random source access enough to exercise error paths without changing the encrypted blob format

Validation

  • go test -coverprofile=cryptox_coverage.out ./internal/cryptox
  • go tool cover -func=cryptox_coverage.out -> 100.0% statements

Notes

  • Attempted go test ./internal/cryptox/... -race -cover, but local Windows Go requires cgo and this machine has no gcc in PATH. The non-race package tests pass with 100% coverage.

Closes #38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a unit test suite for internal/cryptox AES-256-GCM encrypt/decrypt and key parsing

1 participant