]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
s390/zcrypt: Fix CCA cipher key gen with clear key value function
authorHarald Freudenberger <freude@linux.ibm.com>
Fri, 20 Dec 2019 08:06:09 +0000 (09:06 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 9 Jan 2020 15:59:18 +0000 (16:59 +0100)
commit94dd3bada53ee77b80d0aeee5571eeb83654d156
tree8a6665b57963cf2c833d046ca08d54c005ec5ec6
parentc79f46a282390e0f5b306007bf7b11a46d529538
s390/zcrypt: Fix CCA cipher key gen with clear key value function

Regression tests showed that the CCA cipher key function which
generates an CCA cipher key with given clear key value does not work
correctly. At parsing the reply CPRB two limits are wrong calculated
resulting in rejecting the reply as invalid with s390dbf message
"_ip_cprb_helper reply with invalid or unknown key block".

Fixes: f2bbc96e7cfa ("s390/pkey: add CCA AES cipher key support")
Cc: Stable <stable@vger.kernel.org>
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/crypto/zcrypt_ccamisc.c