Perhaps try
https://paymentcardtools.com/arqc-calculators/cvn10
Unused it recently for some independent validation.
Given the value your hsm command returned it not close or similar to what the simulator is expecting, perhaps check the keys and data in play in the flow.
What simulator are you using if you can share? Is it configured correctly?
This is really off topic and it would be nice if the subject indicated it as so.on your opening post - now added.
--
Mark
Sent from Proton Mail Android
--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/1069acb8-4773-4182-945d-e4b604d0a684n%40googlegroups.com.
And the MK-SMI key check value matches on both ends? It sounds like your MK-AC could be right but perhaps not MK-SMI.
Is the card set as CVN10 in simulator?
--
Mark
Sent from Proton Mail Android
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/f5c7bcfe-a59c-4a61-a24d-1331efc4beben%40googlegroups.com.
Yeah, mk-smi was on my mind (and yes scripting).
I don't understand why you arpc is so different to that which the simulatornis expecting, it suggests keys.
ARPCs are 8 bytes, so the sim is expecting other data, perhaps CSU, but that is 3 bytes, so it dont understand why it is expecting 10.
Mastercard tools I am afraid are ropey at best, but do confirm that the simulator is handling the card as if it is CVN10.
You are doing a validate ARQC and generate ARPC in one command? Is the response code into that command the same as on the response de39?
--
Mark
Sent from Proton Mail Android
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/f5120325-39d8-432d-a055-b8b4b60d2df5n%40googlegroups.com.
Is the response code into that command the same as on the response de39? -> Yes
You said you had checked the keys, but now you say...
"
could be the case.
"
What hexdump values donyou have for :-
"last two bytes always getting matched."
Are the bytes changing but matching the sim or static?
--
Mark
Sent from Proton Mail Android
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/18cd7448-e61b-44bc-a3f8-7d52673880fdn%40googlegroups.com.
No MK-SMI, that was my mistake.
Can you share a sample of the bytes that are managing to match and which dield/tag for context?
--
Mark
Sent from Proton Mail Android
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/4fd788c6-af2b-449c-910e-0f1249724dedn%40googlegroups.com.
It travels in a field and tag, can you share that and also a sample of the data
--
Mark
Sent from Proton Mail Android
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/6629a756-16e3-43e1-a2c0-d33ecad87334n%40googlegroups.com.
You are using Thales payshield?
That output being a representation of the bytes Sent, not the actual bytes (lowercase would be invalid)?
KR response looks like? Hex dump ideally.
ARC is incorrect and won't match your de39.
What is your de39?
--
Mark
Sent from Proton Mail Android
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/aa60dbd0-82ab-4a78-a555-84467b5ff7ddn%40googlegroups.com.
You are using Thales payshield? - Yes
That output being a representation of the bytes Sent, not the actual bytes (lowercase would be invalid)?
KR response looks like? Hex dump ideally. -> It says ARQC valid and returns ARPC
ARC is incorrect and won't match your de39. -> It ask for 2 bytes of ARC. Changing it to 00 not making any difference. Getting same ARPC.
What is your de39? -> 00
below is the complete hex dump. Just replaced key values with X.
request:
0000 30 30 30 31 4B 51 31 31 55 34 46 44 42 34 35 36 0001KQ11U4FDB456
0010 37 30 4X 3X 3X 3X 3X 3X 3X 3X 32 33 32 36 43 33 70XXXXXX572326C3
0020 41 46 42 43 45 37 31 31 45 34 35 00 26 30 43 25 AFBCE711E45.&0C%
0030 01 02 1E 55 10 73 05 32 38 00 00 00 10 00 00 00 ...U.s.28.......
0040 00 00 00 00 00 08 40 00 00 00 00 00 08 40 24 04 ......@......@$.
0050 22 00 55 10 73 05 5C 00 02 1E 02 00 00 04 40 00 ".U.s.\.......@.
0060 80 3B A0 E8 DE B3 26 C3 8D 80 00 00 25 30 30 .;....&.....%00
response:
0000 4B 52 30 30 EF BF BD EF BF BD 71 EF BF BD EF BF KR00......q.....
0010 BD 5E EF BF BD 3A .^...:
If de39=00, then arc into KQ is 3030 - check the manual.
--
Mark
Sent from Proton Mail Android
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/53c6dbde-04eb-4497-8c22-7c0cf54e30efn%40googlegroups.com.
It is an ascii value.
Unless you have something translating the bytes hotting the hsm- significantly - that you do not show.
0000 is wrong.
Good luck, I am done trying to help.
:-)
--
Mark
Sent from Proton Mail Android
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/1274007b-d13b-4911-80a5-5c5542866aean%40googlegroups.com.