Add support for full deserialization of _mc_FLE2IndexedEqualityEncryptedValueTokens

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, the code that deserializes FLE2IndexedEqualityEncryptedValue does not read the tokens or count. This is needed for the server to switch to the libmongocrypt API.

      struct _mc_FLE2IndexedEqualityEncryptedValueTokens {
         _mongocrypt_buffer_t edc;
         _mongocrypt_buffer_t esc;
         _mongocrypt_buffer_t ecc;
          uint64_t count;
      };
      
      /* mc_FLE2IndexedEncryptedValue_decrypt_equality decrypts InnerEncrypted into the set of tokens  with the ServerDataEncryptionLevel1Token on the server-side.
       * Returns false and sets @status on error. It is an error to call before
       * mc_FLE2IndexedEncryptedValue_parse. */
      bool
      mc_FLE2IndexedEncryptedValue_decrypt_equality (_mongocrypt_crypto_t *crypto,
                                              mc_FLE2IndexedEncryptedValue_t *iev,
                                              mc_ServerDataEncryptionLevel1Token_t* token,
                                              mc_FLE2IndexedEqualityEncryptedValueTokens* indexed_tokens,
                                              mongocrypt_status_t *status);
      

            Assignee:
            Shreyas Kalyan
            Reporter:
            Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: