Package smartcard :: Package pcsc :: Module PCSCPart10
[hide private]
[frames] | no frames]

Module PCSCPart10

source code

PCSCPart10: PC/SC Part 10 (pinpad)

__author__ = "Ludovic Rousseau"

Copyright 2009-2010 Ludovic Rosseau Author: Ludovic Rousseau, mailto:ludovic.rousseau@free.fr

This file is part of pyscard.

pyscard is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

pyscard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with pyscard; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Functions [hide private]
list
getFeatureRequest(cardConnection)
Get the list of Part10 features supported by the reader.
source code
 
hasFeature(featureList, feature)
return the controlCode for a feature or None
source code
dict
getPinProperties(cardConnection, featureList=None, controlCode=None)
return the PIN_PROPERTIES structure
source code
dict
getTlvProperties(cardConnection, featureList=None, controlCode=None)
return the GET_TLV_PROPERTIES structure
source code
Variables [hide private]
  CM_IOCTL_GET_FEATURE_REQUEST = 1107299656
  FEATURE_VERIFY_PIN_START = 1
  FEATURE_VERIFY_PIN_FINISH = 2
  FEATURE_MODIFY_PIN_START = 3
  FEATURE_MODIFY_PIN_FINISH = 4
  FEATURE_GET_KEY_PRESSED = 5
  FEATURE_VERIFY_PIN_DIRECT = 6
  FEATURE_MODIFY_PIN_DIRECT = 7
  FEATURE_MCT_READER_DIRECT = 8
  FEATURE_MCT_UNIVERSAL = 9
  FEATURE_IFD_PIN_PROPERTIES = 10
  FEATURE_ABORT = 11
  FEATURE_SET_SPE_MESSAGE = 12
  FEATURE_VERIFY_PIN_DIRECT_APP_ID = 13
  FEATURE_MODIFY_PIN_DIRECT_APP_ID = 14
  FEATURE_WRITE_DISPLAY = 15
  FEATURE_GET_KEY = 16
  FEATURE_IFD_DISPLAY_PROPERTIES = 17
  FEATURE_GET_TLV_PROPERTIES = 18
  FEATURE_CCID_ESC_COMMAND = 19
  Features = {1: 'FEATURE_VERIFY_PIN_START', 2: 'FEATURE_VERIFY_...
  PCSCv2_PART10_PROPERTY_wLcdLayout = 1
  PCSCv2_PART10_PROPERTY_bEntryValidationCondition = 2
  PCSCv2_PART10_PROPERTY_bTimeOut2 = 3
  PCSCv2_PART10_PROPERTY_wLcdMaxCharacters = 4
  PCSCv2_PART10_PROPERTY_wLcdMaxLines = 5
  PCSCv2_PART10_PROPERTY_bMinPINSize = 6
  PCSCv2_PART10_PROPERTY_bMaxPINSize = 7
  PCSCv2_PART10_PROPERTY_sFirmwareID = 8
  PCSCv2_PART10_PROPERTY_bPPDUSupport = 9
  PCSCv2_PART10_PROPERTY_dwMaxAPDUDataSize = 10
  PCSCv2_PART10_PROPERTY_wIdVendor = 11
  PCSCv2_PART10_PROPERTY_wIdProduct = 12
  Properties = {1: 'PCSCv2_PART10_PROPERTY_wLcdLayout', 2: 'PCSC...
  __package__ = 'smartcard.pcsc'
  k = 'PCSCv2_PART10_PROPERTY_bMinPINSize'
Function Details [hide private]

getFeatureRequest(cardConnection)

source code 

Get the list of Part10 features supported by the reader.

Parameters:
Returns: list
a list of list [[tag1, value1], [tag2, value2]]

hasFeature(featureList, feature)

source code 

return the controlCode for a feature or None

Parameters:
Returns:
feature value or None

getPinProperties(cardConnection, featureList=None, controlCode=None)

source code 

return the PIN_PROPERTIES structure

Parameters:
Returns: dict
a dict

getTlvProperties(cardConnection, featureList=None, controlCode=None)

source code 

return the GET_TLV_PROPERTIES structure

Parameters:
Returns: dict
a dict

Variables Details [hide private]

Features

Value:
{1: 'FEATURE_VERIFY_PIN_START',
 2: 'FEATURE_VERIFY_PIN_FINISH',
 3: 'FEATURE_MODIFY_PIN_START',
 4: 'FEATURE_MODIFY_PIN_FINISH',
 5: 'FEATURE_GET_KEY_PRESSED',
 6: 'FEATURE_VERIFY_PIN_DIRECT',
 7: 'FEATURE_MODIFY_PIN_DIRECT',
 8: 'FEATURE_MCT_READER_DIRECT',
...

Properties

Value:
{1: 'PCSCv2_PART10_PROPERTY_wLcdLayout',
 2: 'PCSCv2_PART10_PROPERTY_bEntryValidationCondition',
 3: 'PCSCv2_PART10_PROPERTY_bTimeOut2',
 4: 'PCSCv2_PART10_PROPERTY_wLcdMaxCharacters',
 5: 'PCSCv2_PART10_PROPERTY_wLcdMaxLines',
 6: 'PCSCv2_PART10_PROPERTY_bMinPINSize',
 7: 'PCSCv2_PART10_PROPERTY_bMaxPINSize',
 8: 'PCSCv2_PART10_PROPERTY_sFirmwareID',
...