Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-3285

[pymongocrypt] add FLE 2 API for explicit encryption

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • pymongocrypt-1.3
    • Affects Version/s: None
    • Component/s: pymongocrypt
    • None

      Before we start PYTHON-3245, we need to add FLE 2 APIs for explicit encryption to pymongocrypt. We need to:

      Add the new API options: EncryptOpts.queryType and EncryptOpts.contentionFactor.

      Pass EncryptOpts.queryType to libmongocrypt with mongocrypt_ctx_setopt_query_type.

      Pass EncryptOpts.contentionFactor to libmongocrypt with mongocrypt_ctx_setopt_contention_factor.

      If EncryptOpts.algorithm is "Indexed", call mongocrypt_ctx_setopt_index_type(ctx, MONGOCRYPT_INDEX_TYPE_EQUALITY).

      If EncryptOpts.algorithm is "Unindexed", call mongocrypt_ctx_setopt_index_type(ctx, MONGOCRYPT_INDEX_TYPE_NONE).

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: