]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/crypto: Postpone the key split to key conversion
authorHolger Dengler <dengler@linux.ibm.com>
Fri, 25 Oct 2024 15:12:48 +0000 (17:12 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 29 Oct 2024 10:17:19 +0000 (11:17 +0100)
commitf4d3cf6b8b8389c839762987d45f31f863b84afd
tree76ec9ab1688c4daf4d942b80037b6b1d8e4ea6a6
parent20a5f640ca7f7b8486d8f5bd286ef7f58b88ea68
s390/crypto: Postpone the key split to key conversion

Store the input key material of paes-xts in a single key_blob
structure. The split of the input key material is postponed to the key
conversion. Split the key material only, if the returned protected
keytype requires a second protected key.

For clear key pairs, prepare a clearkey token for each key and convert
them separately to protected keys. Store the concatenated conversion
results as input key in the context. All other input keys are stored
as is.

Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Holger Dengler <dengler@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/crypto/paes_s390.c