linux/arch/s390/crypto
Harald Freudenberger 416f79c23d s390/paes: Prepare paes functions for large key blobs
The context used to store the key blob used a fixed 80 bytes
buffer. And all the set_key functions did not even check the given key
size. With CCA variable length AES cipher keys there come key blobs
with about 136 bytes and maybe in the future there will arise the need
to store even bigger key blobs.

This patch reworks the paes set_key functions and the context
buffers to work with small key blobs (<= 128 bytes) directly in the
context buffer and larger blobs by allocating additional memory and
storing the pointer in the context buffer. If there has been memory
allocated for storing a key blob, it also needs to be freed on release
of the tfm. So all the paes ciphers now have a init and exit function
implemented for this job.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2019-08-21 12:58:54 +02:00
..
aes_s390.c s390/crypto: fix possible sleep during spinlock aquired 2019-05-29 21:13:10 +02:00
arch_random.c s390/archrandom: Rework arch random implementation. 2018-05-30 11:18:04 +02:00
crc32-vx.c crypto: hash - annotate algorithms taking optional key 2018-01-12 23:03:35 +11:00
crc32be-vx.S s390: add missing ENDPROC statements to assembler functions 2019-05-02 13:54:11 +02:00
crc32le-vx.S s390: add missing ENDPROC statements to assembler functions 2019-05-02 13:54:11 +02:00
des_s390.c s390/crypto: fix possible sleep during spinlock aquired 2019-05-29 21:13:10 +02:00
ghash_s390.c s390/crypto: ghash: Use -ENODEV instead of -EOPNOTSUPP 2019-06-15 12:24:40 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
paes_s390.c s390/paes: Prepare paes functions for large key blobs 2019-08-21 12:58:54 +02:00
prng.c s390/crypto: prng: Use -ENODEV instead of -EOPNOTSUPP 2019-06-15 12:24:44 +02:00
sha1_s390.c s390/crypto: sha: Use -ENODEV instead of -EOPNOTSUPP 2019-06-15 12:24:48 +02:00
sha256_s390.c s390/crypto: sha: Use -ENODEV instead of -EOPNOTSUPP 2019-06-15 12:24:48 +02:00
sha512_s390.c s390/crypto: sha: Use -ENODEV instead of -EOPNOTSUPP 2019-06-15 12:24:48 +02:00
sha_common.c s390: crypto: Remove redundant license text 2017-11-24 15:37:23 +01:00
sha.h s390: crypto: Remove redundant license text 2017-11-24 15:37:23 +01:00