Hi All,
I am using CSNBSPN to convert Encrypted ISO-0 pin block to ISO-2 pin block and encrypt new pin block with internal token (Type SECMSG;SMPIN) to create Encrypted Pin Block to send it in Pin Change EMV Script.
I populated the below fields for CSNBSPN.
rule_array - TDES-CBC;SELFENC
input_PIN_block - ISO-0 pin block encrypted using pin encryption keys
PIN_encrypting_key_identifier - DES IPINENC key
input_PIN_profile - ISO-0 NONE F
input_PAN_data - 12 right most digit excluding check digit
secmsg_key_identifier - DES key with control vector key type SECMSG with SMPIN
output_PIN_profile - ISO-2 NONE
output_PAN_data - ignored
CSNBPSN has the following fields and Direction mentioned as Input. But not sure what values to passed to the below fields.
textLength
Clear_text
PIN_offset
PIN_offset_field_length
Please help.
I think CSNBSPN call does the below.
1. Decrypt the input_PIN_block using PIN_encrypting_key_identifier and place the output in Clear_text
2. Convert Pin Block ISO-0 to Pin Block ISO-2 in Clear_text
3. Encrypt the newly ISO-2 pin block in Clear_text using secmsg_key_identifier and return the result in enciphered_text.
Please correct me if I am Wrong.
Thanks,
Sudharsan
------------------------------
Sudharsan Srikanthan
------------------------------