Repository navigation
Release 2.5.0: keyring ciphertext format with key IDs, field binding and padding; BlindIndex - #12
Merged
Merged
Conversation
…and padding; BlindIndex - EncryptedCast(keyring:) writes v2:<key id>:... with XChaCha20-Poly1305-IETF, class and field bound as associated data, plaintext padded to 32 bytes, 32-byte keys only; legacy ciphertext stays readable with the old key - needsReencryption() and forField() for rotation scripts - BindsToField contract, bound at metadata build time - Support\BlindIndex for searching encrypted columns
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.
Added (opt-in)
EncryptedCast(keyring: AppKeyring::class)with theEncryptionKeyringcontract writesv2:<key id>:…(XChaCha20-Poly1305-IETF):context:) authenticated as associated data — a ciphertext moved to another field is rejected (S1-03);sodium_crypto_kdf_derive_from_key(S1-01).keyring:nothing changes.needsReencryption()/forField()for migration scripts.Support\BlindIndex— keyed HMAC-SHA256 for searching encrypted columns (S1-16).Contracts\BindsToField— casts learn their class and field at metadata build time.Verification
EncryptedCast::get()804 → 816 ns,set()unchanged.