Start of changeMigrating from 57xx-CR1

IBM plans to drop support of IBM Cryptographic Support for AS/400 (5722-CR1) in the release after V5R4. This article will help you migrate your CR1 applications to the Cryptographic Services APIs.

Prior to reading this article, you may want to review the information in the following articles:

General Functional Differences

Migrating Keys

If you have not already established a Cryptographic Services APIs master key, do so using the Load Master Key Part and Set Master Key APIs.

Write a program that performs the following steps to migrate your keys from the CR1 cross-domain key table to a Cryptographic Services APIs key store file.

  1. Create a key store file using the Create Key Store API.

  2. Get the CR1 master key value.
  3. Create a key context token for each variant of the CR1 master key.
  4. Erase the master key value, the three new key values, and any key part values from program storage.

  5. Create a DES algorithm context token using the Create Algorithm Context API.
  6. Read each record of the cross-domain key table and import the key value to your key store file.

To migrate CR1 master key encrypted keys not stored in the cross-domain key table, your program should perform the following steps.

  1. Get the CR1 master key value.
  2. Create a key context token for the CR1 master key.
  3. Erase the master key value and any key part values from program storage.

  4. Create a DES algorithm context token using the Create Algorithm Context API.
  5. Import the CR1 master key encrypted keys.

    For each CR1 master key encrypted key, use the Import Key API to re-encrypt the key under a Cryptographic Services APIs master key.

Migrating Programs

Use the following list to determine how to replace CR1 APIs with Cryptographic Services APIs.

Add Cross-Domain Key (CL, ADDCRSDMNK)
Replace with
Notes:
Change Cross-Domain Key (CL, CHGCRSDMNK)
Replace with
Notes:
Change Master Key (CL, CHGMSTKK)
Replace with
Notes:
Cipher Data (CL, CPHDTA; OPM, QCRCIPHR)
Replace with
Notes:
Encrypt Cipher Key (CL, ENCCPHK; OPM, QCRENCKY)
Replace with

Encipher From Master Key (CL, ENCFRMMSTK; OPM, QCRENCFR)
Replace with
Notes:
Encipher To Master Key (CL, ENCTOMSTK; OPM, QCRENCTO)
Replace with
Notes:
Generate Cipher Key (CL, GENCPHK; OPM, QCRGENKY)
Replace with
Notes:
Generate Cross-Domain Key (CL, GENCRSDMNK)
Replace with
Notes:
Generate Message Authentication Code (CL, GENMAC; OPM, QCRGENMA)
Replace with
Notes:
Generate PIN (CL, GENPIN; OPM, QCRGENPN)
Replace with
Notes:
Remove Cross-Domain Key (CL, RMVCRSDMNK)
Replace with
Notes:
Set Master Key (CL, SETMSTK)
Replace with
Translate PIN (CL, TRNPIN; OPM, QCRTRNPN)
Replace with
Notes:
Verify Master Key (CL, VFYMSTK)
Replace with
Notes:
Verify PIN (CL, VFYPIN; OPM, QCRVFYPN)
Replace with
Notes:
End of change

Top | Cryptographic Services APIs |APIs by category