Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-545

Implement conversion of FLE2 placeholder to FindRangePayloadV2

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Unknown Unknown
    • 1.8.0, 1.8.0-alpha0
    • None
    • None
    • None
    • Not Needed

    Description

      In mongocrypt-marking.c, the function _mongocrypt_fle2_placeholder_to_find_ciphertextForRange() will need to be updated to support the v2 payload type.

      In particular, the following changes are needed:

      • the type of payload changes to mc_FLE2FindRangePayloadV2_t
      • the ECCDerivedToken must be replaced by a ServerDerivedFromDataToken
      • the type of the edge token set changes to mc_EdgeFindTokenSetV2_t
      • the derivation of the ServerDataEncryptionLevel1Token (for the top-level payload, and for each edge) shall be removed. This token is no longer needed in the v2 payload.
      • change calls to payload init/serialize/cleanup with v2 counterparts
      • change the final serialized FLE2 subtype to MC_SUBTYPE_FLE2FindRangePayloadV2

      Attachments

        Activity

          People

            sara.golemon@mongodb.com Sara Golemon
            erwin.pe@mongodb.com Erwin Pe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: