summaryrefslogtreecommitdiff
path: root/crypto/fips.c
diff options
context:
space:
mode:
authorSalvatore Mesoraca <s.mesoraca16@gmail.com>2018-04-09 15:54:46 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2018-04-21 00:58:32 +0800
commit3cca76668c54918d30418df08cbc42af90cdaa93 (patch)
tree7d683d59caf1bbf051b5038eab81873139a16892 /crypto/fips.c
parent4d126de71a40a2a532ef555559f39eb4564c604b (diff)
downloadlinux-crypto-3cca76668c54918d30418df08cbc42af90cdaa93.tar.gz
linux-crypto-3cca76668c54918d30418df08cbc42af90cdaa93.zip
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>
Diffstat (limited to 'crypto/fips.c')
0 files changed, 0 insertions, 0 deletions