-Bugfix: Fixed incorrect indention
-Bugfix: Do not default to MD5 hashing git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@448 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -944,7 +944,7 @@ class Secure_Messaging(object):
|
||||
if algo == None:
|
||||
raise SwError(SW["ERR_CONDITIONNOTSATISFIED"])
|
||||
try:
|
||||
hash = virtualsmartcard.CryptoUtils.hash("MD5",data)
|
||||
hash = virtualsmartcard.CryptoUtils.hash(algo,data)
|
||||
except ValueError: #FIXME: Type of error
|
||||
raise SwError(SW["ERR_SECMESSNOTSUPPORTED"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user