tilln / jmeter-iso8583

ISO8583 Plugin for JMeter
MIT License
64 stars 33 forks source link

Issue in ARQC Generation for CVN18/22 #103

Open ManojhM-1530 opened 2 months ago

ManojhM-1530 commented 2 months ago

Hi @tilln,

While generating ARQC using the ISO8583 Crypto PreProcessor (ISO-8583 Version 1.3), I am able to generate an ARQC value, but we are getting declined error message due to ARQC. However, when I generate the ARQC using online tool, the value is correct, and I receive a successful response. I have attached the reference screenshots for your review. please note that we need to generate ARQC with CVN18/22.

Could you please assist me in resolving this issue? Is there any configuration that needs to be adjusted on my side?

*Note: Card number and key values have been masked.

Generated using online tool:

image

Generated Using ISO-8583 pre processor:

image

image

tilln commented 2 months ago

Hi @ManojhM-1530

Thanks for reporting this issue.

I suspect it is caused by incorrect padding of the ARQC input data.

Could you please enter the value 80 in the "Padding (hex)" field and try again?

ManojhM-1530 commented 2 months ago

Hi @tilln,

Thank you for the advice. I added 80 in the "Padding (hex)" and generated the ARQC value and it worked for me.

Once again Thank you for the quick response.

tilln commented 2 months ago

The user should not have to provide the padding or even know what padding method to apply.

Ideally, the CryptogramDataBuilder or CryptogramSpec should take care of that.

In fact, a padding option has been introduced but will only be released with jPOS v.2.1.10. However, it does not consistently define the method to use for all cryptogram versions (only CPA).

A PR has been submitted at jPOS and will be included in the next release.

github-actions[bot] commented 1 week ago

This issue is stale because it has been open for 30 days with no activity.