IBM 2 Computer Hardware User Manual


 
Encrypted_PIN_Generate CCA Release 2.54
When using the ISO-0 PIN-block format, specify a PAN. For information
about a personal account number (PAN), see “Personal Account Number
(PAN)” on page 8-13.
When using another PIN-block format, specify a 12-byte variable in
application storage. The information in the variable will not be used, but
the variable must be declared.
With the sequence_number variable specify a four-byte integer variable valued
to 99999.
An eight-byte variable for the encrypted PIN with the encrypted_PIN_block
parameter.
The verb does the following:
Verifies that the EPINGEN bit is one in the control vector for the PIN-generating
key.
Uses the specified PIN-calculation method and account validation data to
calculate the PIN.
Optionally uses the specified PIN length to determine the length of the PIN.
Formats the PIN into the specified PIN-block format. The verb includes the
clear PIN and, depending on the PIN-block format, the pad digit, the PAN, and
the sequence number. For a description of the formats, see “PIN-Block
Formats” on page E-9.
Checks the control vector for the OPINENC key by verifying that the EPINGEN
bit is one.
Encrypts the PIN block in ECB mode according to the format-control keyword
specified in the PIN profile.
Restrictions
None
Format
CSNBEPG
return_code Output Integer
reason_code Output Integer
exit_data_length In/Output Integer
exit_data In/Output String exit_data_length bytes
PIN_generating_key_identifier Input String 64 bytes
outbound_PIN_encrypting_key_identifier Input String 64 bytes
rule_array_count Input Integer one
rule_array Input String
array
rule_array_count * 8 bytes
PIN_length Input Integer
data_array Input String 16 bytes * 3
PIN_profile Input String
array
3 * 8 bytes
PAN_data Input String 12 bytes
sequence_number Input Integer
encrypted_PIN_block Output String 8 bytes
8-34 IBM 4758 CCA Basic Services, Release 2.54, February 2005