mirror of
https://github.com/openkmip/pykmip
synced 2025-12-15 15:53:36 +00:00
Add Decrypt support to the server
This change adds the Decrypt operation to the server. Support is currently limited to symmetric decryption only. The decryption key used with the operation must be in the Active state and it must have the Decrypt bit set in its cryptographic usage mask.
This commit is contained in:
@@ -554,7 +554,8 @@ class CryptographyEngine(api.CryptographicEngine):
|
||||
plain_text = self._handle_symmetric_padding(
|
||||
self._symmetric_key_algorithms.get(decryption_algorithm),
|
||||
plain_text,
|
||||
padding_method
|
||||
padding_method,
|
||||
undo_padding=True
|
||||
)
|
||||
|
||||
return plain_text
|
||||
|
||||
Reference in New Issue
Block a user