IBM 2 Computer Hardware User Manual


 
CCA Release 2.54
VISA PIN Validation Value (PVV) Calculation Method
The VISA-PVV calculation method calculates a VISA-PVV that is 4 digits in length.
The VISA PIN Validation Value (PVV) calculation method consists of the following
steps:
1. Let X denote the transaction_security_parameter element. This parameter is
the result of concatenating the 12-numeric-digit generating data (a portion of
the account number) with the 4-numeric-digit customer-entered PIN. (C-PIN
when calculating the PVV, or T-PIN when validating a transaction.)
2. Encrypt X with the double-length key that has a control vector that specifies the
PINGEN (or PINVER) key type to get 16 hexadecimal digits (64 bits).
3. Perform decimalization on the result of the previous step by scanning the 16
hexadecimal digits from left to right, skipping any digit greater than X'9', until 4
decimal digits (digits that have values from X'0' to X'9') are found.
If all digits are scanned but 4 decimal digits are not found, repeat the scanning
process, skipping all digits that are X'9' or less and selecting the digits that
are greater than X'9'. Subtract 10 (X'A') from each digit selected in this
scan.
4. Concatenate and use the resulting digits for the PVV. The PVV is not
encrypted.
Appendix E. Financial System Verbs Calculation Methods and Data Formats E-7