Skip to content

Commit 6867b6e

Browse files
guanlinzhouprashantmital
authored andcommitted
PYTHON-2628: Fix 'encryption::create_data_key` docstring to use existing algorithm
(cherry picked from commit 97bad5a)
1 parent ae9027a commit 6867b6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymongo/encryption.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ def create_data_key(self, kms_provider, master_key=None,
491491
client_encryption.create_data_key("local", keyAltNames=["name1"])
492492
# reference the key with the alternate name
493493
client_encryption.encrypt("457-55-5462", keyAltName="name1",
494-
algorithm=Algorithm.Random)
494+
algorithm=Algorithm.AEAD_AES_256_CBC_HMAC_SHA_512_Random)
495495
496496
:Returns:
497497
The ``_id`` of the created data key document as a

0 commit comments

Comments
 (0)