z/OS Cryptographic Services ICSF Application Programmer's Guide
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF


ANSI X9.17 Key Management Services

z/OS Cryptographic Services ICSF Application Programmer's Guide
SA22-7522-16

Restriction: ANSI X9.17 keys and ANSI key management services are only supported on the IBM eServer zSeries 900.

The ANSI X9.17 key management standard defines a process for protecting and exchanging DES keys. The ANSI X9.17 standard defines methods for generating, exchanging, using, storing, and destroying these keys. ANSI X9.17 keys are protected by the processes of notarization and offsetting, instead of control vectors. In addition to providing services to support these processes, ICSF also defines and uses an optional process of partial notarization.

Offsetting involves exclusive-ORing a key-encrypting key with a counter. The counter, a 56-bit binary number that is associated with a key-encrypting key and contained in certain ANSI X9.17 messages, prevents either a replay or an out-of-sequence transmission of a message. When the associated AKEK is first used, the application initializes the counter. With each additional use, the application increments the counter.

Notarization associates the identities of a pair of communicating parties with a cryptographic key. The notarization process cryptographically combines a key with two 16-byte quantities, the origin identifier and the destination identifier, to produce a notarized key. The notarization process is completed by offsetting the AKEK with a counter.

ICSF makes it possible to divide the AKEK notarization process into two steps. In the first step, partial notarization, the AKEK is cryptographically combined with the origin and destination identifiers and returned in a form that can be stored in the CKDS or application storage. In the second step, the partially notarized AKEK is exclusive OR-ed with a binary counter to complete the notarization process. Partial notarization improves performance when you use an AKEK for many cryptographic service messages, each with a different counter. For details of the partial notarization calculations, refer to ANSI X9.17 Partial Notarization Method.

ICSF provides these callable services to support the ANSI X9.17 key management standard. Except where noted, these callable services have the identical syntax as the Transaction Security System verbs of the same name. With few exceptions, key management applications that use these common callable services, or verbs, can be executed on either system without change. Internal tokens cannot be interchanged; external tokens can be.

Key Generate Callable Service Used to Generate an AKEK (CSNBKGN)

The key generate callable service, described in Key Generate Callable Service (CSNBKGN and CSNEKGN), can also be used to generate an AKEK in the operational form. It generates either an 8-byte or 16-byte AKEK and places it in a skeleton key token created by the key token build callable service. The length of the AKEK is determined by the key length keyword specified when building the key token.

ANSI X9.17 EDC Generate Callable Service (CSNAEGN and CSNGEGN)

This service generates an ANSI X9.17 error detection code on an arbitrary length string.

ANSI X9.17 Key Export Callable Service (CSNAKEX and CSNGKEX)

This service uses the ANSI X9.17 protocol to export a DATA key or a pair of DATA keys, with or without an AKEK. It also provides the ability to convert a single supplied DATA key or combine two supplied DATA keys into a MAC key.

ANSI X9.17 Key Import Callable Service (CSNAKIM and CSNGKIM)

This service uses the ANSI X9.17 protocol to import a DATA key or a pair of DATA keys, with or without an AKEK. It also provides the ability to convert a single supplied DATA key or combine two supplied DATA keys into a MAC key. The syntax is identical to the Transaction Security System verb, with these exceptions:

  • Keys cannot be imported directly into the CKDS.

ANSI X9.17 Key Translate Callable Service (CSNAKTR and CSNGKTR)

This service translates one or two DATA keys or an AKEK from encryption under one AKEK to encryption under another AKEK, using the ANSI X9.17 protocol.

ANSI X9.17 Transport Key Partial Notarize Callable Service (CSNATKN and CSNGTKN)

This service preprocesses or partially notarizes an AKEK with origin and destination identifiers. The partially notarized key is supplied to the ANSI X9.17 key export, ANSI X9.17 key import, or ANSI X9.17 key translate callable service to complete the notarization process. The syntax is identical to the Transaction Security System verb except that:

  • The callable service does not update the CKDS.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014