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

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

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.