Translate PIN BLOCK from TPK to ZPK error.

Oct 11, 2012 at 8:47 AM

I have tested on Thales Simulator. When i send the message. 

HSM receive as below:

=== [CA], starts 15:04:02.553 =======

[Key,Value]=[Account Number,411104555566]

[Key,Value]=[Destination ZPK,604DE0EA1B18C73C2BD6E6CAAECF939F]

[Key,Value]=[Destination ZPK Scheme,U]

[Key,Value]=[PIN Length,12]

[Key,Value]=[Source PIN Block,177D46C27D279515]

[Key,Value]=[Source PIN Block Format,01]

[Key,Value]=[Source TPK,4660862B7579BBF08B6E6177E36E53A6]

[Key,Value]=[Source TPK Scheme,U]

[Key,Value]=[Target PIN Block Format,01]

 

But instead of continue processing, in Application Events display: 

 

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()...

 

So what should i do now. Please help me. Thanks in advance.

 

Coordinator
Oct 11, 2012 at 7:13 PM

Without going into a more detailed investigation, I've a feeling that PIN length 12 is somehow invalid. Was that what you intended to sent?

Oct 12, 2012 at 7:01 AM
nickntg wrote:

Without going into a more detailed investigation, I've a feeling that PIN length 12 is somehow invalid. Was that what you intended to sent?

I check in the HSM host command reference. The document said that please put 12 in this field.

Coordinator
Oct 13, 2012 at 8:01 AM

You're right, I thought it was the PIN length of the actual PIN.

With the data you've provided, the clear PIN block is 0AD095565BD567FD which does not appear to be correct in the sense that the simulator cannot derive a clear PIN key from this ANSI PIN block. What's the clear PIN key, account number and clear PIN?

Feb 13, 2013 at 12:09 AM
Where you able to figure out the issues.