* KMC fc18
stopall
pause 1
sysclear
archmode esame
r 1A0=00000001800000000000000000000200 # z/Arch restart PSW
r 1D0=0002000180000000000000000000DEAD # z/Arch pgm new PSW
r 200=41000012     # LA R0,X'12'       R0->function code 18 encrypt
r 204=41100500     # LA R1,PB          R1->parameter block address
r 208=41200600     # LA R2,FO          R2->first operand
r 20C=41400700     # LA R4,SO          R4->second operand
r 210=41500010     # LA R5,SOL         R5->second operand length
r 214=B92F0024     # KMC R2,R4         Cipher message with chaining
r 218=41000092     # LA R0,X'92'       R0->function code 18 decrypt
r 21C=41100550     # LA R1,PB          R1->parameter block address
r 220=41200800     # LA R2,SO          R2->second operand from encrypt operation
r 224=41400600     # LA R4,FO          R4->first operand from encrypt operation
r 228=41500010     # LA R5,FOL         R5->first operand length
r 22C=B92F0024     # KMC R2,R4         Cipher message with chaining
r 230=B2B20300     # LPSWE WAITPSW     Load enabled wait PSW
r 300=07020001800000000123456789ABCDEF # WAITPSW Enabled wait state PSW
*
r 500=000102030405060708090A0B0C0D0E0F # Parameter block
r 510=101112131415161718191A1B1C1D1E1F # Parameter block
r 550=000102030405060708090A0B0C0D0E0F # Parameter block
r 560=101112131415161718191A1B1C1D1E1F # Parameter block
*
r 600=000102030405060708090A0B0C0D0E0F # First operand
*
r 680=EDA330F90EECD16C003E5FB09BCFF358 # Expected result
*
r 700=000102030405060708090A0B0C0D0E0F # Second operand
*
r 800=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF # Expected result
*
ostailor null
restart
pause 1
* Display parameter blocks
r 600.8
r 800.8
* Expected results
r 680.8
r 700.8
