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

Create API to parse tokens in FLE2IndexedRangeEncryptedValue

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: 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_FLE2IndexedRangeEncryptedValueTokens

      { _mc_edgetoken[] tokens; uint32_t token_count; uint64_t[] counts; uint32_t counts_count; }

      ;

      /* mc_FLE2IndexedEncryptedValue_decrypt_range decrypts InnerEncrypted into the set of range 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_range (_mongocrypt_crypto_t *crypto,
        mc_FLE2IndexedEncryptedValue_t *iev,
        mc_ServerDataEncryptionLevel1Token_t* token,
        _mc_FLE2IndexedRangeEncryptedValueTokens* indexed_tokens,
        mongocrypt_status_t *status);
        
        

            Assignee:
            josh.siegel@mongodb.com Josh Siegel
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: