Destroy Key Context (QC3DESKX, Qc3DestroyKeyContext)


  Required Parameter Group:

1 Key context token Input Char(8)
2 Error code I/O Char(*)

  Service Program Name: QC3CTX

  Default Public Authority: *USE

  Threadsafe: Yes

The Destroy Key Context (OPM, QC3DESKX; ILE, Qc3DestroyKeyContext) API destroys the key context created with the Create Key Context (OPM, QC3CRTKX; ILE, Qc3CreateKeyContext) API.


Authorities and Locks

Required API authority
*USE


Required Parameter Group

Key context token
INPUT; CHAR(8)

The token of the key context to destroy.

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

Message ID Error Message Text
CPF3C1E E Required parameter &1 omitted.
CPF3CF1 E Error code parameter not valid.
CPF9872 E Program or service program &1 in library &2 ended. Reason code &3.
CPF9DDA E Unexpected return code &1.
CPF9DF4 E The key context token does not reference a valid key context.
CPF9DF5 E The key context is not found or was previously destroyed.



API introduced: V5R3
Top | Cryptographic Services APIs | APIs by category