Fix broken function SmartcardSAM.set_asym_cipher
This commit is contained in:
@@ -153,10 +153,10 @@ class SAM(object):
|
|||||||
:param cipher: Public/private key object from used for encryption
|
:param cipher: Public/private key object from used for encryption
|
||||||
:param keytype: Type of the public key (e.g. RSA, DSA)
|
:param keytype: Type of the public key (e.g. RSA, DSA)
|
||||||
"""
|
"""
|
||||||
if keytype not in range(0x07, 0x08):
|
if keytype not in (0x07, 0x08):
|
||||||
raise SwError(SW["ERR_INCORRECTP1P2"])
|
raise SwError(SW["ERR_INCORRECTP1P2"])
|
||||||
else:
|
else:
|
||||||
self.cipher = type
|
self.cipher = keytype
|
||||||
self.asym_key = cipher
|
self.asym_key = cipher
|
||||||
|
|
||||||
def verify(self, p1, p2, PIN):
|
def verify(self, p1, p2, PIN):
|
||||||
|
|||||||
Reference in New Issue
Block a user