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

New Post: Using M0 Command.

$
0
0

Hi,

 

I am trying to use the M0 command to encryt a pin block.

Here is my raw byte command sent to the hsm:

4D303030313130304232373441353632423730343234443343323734413536324237303432344433433030304630303030303030303030303030303030

Which is broken down as:

4D30 - M0

3030 - 00 (Mode Flag - 00 - ECB)

31 - 1 (Input format - 1N)

31 - 1 (Output format - 1N)

303042- 00B (Key type - DEK)

3237344135363242373034323444334332373441353632423730343234443343 - 274A562B70424D3C274A562B70424D3C (Key - 16H)

30303046 - 000F (Data length - 4H)

30303030303030303030303030303030 - 0000000000000000 (Data - 16H)

 

Here is the response from the HSM:

Raw response data: 4D313036

Response code: M1

Error code: 06 (Invalid Message length)

I am wondering why is it complaining about my message length which I think is ok. Please help with this.


New Post: Thales simulator for commands compatibles RG7000

$
0
0

Hi, I search a version of simulator compatible for RG7000 commands. Someone can help me to download it ?

New Post: Using M0 Command.

$
0
0

Never mind. I got it fixed.

The problem was my data length, it was supposed to be 0010 instead of 000F.

New Post: Thales simulator for commands compatibles RG7000

$
0
0

 

You've certainly come to the right place. Click on Downloads and go from there.

New Post: Thales simulator for commands compatibles RG7000

$
0
0
nickntg wrote:

 

You've certainly come to the right place. Click on Downloads and go from there.

Thanks.

New Post: Thales Simulater.

$
0
0

Hi,

 

I just downloaded the Thales simulator and got it up and running. I had done RACAL HSM programming about four years back (such as DC, EC, Pin generation etc). 

It is been little while I am little rusty, I have got following questions

1) Do I need to setup the Simulator with LMK's (using officer one, two etc) or it is already configured.

2) Also need to generate ZPK/ KEK so that I can connect to a Network and accept the AWK so that I can encrypt the PIN for transmission. Should I just use the ZPK issued by the network or do I need to create my own ZPK using the components received form the Network. (little rusty here).

3) I have created a PIN block with PAN and PIN XORed (ANSI Format), what command will I use to encrypt for transmission, is it JG (However PIN block has not been encrypted yet).

4) I am using HSM RG 7000 Programmers Manual 1270A514 Issue 5, is there a way to get a copy on the newer version.

 

Thanks in advance.

 

Prajwal

 

 

New Post: Thales Simulator

$
0
0

HI,

 

This is is the first time using the simulator, I tried to send a simple diag command to the SIM and I am getting the following

 

Client: 127.0.0.1:56794
Request: 1234NC
No implementor for 1234NC.

Not sure what is wrong, appreciate if you could help. Thanks

 

Prajwal.

 

New Post: Thales Simulater.

$
0
0

1 - The simulator comes with default LMKs so you don't need to go through that.

2 - You need to create your own of course. Different set of LMKs, remember?

3 - There's no command to encrypt a clear PIN block. That happens at the device (ATM, POS, pin pad).

4 - Issue 5 is indeed an old one. Google around to get at least to 6.1 for HSM 8000.


New Post: Thales Simulator

$
0
0

Works for me and I get 1234ND007B44AC1DDEE2A94B0007-E000. Post your configuration along with application events , command events and data received dump.

New Post: Thales Simulater.

$
0
0

 

Hi Nick,

 

Thanks for your help. I have few more question (just wanted to make it right). I have downloaded the ThalesSim.0.9.6.Mono.2.6.zip is this the right sim to use.

When you said  create different LMK's did you mean ZPK's, TPK's etc, if the LMK's already exist do I still need to create ones.

Also I looked in the web and was unable to find the HSM 8000 Manual (Appreciate if you can help on this). Thank you.

 

 

Prajwal

New Post: Thales Simulater.

$
0
0

If you work with Linux, that's the right sim.

If you've the clear components to import the ZMK then you can proceed with the same ZMK and then import the ZPK under the ZMK.

Regarding the manual, that's Thales proprietary information and unfortunately I'm not able to assist further.

New Post: Thales Simulator

$
0
0

Hi Nick,

Following is the Diag request I am sending to the HSM. On the SIM I do see my command coming in, however I am getting a Command Not found as response from the HSM. Please help, it has been over 10 years since I had programmed, not sure if anything has changed on the RG Programming.

       bt[_idxbt++]=(0x00); //header Length
       bt[_idxbt++]=(0x08);

        bt[_idxbt++]=(0x31);
    bt[_idxbt++]=(0x32);
    bt[_idxbt++]=(0x33);
    bt[_idxbt++]=(0x34);


        bt[_idxbt++]=(0x4E);//N
        bt[_idxbt++]=(0x43);//C
    bt[_idxbt++]=(0X00);
bt[_idxbt++]=(0x00);

for(int k=0;k<_idxbt;k++)
        msgRacal.put(bt[k]);

After this there is Send to Socket.

Thanks in Advance

New Post: Problem with import key command

$
0
0

