Previous Topic: Form 1Next Topic: ENCRYPT Record


Form 2

The second form of the DES3KEY record syntax uses the exit keyword to specify the file name and file type of a user exit program that runs to calculate or otherwise create the key. The syntax of this form of the record is:

DES3KEY EXIT filename EXEC|TEXT

CA provides a VMXEXITO XEXEC sample exit file. This file was loaded to the product userid’s VMSES/E LOCALSAM minidisk or directory usually the 2C2. The provided sample exit prompts the user to enter the key in two parts.

When the DES3KEY user exit is specified, the exit program is called during VMXCPG execution. The exit program assembles the key in the form of six groups of eight hexadecimal digits, and returns it through the stack.

Here is another sample DES3KEY user exit:

/* Sample exit */
Push '12345678 9ABCDEF0 87654321 BBBBBBBB 00000000 BBBBBBBB'
exit 0