diff options
| author | Holger Dengler <[email protected]> | 2023-07-25 09:24:47 +0000 |
|---|---|---|
| committer | Heiko Carstens <[email protected]> | 2023-08-17 13:18:53 +0000 |
| commit | da2863f15945de100b95c72d5656541d30956c5d (patch) | |
| tree | 20fc54794d5b79959f1e08d89fdbec94fed4a1b6 /rust/helpers.c | |
| parent | s390/pkey: fix PKEY_TYPE_EP11_AES handling in PKEY_GENSECK2 IOCTL (diff) | |
| download | kernel-da2863f15945de100b95c72d5656541d30956c5d.tar.gz kernel-da2863f15945de100b95c72d5656541d30956c5d.zip | |
s390/pkey: fix PKEY_TYPE_EP11_AES handling in PKEY_CLR2SECK2 IOCTL
Commit 'fa6999e326fe ("s390/pkey: support CCA and EP11 secure ECC
private keys")' introduced PKEY_TYPE_EP11_AES for the PKEY_CLR2SECK2
IOCTL to convert an AES clearkey into a securekey of this type.
Unfortunately, all PKEY_CLR2SECK2 IOCTL requests with type
PKEY_TYPE_EP11_AES return with an error (-EINVAL). Fix the handling
for PKEY_TYPE_EP11_AES in PKEY_CLR2SECK2 IOCTL, so that userspace can
convert clearkey blobs into PKEY_TYPE_EP11_AES securekey blobs.
Cc: [email protected] # v5.10+
Fixes: fa6999e326fe ("s390/pkey: support CCA and EP11 secure ECC private keys")
Signed-off-by: Holger Dengler <[email protected]>
Reviewed-by: Ingo Franzki <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions
