debug unprotected result
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@713 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -23,7 +23,7 @@ from os import urandom
|
|||||||
|
|
||||||
import virtualsmartcard.CryptoUtils as vsCrypto
|
import virtualsmartcard.CryptoUtils as vsCrypto
|
||||||
from virtualsmartcard.SWutils import SwError, SW
|
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
|
from virtualsmartcard.SEutils import Security_Environment
|
||||||
|
|
||||||
def get_referenced_cipher(p1):
|
def get_referenced_cipher(p1):
|
||||||
@@ -343,6 +343,7 @@ class SAM(object):
|
|||||||
"""
|
"""
|
||||||
Protect a plain response APDU by Secure Messaging
|
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)
|
return self.current_SE.protect_response(sw, unprotected_result)
|
||||||
|
|
||||||
def perform_security_operation(self, p1, p2, data):
|
def perform_security_operation(self, p1, p2, data):
|
||||||
|
|||||||
Reference in New Issue
Block a user