Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-72909

Create FLE2IndexedRangeEncryptedValueV2 class and implement parse & serialization

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Server Security
    • Fully Compatible
    • Security 2023-02-06

      Define the FLE2RangeIndexedValueV2 payload type in the EncryptedBinDataType enum in fle_field_schema.idl. Then, create the class FLE2IndexedRangeEncryptedValueV2 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_counters_and_tags

      where encrypted_counters_and_tags can be further parsed as:

      [ ( SKE.Enc(FS[ f, 2, e, 1 ], (e.counter || contentionFactor)) || e.tag || SKE.Enc(FS[ f, 2, e, 2 ], 0128) ) ] for each e in payload.edgeTokenSet

            Assignee:
            shreyas.kalyan@mongodb.com Shreyas Kalyan
            Reporter:
            erwin.pe@mongodb.com Erwin Pe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: