Im trying to set up a key for data set encryption using KGUP.
//S2 EXEC PGM=CSFKGUP
//CSFCKDS DD DISP=OLD,DSN=CSF.SCSFCKDS
//CSFDIAG DD SYSOUT=*,LRECL=133 (THE LRECL PARAMETERS ARE REQUIRED)
//CSFKEYS DD SYSOUT=*,LRECL=1044
//CSFSTMNT DD SYSOUT=*,LRECL=80
//CSFIN DD *
ADD TYPE(DATA) ALGORITHM(AES) LABEL(AES) LENGTH(32),
TRANSKEY(ATOBAES)
/*
This gives me
>>>CSFG0814 KEYWORD TRANSKEY NOT VALID WITH ALGORITHM AES.
But the doc says
TRANSKEY (key-label1[,key-label2])
This keyword identifes the label of a transport key that already exists in the CKDS. KGUP uses the
transport key either to decrypt an imported key value or to encrypt a key value to send to another
system.
The algorithm of the transport key must match the key being wrapped, that is, an AES keymust be wrapped with an AES transport key.My ATOBAES has
Key Attributes Algorithm: AES Key type: EXPORTER Length (bits): - Key check value: BB73A7 ENC-ZERO Key Usage: EXPORT TRANSLAT GEN-OPEX GEN-IMEX GEN-EXEX GEN-PUB WR-DES WR-AES WR-HMAC WR-DATA WR-KEK WR-PIN WRDERIVE WR-CARD Key Management: XPRT-SYM XPRTUASY XPRTAASY NOEX-RAW NOCMPTAG XPRT-DES XPRT-AES XPRT-RSA POCLRKV PCCLVAL Key Name:How should I do it?
Colin
------------------------------
Colin Paice
------------------------------