Hi,
I have a key under Zmk and I want import this key as Zak under LMK.I send below commands:
Online – AUTH> fk
Enter LMK id[0-4]: 0
Enter key length[1,2,3]: 2 ( 2*8=16)
Enter key type : 000 (ZMK)
Enter key scheme: U (3-des with 16 byte)
Enter component type[X,H,T,E,S] :x (xor)
Enter number of component[1-9] : 1
Enter component 1 :10B5 EF68 6EB5 5BA2 A7E5 2008 8CBF 19A8
Encrypted key : U418E 7909 7E1A 49AC 8810 FF87 03A8 50DF
Key check value : 4947 3E
and after I send command ImportKey :
Header:0000000
Command code : A6
Key type: 008
ZMK (encrypt under LMK) : U418E79097E1A49AC8810FF8703A850DF
Key(encrypted under ZMK) : U362C18F10E2F58E3FA1F5834B3655289
Key scheme(LMK) :U
LMK Identifier :00
the respons is :
0000000A701U5101A7684B32A3372BFF02F325A3B650
My probelms are :
1- why do I get error 01?
2- Check value is not for my real key.

Thanks for any help...

New Post: KQ issue

$
0
0
Hello nickntg,

I am sending the HSM command (HSM PayShield 9000) ARQC, the command is

HSMCommand KQ: 1234KQ00D48E1F3B80BBDBD224F6F13E16AD54E444919250001886520023C6CE7800200000000000008407A0000000041010A50F500A4D617374657243617264870101;0840081231009A89A080

but the response from the HSM PayShield 9000 is: 1234KR80

Please help me with this issue... Do you have any idea about this issue, please I appreciate your help....

Best greetings,

Hector Hernandez A.

New Post: BA Command

$
0
0
Hi Nick,

I got the simulator working and am able to communicate with it.....

I send a BA command to encrypt the clear PIN

FFFF5555
765014034214 (12 Right most PAN)


=== [BA], starts 20:44:07.214 =======
[Key,Value]=[Account Number,555765014034]
[Key,Value]=[PIN,FFFF5]

Clear PIN: FFF5
Encrypted PIN: 0FFF5
=== [BA], ends 20:44:07.244 =======

It seems like the Account number that I sent is not correct as seen in the command events it actually took part of the PIN and the Clear PIN: FFF5 which is not correct. Also I am getting a response
Attaching header/response code to response...
Sending: 1234BB000FFF5

should the Encrypted pin be in a form of PIN block or is it just giving me a offset. Please advise. Thanks

Prajwal

New Post: PE command error code 15

$
0
0
Using IBM machine(AS400,Iseries) i have found error code 15 on command PE as below:
1234PA>L>013^0>L>013^1>L>013^2>L>013^3>013 YOUR FULL SERVICE>F
0083PB00
1234PEC00001202519705378HELLO;TEST;WICH;??????~%01
150082PF15
it is very critical to my test environment working in EBCDIC, Please advice,
Thanks you so much

New Post: CA Command Issues

$
0
0
Hi Nick,

Need your help in sorting the issue I am facing I have sent the CA command to the SIM following are the info

Application Event:
Client: 127.0.0.1:62182
Request: 1234CAU2839DD7D8093FCD713BFF1CC5FADFE99U95EC1F1BC1FEFF311ED627CF2CB922AA12BEFA7C2FE3767A510101333301000060
Parsing header and code of message 1234CAU2839DD7D8093FCD713BFF1CC5FADFE99U95EC1F1BC1FEFF311ED627CF2CB922AA12BEFA7C2FE3767A510101333301000060...
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
Client disconnected.
Console client disconnected.

Command Events:
=== [CA], starts 21:52:27.359 =======
[Key,Value]=[Account Number,333301000060]
[Key,Value]=[Destination ZPK,95EC1F1BC1FEFF311ED627CF2CB922AA]
[Key,Value]=[Destination ZPK Scheme,U]
[Key,Value]=[PIN Length,12]
[Key,Value]=[Source PIN Block,BEFA7C2FE3767A51]
[Key,Value]=[Source PIN Block Format,01]
[Key,Value]=[Source TPK,2839DD7D8093FCD713BFF1CC5FADFE99]
[Key,Value]=[Source TPK Scheme,U]
[Key,Value]=[Target PIN Block Format,01]


I am getting System.FormatException: Input string was not in a correct format.

Appreciate your help. Thanks

Praj.

New Post: Translate PIN BLOCK from TPK to ZPK error.

$
0
0
Where you able to figure out the issues.

New Post: CA Implementation - Not Working

$
0
0
Hi Nick,

Not sure if you had recieved the same concern form other developer. It looks like there might be some issues with the CA implementation.


if the Source PIN Format is 1 then it always throws a exceptions (pin length issue), if however you use the Format 2 on the source PIN then it spits out the pblock.

Could you advise if there are any issues with the CA implementation in the Simulator. Appreciate if you can look into it. Thanks

P

New Post: Thales Simulator

$
0
0
Well I was referring to the data displayed on the simulator's window. If you set the detail level to verbose or debug on the main window and send your command, you should see what the simulator receives and how it processes it. That's the data you should post to this thread.
Viewing all 332 articles
Browse latest View live


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