We develop software for POS terminals, and use their library of developers POS. The function that generates pin block, ask us the PIN key. And in order to generate PIN key, we need to specify the master key and in order to generate master key, you first need to specify the loading key. So the order is: loading key -> master key -> PIN key.
We need to find out how these keys are interrelated. What's going on inside the function. Since we can not look inside their functions. What do we know about their application? On the application uses the method of encryption 3des and maybe some key is XORing. And we know exactly which pin block, it displays.
For example, if you specify the following keys:
loading key: 11111111111111111111111111111111
master key: 11111111111111111111111111111111
PIN key: 11111111111111111111111111111111
PAN: 1111111111111111
PIN: 1111
We get pin block like this: 0C43B779D7A1CB72
Please help those who are well versed in encryption and in the terminals. Thank you in advance!