]> git.baikalelectronics.ru Git - kernel.git/commit
s390/zcrypt: fix wrong handling of cca cipher keygenflags
authorHarald Freudenberger <freude@linux.ibm.com>
Thu, 29 Aug 2019 13:16:35 +0000 (15:16 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 29 Aug 2019 14:31:44 +0000 (16:31 +0200)
commite4482daf8a1e7acfec66e01767838816410d3e5e
tree8ac58be33daa3bb1f6a1501825e146bf5dffc920
parent5ef250790b99794c8f4efd4fbe9d95fb5d9cfd17
s390/zcrypt: fix wrong handling of cca cipher keygenflags

Tests showed that the keygenflags parameter is not handled
correctly within the zcrypt ccamisc generate cca cipher key
code. A similar code is used with cca cipher key value import
and there the flags are handled correctly. For unknown reason
these lines have not been updated for the generate function
and so this patch now introduces these two lines of code.

This affects only pkey with the use of CCA cipher keys and
the use of additional key generate flags.

Fixes: 59c53f2d2043 ("s390/zcrypt: Add low level functions for CCA AES cipher keys")
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/crypto/zcrypt_ccamisc.c