debug unprotected result

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@713 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2012-02-09 17:17:14 +00:00
parent 06d96e6fae
commit 3770a91d64

View File

@@ -23,7 +23,7 @@ from os import urandom
import virtualsmartcard.CryptoUtils as vsCrypto
from virtualsmartcard.SWutils import SwError, SW
from virtualsmartcard.utils import inttostring, stringtoint
from virtualsmartcard.utils import inttostring, stringtoint, hexdump
from virtualsmartcard.SEutils import Security_Environment
def get_referenced_cipher(p1):
@@ -343,6 +343,7 @@ class SAM(object):
"""
Protect a plain response APDU by Secure Messaging
"""
logging.info("Unprotected Response Data:\n"+hexdump(unprotected_result))
return self.current_SE.protect_response(sw, unprotected_result)
def perform_security_operation(self, p1, p2, data):