I'm exploring creating keys for data set encryption. I want to encrypt a dataset on one system and sent it to another system.
I have
rule_array = 'INTERNAL'||,
'AES '||'CIPHER '||'XPRTCPAC'||'ANY-MODE'||'
ENCRYPT '
- - - - - - - - - - - - - - - - - - 21 Line(s) not Displayed
ADDRESS linkpgm "CSNBKTB2",
and displaying it gives
Key Attributes
Algorithm: AES Key type: CIPHER
Length (bits): - Key check value: 0266FA ENC-ZERO
Key Usage:
ENCRYPT ANY-MODE
I get
IEC143I 213-85, IBMUSER.ENC, RC=X'00000008',RSN=X'0000085E'
when I try to create a dataset and encrypt it.
85E is
The key usage attributes of the variable-length key token does not allow the requested operation. For example,
the request might have been to
encrypt data, but encryption is not allowed, or the request might have been to
use the ECB cipher mode, but that mode is not allowed.
Am I missing something? It look like it need both ENCYPT and DECRYPT before it will work encrypt
Colin
------------------------------
Colin Paice
------------------------------