[SERVER-72908] Create FLE2IndexedEqualityEncryptedValueV2 class and implement parse & serialization Created: 17/Jan/23 Updated: 29/Oct/23 Resolved: 30/Jan/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.3.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Erwin Pe | Assignee: | Erwin Pe |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Server Security
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Sprint: | Security 2023-01-23, Security 2023-02-06 | ||||||||
| Participants: | |||||||||
| Description |
|
Define the FLE2EqualityIndexedValueV2 payload type in the EncryptedBinDataType enum in fle_field_schema.idl. Then, create the class FLE2IndexedEqualityEncryptedValueV2 which implements the parseAndDecrypt() and serialize() methods. The serialize method shall output the binary string that can be parsed as: index_key_id (16) || bson_type (1) || SKE.Enc(serverToken, ciphertext) || encrypted_counter_and_tag where encrypted_counter_and_tag can be further parsed as: SKE.Enc(FS[ f, 2, v, 1 ], (counter || contentionFactor)) || tag || SKE.Enc(FS[ f, 2, v, 2 ], 0^128) |
| Comments |
| Comment by Githook User [ 30/Jan/23 ] |
|
Author: {'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}Message: |