diff --git a/kmip/pie/client.py b/kmip/pie/client.py index 0205ea8..c9fd721 100644 --- a/kmip/pie/client.py +++ b/kmip/pie/client.py @@ -20,6 +20,7 @@ from kmip.core import enums from kmip.core import primitives from kmip.core import objects as cobjects +from kmip.core.objects import Attribute from kmip.core.factories import attributes from kmip.core.attributes import CryptographicParameters diff --git a/kmip/pie/objects.py b/kmip/pie/objects.py index e0ab00d..1186fc9 100644 --- a/kmip/pie/objects.py +++ b/kmip/pie/objects.py @@ -657,7 +657,7 @@ class SymmetricKey(Key): 'sqlite_autoincrement': True } - def __init__(self, algorithm, length, value, masks=None, + def __init__(self, algorithm, length, value, app_specific_info=None, masks=None, name='Symmetric Key', key_wrapping_data=None): """ Create a SymmetricKey. @@ -690,6 +690,9 @@ class SymmetricKey(Key): if masks: self.cryptographic_usage_masks.extend(masks) + if app_specific_info: + self._application_specific_informations = app_specific_info + # All remaining attributes are not considered part of the public API # and are subject to change.