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

Rename encryption.Algorithm enum members

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.9
    • Affects Version/s: None
    • Component/s: Encryption
    • None

      encryption.Algorithm currently has two members:

      class Algorithm(object):
          """An enum that defines the supported encryption algorithms."""
          Deterministic = "AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic"
          Random = "AEAD_AES_256_CBC_HMAC_SHA_512-Random"
      

      We should rename these because we will almost certainly introduce new Deterministic and Random algorithms in the future:

      class Algorithm(object):
          """An enum that defines the supported encryption algorithms."""
          AEAD_AES_256_CBC_HMAC_SHA_512_Deterministic = "AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic"
          AEAD_AES_256_CBC_HMAC_SHA_512_Random = "AEAD_AES_256_CBC_HMAC_SHA_512-Random"
      

            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: