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


Variable-Length Cryptographic Key Data Set (CKDS) Record Format

z/OS Cryptographic Services ICSF System Programmer's Guide
SA22-7520-17

The CKDS record includes the CKDS header and the key record. These tables show the format of each of these records.

Format of the Variable-Length Header Record

The following table presents the format of the variable-length CKDS header record

Table 27. Cryptographic Key Data Set Header Record Format
Offset (Dec)Number of BytesField NameDescription
072Constant

VSAM key of the CKDS header.

728Creation date

The date the CKDS was initialized in the format yyyymmdd.

808Creation time

The initial time the CKDS was created in the format hhmmssth.

888Last update date

The most recent date the CKDS was updated, in the format yyyymmdd.

968Last update time

The most recent time the CKDS was updated, in the format hhmmssth.

1042Sequence number

Initially zero in binary. Incremented each time the data set is processed.

1062header flag bytesFlag bytes.
Bit
Meaning When Set On
0
The DES master key verification pattern is valid.
1
The DES master key authentication pattern is valid.
2
The AES master key verification pattern is valid.
3–8
Reserved.
9
The record format is variable — always 1
10-15
Reserved.
Note:
After the bits are set on, the given values remain constant in ICSF.
1088DES master key verification pattern

The system DES master key verification pattern.

1168DES master key authentication pattern

The system DES master key authentication pattern.

1248AES master key verification pattern.The system AES master key verification pattern.
1324Record lengthLength of the record in bytes.
13660Reserved
19652Installation data
2484Authentication code

CKDS header authentication code.

Format of the Variable-Length CKDS Record

The following table presents the format of each variable-length data set record.

Table 28. Variable-Length Cryptographic Key Data Set Record Format
Offset (Dec)Number of BytesField NameDescription
064Key label

The label or name of this CKDS record. The key label is the first field of the key index.

648Key type

The type of key the record contains. The key type is the second field of the key index.

728Creation date

The initial date the CKDS record was created in the format yyyymmdd.

808Creation time

The initial time the CKDS record was created in the format hhmmssth.

888Last update date

The most recent date the CKDS record was updated in the format yyyymmdd.

968Last update time

The most recent time the CKDS record was updated in the format hhmmssth.

1044Record length

Length of the entire record including the key token.

10860Reserved.
1682CKDS flag bytesFlag bytes.
Bit
Meaning When Set On
0
The key within the key token field is a partial key.
1
Reserved.
2
CKDS label must be unique.
3
The record format is variable — always 1
4-7
Reserved.
Note:
When bit 0 is off, the key within the key token field (offset 104) is an entire key.
17026Reserved.
19652Installation data
24820Authentication code

The record authentication code.

268variableKey tokenThe key token.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014