add kms:ReEncrypt invalid destination key test
This commit is contained in:
parent
9ffb9d3d0a
commit
dd63cebf81
2 changed files with 21 additions and 0 deletions
|
|
@ -217,6 +217,8 @@ class KmsBackend(BaseBackend):
|
|||
def re_encrypt(
|
||||
self, ciphertext_blob, source_encryption_context, destination_key_id, destination_encryption_context
|
||||
):
|
||||
destination_key_id = self.any_id_to_key_id(destination_key_id)
|
||||
|
||||
plaintext, decrypting_arn = self.decrypt(
|
||||
ciphertext_blob=ciphertext_blob, encryption_context=source_encryption_context
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue