Quantcast
Channel: Thales Simulator Library
Viewing all 332 articles
Browse latest View live

New Post: Problem with import key command

$
0
0
01 means that the import was correctly done, however the key you supplied has a parity error. Since the KCV is not correct, then most probably the key you specified is not correct. Can you tell me what the clear value of the ZAK is?

New Post: BA Command

$
0
0
Post the complete command you're sending to the simulator, preferably from the hex dump displayed on the simulator window.

New Post: Thales Simulator

$
0
0
Hi Nick,

Thanks for your response. I got it working I am receiving the response from the SIM.
However I am having issues using CA command, when I generate a TPK and encrypt the PIN block and try to use the CA to translate it to the ZPK, I am getting Length Exception. Appreciate your help in it. Thanks


Prajwal

New Post: PE command error code 15

$
0
0
Something seems a bit strange at the 150082PF15 response...Can you please post the hex trace of the request and response as displayed on the simulator window?

New Post: CA Implementation - Not Working

$
0
0
I'd love to help but please provide an example with:
  • The input you give to a command,
  • The expected output,
  • The give output,
  • The clear data (PIN key and PIN).

New Post: CA Command Issues

$
0
0
The problem is that the clear PIN block appears as B24B42D81ABB2B3C which is not a valid ANSI PIN block. Note that your clear PIN key appears to be 2839DD7D8093FCD713BFF1CC5FADFE99, is that correct? If so, can you please post the clear PIN and card number you're using to create the PIN block?

New Post: Thales Simulator

New Post: CA Command Issues

$
0
0
Hi Nick,

Thanks for your response, Please find below the outputs

A0- (Generate Random Key)/1234A100U 8B92D4993C77CA27D8D7DBB901B3ACCF0FE053

=== [A0], starts 14:33:08.964 =======
[Key,Value]=[Key Scheme LMK,U]
[Key,Value]=[Key Type,002]
[Key,Value]=[Mode,0]

Key generated (clear): 757C492A31920B9BE33E7F02107FF207
Key generated (LMK): U8B92D4993C77CA27D8D7DBB901B3ACCF
Check value: 0FE053
=== [A0], ends 14:33:08.987 =======


AE-(Encrypt Random Key) )1234AF00U EBB4AA78E7665A689A29ED06857ECCC0

=== [AE], starts 15:13:21.350 =======
[Key,Value]=[Source Key,8B92D4993C77CA27D8D7DBB901B3ACCF]
[Key,Value]=[Source Key Scheme,U]
[Key,Value]=[Target Key,34608A46E071E55C24F8A225F7C68002]
[Key,Value]=[Target Key Scheme,U]

TMK-1 (clear): U757C492A31920B9BE33E7F02107FF207
TMK-2 (clear): UF24526DAB908E03BCBE56B8C404CE9B3
TMK-2 (TMK-1): UEBB4AA78E7665A689A29ED06857ECCC0

=== [AE], ends 15:13:21.376 =======

PAN=32512300212340422 (dummy)
PIN=5555

XoR Pin Block=045576FFDEDCBFBD

Encrypted under TPK: 6951374678125F4E (Encrypted using Clear 757C492A31920B9BE33E7F02107FF207)

Application Event

Client: 127.0.0.1:56149
Request: 1234CAU8B92D4993C77CA27D8D7DBB901B3ACCFUB9692D15353DC64E4366099F449A4A92126951374678125F4E0101230021234042
Parsing header and code of message 1234CAU8B92D4993C77CA27D8D7DBB901B3ACCFUB9692D15353DC64E4366099F449A4A92126951374678125F4E0101230021234042...
Searching for implementor of CA...
Found implementor ThalesSim.Core.HostCommands.BuildIn.TranslatePINFromTPKToZPK_CA, instantiating...
Calling AcceptMessage()...
Calling ConstructResponse()...
Exception while processing message
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToInt32(String value)
at ThalesSim.Core.PIN.PINBlockFormat.ToPIN(String PINBlock, String AccountNumber_Or_PaddingString, PIN_Block_Format Format)
at ThalesSim.Core.HostCommands.BuildIn.TranslatePINFromTPKToZPK_CA.ConstructResponse()
at ThalesSim.Core.ThalesMain.WCMessageArrived(WorkerClient sender, Byte[]& b, Int32 len)
Disconnecting client.
Calling Terminate()...
Implementor to Nothing

Command Events
=== [CA], starts 15:33:09.716 =======
[Key,Value]=[Account Number,230021234042]
[Key,Value]=[Destination ZPK,B9692D15353DC64E4366099F449A4A92]
[Key,Value]=[Destination ZPK Scheme,U]
[Key,Value]=[PIN Length,12]
[Key,Value]=[Source PIN Block,6951374678125F4E]
[Key,Value]=[Source PIN Block Format,01]
[Key,Value]=[Source TPK,8B92D4993C77CA27D8D7DBB901B3ACCF]
[Key,Value]=[Source TPK Scheme,U]
[Key,Value]=[Target PIN Block Format,01]


Thanks

Praj

New Post: CA Command Issues

$
0
0
That's what the problem seems to be. Agreed that the clear PIN block is 045576FFDEDCBFBD. However, encrypting that using 757C492A31920B9BE33E7F02107FF207 gives me 84374DF922413D32 and not 6951374678125F4E. Can you check that?

New Post: CA Command Issues

$
0
0
Hi Nick,


You are right, it should have been 84374DF922413D32, was playing with multiple PAN sorry about that. following is the output

=== [CA], starts 16:11:37.081 =======
[Key,Value]=[Account Number,230021234042]
[Key,Value]=[Destination ZPK,B9692D15353DC64E4366099F449A4A92]
[Key,Value]=[Destination ZPK Scheme,U]
[Key,Value]=[PIN Length,12]
[Key,Value]=[Source PIN Block,84374DF922413D32]
[Key,Value]=[Source PIN Block Format,01]
[Key,Value]=[Source TPK,8B92D4993C77CA27D8D7DBB901B3ACCF]
[Key,Value]=[Source TPK Scheme,U]
[Key,Value]=[Target PIN Block Format,01]

Clear TPK: U757C492A31920B9BE33E7F02107FF207
Clear ZPK: U4031D526C4E0545723EF5EB0672A3785
Clear PIN Block: 045576FFDEDCBFBD
Clear PIN: 5555
New clear PIN Block: 045576FFDEDCBFBD
New crypt PIN Block: 3A215CE936EF8D7F
=== [CA], ends 16:11:37.112 =======


Thanks a bunch.

Prajwal.

New Post: CA Command Issues

New Post: PE command error code 15

$
0
0
Thank you for your advice, I found the hex code in PA command not correct.

New Post: Please help: PA command data over 299.

$
0
0
I would like to send PA command for load printing format to HSM; but i have symbol data over 299,
Please advice
Thank a lot

New Post: Please help: PA command data over 299.

$
0
0
As far as the simulator implementation is correct, you can send any damn thing you well please.

New Post: A0 and IA both respond back with a Parity error 10

$
0
0
My goal is to generate a ZPK

I have done the following

GC
Key length [1,2,3]: 2
Key Type: 000
Key Scheme: U
Clear Component: 02E5 F8A7 15B9 7515 AD20 2543 FEEC 1C54
Encrypted Component: U 01EC 384C 8C3C 7AE4 E1AD EDEE 9A76 067E
Key check value: 536A 45

GC
Key length [1,2,3]: 2
Key Type: 000
Key Scheme: U
Clear Component: F8D0 A4EF D507 C723 0E23 328A DA5E BC54
Encrypted Component: U 191C F046 14C2 FDCB 0959 420B 685E 58BD
Key check value: 6F12 07

FK
Key length [1,2,3]: 2
Key Type: 000
Key Scheme: U
Component type [X,H,E,S]: X
Enter number of components (2-9): 2
Enter component #1: 02E5F8A715B97515AD202543FEEC1C54
Enter component #2: F8D0A4EFD507C7230E23328ADA5EBC54
Encrypted key: U 7C9F EFD7 7AE5 B8FA 8802 306A 8906 47F2
Key check value: 0F76 BF

I try using the IA and
Request to Sim
30 30 30 33 49 41 37 43 | 0003IA7C
39 46 45 46 44 37 37 41 | 9FEFD77A
45 35 42 38 46 41 38 38 | E5B8FA88
30 32 33 30 36 41 38 39 | 02306A89
30 36 34 37 46 32 | 0647F2

Response from Sim
30 30 30 33 49 42 31 30 | 0003IB10

I try using A0 command also
Request to Sim
30 30 30 34 41 30 31 30 | 0004A010
30 31 55 37 43 39 46 45 | 01U7C9FE
46 44 37 37 41 45 35 42 | FD77AE5B
38 46 41 38 38 30 32 33 | 8FA88023
30 36 41 38 39 30 36 34 | 06A89064
37 46 32 55 | 7F2U

Response from Sim
30 30 30 34 41 31 31 30 | 0004A110


Command Events
=== [IA], starts 18:56:38.810 =======
[Key,Value]=[ZMK,7C9FEFD77AE5B8FA8802306A890647F2]

=== [IA], ends 18:56:38.823 =======

=== [A0], starts 18:56:39.234 =======
[Key,Value]=[Key Scheme LMK,U]
[Key,Value]=[Key Scheme ZMK,U]
[Key,Value]=[Key Type,001]
[Key,Value]=[Mode,1]
[Key,Value]=[ZMK,7C9FEFD77AE5B8FA8802306A890647F2]

Key generated (clear): 13D980A80BDCC2D5D5C1C2EC2610764A
Key generated (LMK): U976C49461830AE8524D26ABA225A6D38
Check value: 356674
=== [A0], ends 18:56:39.261 =======

In both cases I am getting a parity error response from the Sim.

Alternatively Tried the KG command in the console which failed too.
KG
Key length [1,2,3]: 2
Key Type: 001
Key Scheme (LMK): U
Key Scheme (ZMK) [ENTER FOR NONE]: U
Enter encrypted ZMK [ENTER FOR NONE]: 7C9FEFD77AE5B8FA8802306A890647F2
Enter ZMK check value [ENTER TO SKIP CV TEST]: 0F76BF
KEY CHECK FAILED




Could you assist me in resolving this issue?

-chhil

New Post: A0 and IA both respond back with a Parity error 10

$
0
0
Resolved the issue by prepending a U to the keys being sent(this was a solution from a older thread).
Not sure I understand , because the scheme is already included in the A0 message.

New Post: Generate a ZPK and import it, the key under LMK and checkvalues dont match

$
0
0
Generate ZMK as follows
EC
Key Type: 000
Key Scheme: U
Enter component: 09090909090909090909090909090909
Encrypted Component: U 0A26 760B D078 7102 6B67 02C5 F9BA 25B3
Key check value: D6A8 75

FK
Key length [1,2,3]: 2
Key Type: 000
Key Scheme: U
Component type [X,H,E,S]: E
Enter number of components (2-9): 3
Enter component #1: U0A26760BD07871026B6702C5F9BA25B3
Enter component #2: U0A26760BD07871026B6702C5F9BA25B3
Enter component #3: U0A26760BD07871026B6702C5F9BA25B3
Encrypted key: U 0A26 760B D078 7102 6B67 02C5 F9BA 25B3
Key check value: D6A8 75

Now generate a ZPK request A0
30 30 30 31 41 30 31 30 | 0001A010
30 31 55 55 30 41 32 36 | 01UU0A26
37 36 30 42 44 30 37 38 | 760BD078
37 31 30 32 36 42 36 37 | 71026B67
30 32 43 35 46 39 42 41 | 02C5F9BA
32 35 42 33 55 | 25B3U

Received response
30 30 30 31 41 31 30 30 | 0001A100
55 36 31 46 36 31 32 42 | U61F612B
34 46 44 38 35 39 41 41 | 4FD859AA
32 30 34 44 30 44 32 34 | 204D0D24
31 34 46 31 38 43 32 39 | 14F18C29
46 55 36 33 31 45 41 41 | FU631EAA
35 46 37 45 36 41 36 43 | 5F7E6A6C
39 45 42 35 41 31 37 30 | 9EB5A170
31 32 35 39 41 37 41 42 | 1259A7AB
35 34 42 33 45 31 43 38 | 54B3E1C8

=== [A0], starts 21:17:54.953 =======
[Key,Value]=[Key Scheme LMK,U]
[Key,Value]=[Key Scheme ZMK,U]
[Key,Value]=[Key Type,001]
[Key,Value]=[Mode,1]
[Key,Value]=[ZMK,0A26760BD07871026B6702C5F9BA25B3]
[Key,Value]=[ZMK Scheme,U]

Key generated (clear): 5B012F0E75970D5DB96EE65249F1D949
Key generated (LMK): U61F612B4FD859AA204D0D2414F18C29F
Check value: B3E1C8
ZMK (clear): 08080808080808080808080808080808
Key under ZMK: U631EAA5F7E6A6C9EB5A1701259A7AB54
=== [A0], ends 21:17:54.966 =======


Now the A6
30 30 30 32 41 36 30 30 | 0002A600
31 55 30 41 32 36 37 36 | 1U0A2676
30 42 44 30 37 38 37 31 | 0BD07871
30 32 36 42 36 37 30 32 | 026B6702
43 35 46 39 42 41 32 35 | C5F9BA25
42 33 55 36 31 46 36 31 | B3U61F61
32 42 34 46 44 38 35 39 | 2B4FD859
41 41 32 30 34 44 30 44 | AA204D0D
32 34 31 34 46 31 38 43 | 2414F18C
32 39 46 55 | 29FU

A7 Response
30 30 30 32 41 37 30 30 | 0002A700
55 44 35 38 38 32 46 39 | UD5882F9
37 44 43 45 35 31 33 41 | 7DCE513A
34 35 32 34 46 43 31 46 | 4524FC1F
38 38 33 41 36 36 34 44 | 883A664D
44 30 33 46 33 42 45 | D03F3BE

=== [A6], starts 21:17:55.222 =======
[Key,Value]=[Key,61F612B4FD859AA204D0D2414F18C29F]
[Key,Value]=[Key Scheme,U]
[Key,Value]=[Key Scheme LMK,U]
[Key,Value]=[Key Type,001]
[Key,Value]=[ZMK,0A26760BD07871026B6702C5F9BA25B3]
[Key,Value]=[ZMK Scheme,U]

ZMK (clear): U08080808080808080808080808080808
Key (clear): UF7904504E5FFF9313767CEA7D08A792C
Key (LMK): UD5882F97DCE513A4524FC1F883A664DD
Check value: 03F3BE
=== [A6], ends 21:17:55.241 =======

The problem is I expected the check values to match and also the key under lmk for the ZPK to match between the A1 and A7 responses.

Please could you let me know if I am doing something incorrect here?

-chhil

Created Issue: CA command cannot support ISO1 [11621]

$
0
0
When the PIN Block format is ISO1 (format 05 in RACAL). The output of CA command is wrong.

New Post: Maintaining Client based Master key + Session key in the system

$
0
0
__Am very much new to this system.

i have to communicate with racal HSM system from my client machine.

i am just starting to study the system...

This what is need to do...

TMK : is stored in my machine
TPK : need generate a TPK (a session key)

with this get need to get a pin block and validate the pin.

And also i want to try the same with the simulator.

1.How to store the a TMK for a client in the HSM Simulator
  1. How to Generate a TPK for a client from HSM Simulator
Please Guide..

Also requesting guide me on basics that i need to cover

Regards
Venkat.S
__

New Post: translate key from scheme u to x

$
0
0
i have a key under u format ( Uabced***************")
can i transtale from key encrytion scheme u to key encryption scheme x (X9.17)???
if yes, How can i do it..??
Viewing all 332 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>