feat(sdk-api): hkdf caching encryption for multi call operations#8508
Draft
pranavjain97 wants to merge 1 commit intoWCN-30-v2-encrypt-decryptfrom
Draft
Conversation
7794281 to
fe17e9c
Compare
b816e65 to
a9be0b8
Compare
cd7d17d to
80f7404
Compare
Introduces createEncryptionSession() that runs Argon2id once and derives per-call AES-256-GCM keys via HKDF (<1ms each), eliminating repeated expensive KDF calls in multi-encrypt/decrypt flows. - createEncryptionSession() in encrypt.ts: Argon2id -> HKDF CryptoKey - EncryptionSession interface: encrypt(), decrypt(), destroy() - V2Envelope extended with optional hkdfSalt for session-produced envelopes - decryptV2 handles both standalone and session envelopes - decryptAsync fix: v2 errors no longer fall through silently to v1 - 12 new tests covering round-trip, interop, destroy guard, cross-session rejection WCN-31 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
80f7404 to
125015d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.