1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-23 16:53:58 -05:00
linux/include/crypto
Salvatore Mesoraca 13c935bb09 crypto: api - laying defines and checks for statically allocated buffers
In preparation for the removal of VLAs[1] from crypto code.
We create 2 new compile-time constants: all ciphers implemented
in Linux have a block size less than or equal to 16 bytes and
the most demanding hw require 16 bytes alignment for the block
buffer.
We also enforce these limits in crypto_check_alg when a new
cipher is registered.

[1] http://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com

Signed-off-by: Salvatore Mesoraca <s.mesoraca16@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2018-04-21 00:58:32 +08:00
..
internal crypto: simd - allow registering multiple algorithms at once 2018-03-03 00:03:17 +08:00
acompress.h
aead.h crypto: aead - prevent using AEADs without setting key 2018-01-12 23:03:39 +11:00
aes.h
akcipher.h
algapi.h crypto: api - laying defines and checks for statically allocated buffers 2018-04-21 00:58:32 +08:00
authenc.h
b128ops.h
blowfish.h
cast5.h
cast6.h
cast_common.h
cbc.h
chacha20.h crypto: chacha20 - Fix keystream alignment for chacha20_block() 2017-11-29 17:33:33 +11:00
cryptd.h
crypto_wq.h
ctr.h
des.h
dh.h
drbg.h crypto: drbg - move to generic async completion 2017-11-03 22:11:19 +08:00
ecdh.h
engine.h crypto: engine - Permit to enqueue all async requests 2018-02-15 23:26:50 +08:00
gcm.h
gf128mul.h
ghash.h
hash.h crypto: hash - Prevent use of req->result in ahash update 2018-03-16 23:35:52 +08:00
hash_info.h
hmac.h
if_alg.h Merge branch 'misc.poll' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2018-01-30 17:58:07 -08:00
kpp.h
mcryptd.h crypto: mcryptd - protect the per-CPU queue with a lock 2017-12-11 22:29:54 +11:00
md5.h
null.h crypto: null - Get rid of crypto_{get,put}_default_null_skcipher2() 2017-12-22 19:29:08 +11:00
padlock.h
pcrypt.h
pkcs7.h
poly1305.h crypto: poly1305 - remove ->setkey() method 2018-01-12 23:03:14 +11:00
public_key.h
rng.h
salsa20.h crypto: salsa20 - export generic helpers 2018-01-12 23:03:42 +11:00
scatterwalk.h
serpent.h
sha.h
sha1_base.h
sha3.h crypto: sha3-generic - export init/update/final routines 2018-01-26 01:10:34 +11:00
sha256_base.h
sha512_base.h
skcipher.h crypto: skcipher - prevent using skciphers without setting key 2018-01-12 23:03:39 +11:00
sm3.h
sm3_base.h
sm4.h crypto: sm4 - introduce SM4 symmetric cipher algorithm 2018-03-16 23:35:48 +08:00
speck.h crypto: speck - export common helpers 2018-02-22 22:16:54 +08:00
twofish.h
vmac.h
xts.h crypto: xts - remove xts_crypt() 2018-03-03 00:03:33 +08:00