Skip to content

feat(core): add salted one-use GCM key wrapping - #18

Merged
kauandotnet merged 1 commit into
mainfrom
feat/salted-gcm-wrapper-v2
Aug 17, 2026
Merged

feat(core): add salted one-use GCM key wrapping#18
kauandotnet merged 1 commit into
mainfrom
feat/salted-gcm-wrapper-v2

Conversation

@kauandotnet

Copy link
Copy Markdown
Contributor

Summary

  • derive a one-use wrapping key from a fresh 256-bit salt, key reference, and canonical wrapping-context digest
  • write the versioned 81-byte NESTM-A256GCM-HKDF-SHA256-SALT256-V2 wrapper
  • retain read-only compatibility for legacy 61-byte A256GCMKW wrappers
  • remove the database-restorable wrapper-nonce accounting requirement from the security contract

Validation

  • full pnpm verify passed
  • 203 unit tests passed
  • 10 compatibility vectors passed
  • package, publint, ATTW, and packed-consumer checks passed

Changesets schedules @nestm/crypto 0.1.0-alpha.4.

@kauandotnet
kauandotnet merged commit bc22fed into main Aug 17, 2026
5 checks passed
@kauandotnet
kauandotnet deleted the feat/salted-gcm-wrapper-v2 branch August 17, 2026 20:53
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.

1 participant