Pin verification using thales HSM simulator

1,572 views
Skip to first unread message

venkat swaminathan

unread,
Apr 20, 2013, 5:39:00 AM4/20/13
to jpos-...@googlegroups.com


Below is the process i follow for using thales simulator
 * Please point my mistakes
  1. Generated a random pin for the card Number : 5239512524895006 : Considering acct No as : 951252489500
        sample pin generated for the acct is 6627 and 06627 
        acctNo = "951252489500"
    
  2. Generate a key using A0 
    Key generated (LMK):DF4216452CAC9E6672BF185B5A904403 
    Check value: 932ECC))
    
  3. HC to generate a session key using Key generated (LMK)
    New key (TMK): U 77F71F1B41F05FD551FAB0903A1C09A9
    New key (LMK): U B7AA1FD0661DC76714C94A7550ED5F9A
    
  4. Now i generated a pin block for pin 6627 using New key (TMK). This is done by encrypted keypad.
    pin block generated by EPP : 1875C09B117BB1DA
    pinBlk = "1875C09B117BB1DA"
    
  5. Now i try to validate PIN using BC command
command = "0004BC" + New key (LMK) + pinBlk + "01" + acctNo + "06762";

Mark Salter

unread,
Apr 20, 2013, 12:21:14 PM4/20/13
to jpos-...@googlegroups.com
On 20/04/2013 10:39, venkat swaminathan wrote:
>
>
> Below is the process i follow for using thales simulator
>
> | * Please point my mistakes
You haven't explained what the problem is?

> |
>
> 1. Generated a random pin for the card Number : 5239512524895006 :
> Considering acct No as : 951252489500
>
> | sample pin generated for the acct is 6627 and 06627
Two PINs?
> acctNo = "951252489500"
> |
>
> 2. Generate a key using A0
>
> |Key generated (LMK):DF4216452CAC9E6672BF185B5A904403
> Check value: 932ECC))
> |
>
> 3. HC to generate a session key using Key generated (LMK)
>
> |New key (TMK): U 77F71F1B41F05FD551FAB0903A1C09A9
> New key (LMK): U B7AA1FD0661DC76714C94A7550ED5F9A
> |
>
> 4. Now i generated a pin block for pin 6627 using New key (TMK). This
> is done by encrypted keypad.
>
> |pin block generated by EPP : 1875C09B117BB1DA
> pinBlk = "1875C09B117BB1DA"
> |
What format PIN block is this, what key was used, did you set a key on
the PIN pad for it to use,how,did it work?

>
> 5. Now i try to validate PIN using BC command
>
> command = "0004BC" + New key (LMK) + pinBlk + "01" + acctNo + "06762";

What's this---------------------------------------^ ?

What's this--------------------------------------------------------^ ?

What was the response from the simulator (which simulator, what Thales
HSM is it simulating?) - that might hold a clue

--
Mark

Mark Salter

unread,
Apr 20, 2013, 12:24:22 PM4/20/13
to jpos-...@googlegroups.com
On 20/04/2013 17:21, Mark Salter wrote:
> What was the response from the simulator (which simulator, what Thales
> HSM is it simulating?) - that might hold a clue

Did you sort out your Exception?

http://thalessim.codeplex.com/discussions/264974

Or is that your problem?

--
Mark
Reply all
Reply to author
Forward
0 new messages