Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Support for Portuguese Electronic ID Cards #208

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Update PTEID.py
  • Loading branch information
jpbarraca committed Sep 3, 2021
commit 78a1e3056f5d355def51e84ef49c2cb086b0ab84
5 changes: 2 additions & 3 deletions virtualsmartcard/src/vpicc/virtualsmartcard/cards/PTEID.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Copyright (C) 2011 Dominik Oepen
#
# Copyright (C) 2021 João Paulo Barraca
#
# This file is part of virtualsmartcard.
#
# virtualsmartcard is free software: you can redistribute it and/or modify it
Expand Down Expand Up @@ -73,7 +73,6 @@ def notImplemented(*argz, **args):
logger.exception(f"ERROR: {e}")

r = self.formatResult(c.ins, c.p1, c.p2, c.le, result, sw)
#logger.debug(f"End Result: SW:{hexlify(bytes(r[-2:])).decode('latin')} data={hexlify(result)[:12].decode('latin')}...")
return r

def formatResult(self, ins, p1, p2, le, data, sw):
Expand Down