From 67f9e654c7b3db2b8970204f3bb16d3760a56882 Mon Sep 17 00:00:00 2001 From: oepen Date: Tue, 23 Aug 2011 13:43:24 +0000 Subject: [PATCH] Added documentation git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@507 96b47cad-a561-4643-ad3b-153ac7d7599c --- virtualsmartcard/src/vpicc/virtualsmartcard/cards/ePass.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/virtualsmartcard/src/vpicc/virtualsmartcard/cards/ePass.py b/virtualsmartcard/src/vpicc/virtualsmartcard/cards/ePass.py index 31400bc..76547bb 100644 --- a/virtualsmartcard/src/vpicc/virtualsmartcard/cards/ePass.py +++ b/virtualsmartcard/src/vpicc/virtualsmartcard/cards/ePass.py @@ -26,7 +26,9 @@ import hashlib, struct from os import urandom class ePass_SE(Security_Environment): - + """This class implements the Security Environment of the ICAO Passports. It + is required in order to use the send sequence counter for secure messaging. + """ def __init__(self, SE, ssc=None): self.ssc = ssc Security_Environment.__init__(self, SE) @@ -126,6 +128,8 @@ class PassportSAM(SAM): return SW["NORMAL"], Eicc + Micc def _mac(self, key, data, ssc = None, dopad=True): + """ Compute a message authentication code using a given key and an + optional send sequence counter.""" if ssc: data = ssc + data if dopad: