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:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user