Retrieve Key Record Attributes (QC3RTVKA, Qc3RetrieveKeyRecordAtr) API


  Required Parameter Group:


 Service Program Name: QC3KARTV

 Default Public Authority: *USE

 Threadsafe: Yes

The Retrieve Key Record Attributes (OPM, QC3RTVKA; ILE, Qc3RetrieveKeyRecordAtr) API returns the key type and key size of a key stored in a keystore file. It also identifies the master key under which the stored key is encrypted and the master key's KVV.

For more information about cryptographic services keystore, see Cryptographic services key management.


Authorities and Locks

Required file authority
*OBJOPR, *READ


Required Parameter Group

Qualified keystore file name
INPUT; CHAR(20)

The keystore file where the key is stored. The first 10 characters contain the file name. The second 10 characters contain the name of the library where the keystore file is located. You can use the following special values for the library name.


Record label
INPUT; CHAR(32)

The label of the key record. The label will be converted from the job CCSID, or if 65535, the job default CCSID (DFTCCSID) job attribute to CCSID 1200 (Unicode UTF-16).

Key type
OUTPUT; BINARY(4)

The type of key.
The output values have the following meanings.


Key size
OUTPUT; BINARY(4)

Key size in bits.

Master key ID
OUTPUT; BINARY(4)

The master key IDs are


Master key verification value
OUTPUT; CHAR(20)

The KVV for the master key at the time the key was encrypted. This can be compared with the current master key KVV to determine if the key must be re-encrypted.

Disallowed function
OUTPUT; BINARY(4)

The functions that cannot be used with this key. The values listed below can be added together to disallow multiple functions. For example, a key that disallows everything but MACing would have a value of 11.


Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Error Messages




API introduced: V5R4

[ Back to top | Cryptographic Services APIs | APIs by category ]