The generic component CRYASC2 contains the sub return codes 2 for the main return code CPKC11T “arguments_bad”.
Macro | Operands |
CRYASC2 | MF=D / C |
Sub return codes 2
SRC2 | Identifier for main return code (Assembler) | Meaning |
01 | CRY2wrAction | invalid action |
02 | CRY2wrSession | invalid session |
03 | CRY2wrInfo | invalid information |
04 | CRY2wrNotify | invalid notify |
05 | CRY2wrSlotId | invalid slot ID |
06 | CRY2wrDatIn | invalid data input |
07 | CRY2wrDatOut | invalid data output |
08 | CRY2wrMechanism | invalid mechanism |
09 | CRY2wrKey | invalid key |
0a | CRY2wrBKey | invalid base key |
0b | CRY2wrTmplt | invalid template |
0c | CRY2wrAttr | invalid attribute |
0d | CRY2wrCnt | invalid count |
0e | CRY2wrPubKey | invalid public key |
0f | CRY2wrPrvKey | invalid private key |
10 | CRY2wrPubTmplt | invalid public key template |
11 | CRY2wrPrvTmplt | invalid private key template |
14 | CRY2wrTpkPr | invalid present token |
15 | CRY2wrType | invalid type |
16 | CRY2wrLabel | invalid label |
17 | CRY2wrPin | invalid pin |
18 | CRY2wrPinL | invalid pin length |
19 | CRY2wrUTyp | invalid user type |
1a | CRY2wrObj | invalid object |
1b | CRY2wrObjLst | invalid object list |
1c | CRY2wrObjSz | invalid object size |
1d | CRY2wrObjCnt | invalid object count |
1e | CRY2wrmaxObjCnt | invalid maximum object count |
1f | CRY2wrOpState | invalid operation state |
20 | CRY2wrOpStateLen | invalid length of the operation state |
21 | CRY2wrEncKey | invalid encryption key |
22 | CRY2wrAutKey | invalid authentication key |
23 | CRY2wrData | invalid data |
24 | CRY2wrDataLen | invalid length of data |
25 | CRY2wrUnwrKey | invalid unwrapping key |
26 | CRY2wrWrKey | invalid wrapped key |
27 | CRY2wrWrKeyLen | invalid length of wrapped key |
28 | CRY2wrWringKey | invalid wrapping key |
29 | CRY2wrExec | invalid execution mode |
2a | CRY2wrRPostAd | invalid postcode address |
2b | CRY2wrRPostL | invalid postcode length |
2c | CRY2wrBoid | invalid stock exchange identification |
2d | CRY2wrSigLen | invalid signature length |
2e | CRY2wrVers1 | asynchronous execution with version 1.0 not |
2f | CRY2wrAlloc | non-allocated storage area detected |
40 | reserved | reserved parameter area is not 0 |
F0 | preceding | for all main return codes: |
SRC2 “preceding”
If SRC2 returns the value “preceding” (X’F0’), the error returned in the MRC does not refer to the function for which the value is returned, but instead to a preceding function. This may occur if an incorrect parameter is recognized after the preceding function has been completed.
Example
The macro call CCRYINI SES=1,ACT=*ENCRYPTINIT,MECH=mDes_key_gen,KEY=7 is first confirmed with OK.
The follow-up call CCRY ACT=*ENCRYPT,DATAIN=...,INLEN=...,DATAOUT=...,
OUTLEN=... is answered with X’F0400070’.
The “mechanism_invalid” MRC refers, in this case, not to the CCRY call, but instead - as can be seen from the SRC2 - to the preceding CCRYINI call.
This mechanism cannot be used for the *ENCRYPT action.