2
0
mirror of https://github.com/openkmip/pykmip synced 2026-02-25 00:52:59 +00:00

Merge pull request #250 from OpenKMIP/bug/fix-create-key-pair-demo

Fixing the KMIPProxy CreateKeyPair demo script
This commit is contained in:
Peter Hamilton
2017-01-10 13:51:04 -05:00
committed by GitHub

View File

@@ -98,10 +98,10 @@ if __name__ == '__main__':
value = Name(name_value=name_value, name_type=name_type)
name = Attribute(attribute_name=name, attribute_value=value)
name = Attribute.AttributeName('Cryptographic Usage Mask')
usage_mask = Attribute.AttributeName('Cryptographic Usage Mask')
value = CryptographicUsageMask(
UsageMaskEnum.ENCRYPT.value | UsageMaskEnum.DECRYPT.value)
usage_mask = Attribute(attribute_name=name, attribute_value=value)
usage_mask = Attribute(attribute_name=usage_mask, attribute_value=value)
attribute_type = AttributeType.CRYPTOGRAPHIC_LENGTH
length_obj = attribute_factory.create_attribute(attribute_type,