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

Implement conversion of FLE2 placeholder to InsertUpdatePayloadV2

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.8.0, 1.8.0-alpha0
    • Affects Version/s: None
    • Component/s: None
    • None

      In mongocrypt-marking.c, the functions:

      • _mongocrypt_fle2_placeholder_to_insert_update_ciphertext()
      • _mongocrypt_fle2_placeholder_to_insert_update_ciphertextForRange()
        will need to be updated to support the v2 payload types.

      In particular, the following changes are needed:

      • the type of payload changes to mc_FLE2InsertUpdatePayloadV2_t
      • the ECCDerivedToken must be replaced by a ServerDerivedFromDataToken
      • the computation of EncryptedTokens shall only encrypt the ESCDerivedFromDataAndContentionFactorToken
      • set payload.contentionFactor to the randomly generated contention factor
      • change calls to payload init/serialize/cleanup with v2 counterparts
      • change the final serialized FLE2 subtype to MC_SUBTYPE_FLE2InsertUpdatePayloadV2

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

              Created:
              Updated:
              Resolved: