pythales
========

A primitive implementation of Thales HSM (hardware security module) simulator. Only the basic HSM commands are implemented:
* BU - Generate a Key check value 
* CA - Translate PIN from TPK to ZPK 
* CY - Verify CVV/CSC
* DC - Verify PIN
* EC - Verify an Interchange PIN using ABA PVV method
* HC - Generate a TMK, TPK or PVK
* NC - Diagnostics information

The HSM simulator was written according to Thales payShield 9000 Host Command Reference manual.
