2
0
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:
Peter Hamilton
2017-06-27 15:39:19 -04:00
parent 15de77c0a8
commit a4b7b433b4
4 changed files with 577 additions and 4 deletions

View File

@@ -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