2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-17 16:53:48 +00:00

custom attributes for SymmetricKey

This commit is contained in:
Pranathi Locula
2021-09-08 14:41:31 -04:00
committed by arp102
parent a7a5f37755
commit 8a2289c9bd
2 changed files with 5 additions and 1 deletions

View File

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