Allow length to be passed in MKEK Creation
Allows length argument to be passed in MKEK Creation. There is a bug where it fails, therefore the user can only have the default 32 value. Change-Id: I0cfd8d5690fd781419ece79bbb0337a2fe8fef49 Closes-Bug: #1480735
This commit is contained in:
parent
559c85328d
commit
03ee791407
@ -91,7 +91,7 @@ class KeyGenerator(object):
|
||||
def generate_mkek(self, args):
|
||||
"""Process the generate MKEK with given arguments"""
|
||||
self.verify_label_does_not_exist(args.label, self.session)
|
||||
self.pkcs11.generate_mkek(args.label, args.length, self.session)
|
||||
self.pkcs11.generate_mkek(args.label, int(args.length), self.session)
|
||||
print ("MKEK successfully generated!")
|
||||
|
||||
def generate_hmac(self, args):
|
||||
|
Loading…
x
Reference in New Issue
Block a user