From 3770a91d646d07f9dd45e1eb41e4be65640a496e Mon Sep 17 00:00:00 2001 From: frankmorgner Date: Thu, 9 Feb 2012 17:17:14 +0000 Subject: [PATCH] debug unprotected result git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@713 96b47cad-a561-4643-ad3b-153ac7d7599c --- virtualsmartcard/src/vpicc/virtualsmartcard/SmartcardSAM.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/virtualsmartcard/src/vpicc/virtualsmartcard/SmartcardSAM.py b/virtualsmartcard/src/vpicc/virtualsmartcard/SmartcardSAM.py index f13ebfb..6b6479f 100644 --- a/virtualsmartcard/src/vpicc/virtualsmartcard/SmartcardSAM.py +++ b/virtualsmartcard/src/vpicc/virtualsmartcard/SmartcardSAM.py @@ -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):