]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/crypt: Add protected key AES module
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 4 Nov 2016 10:57:15 +0000 (11:57 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 24 Feb 2017 07:31:44 +0000 (08:31 +0100)
commit2793784307688a7a72bd322727a2cb11dede875f
tree009501aa3f2e1ea73a2188c8e34f7fe4dd9f523f
parent8693b9145b13dc44664602cd4cbe71862c26d0b5
s390/crypt: Add protected key AES module

This patch introduces a new in-kernel-crypto blockcipher
called 'paes' which implements AES with protected keys.
The paes blockcipher can be used similar to the aes
blockcipher but uses secure key material to derive the
working protected key and so offers an encryption
implementation where never a clear key value is exposed
in memory.

The paes module is only available for the s390 platform
providing a minimal hardware support of CPACF enabled
with at least MSA level 3. Upon module initialization
these requirements are checked.

Includes additional contribution from Harald Freudenberger.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/crypto/Makefile
arch/s390/crypto/paes_s390.c [new file with mode: 0644]
arch/s390/include/asm/cpacf.h
drivers/crypto/Kconfig