diff options
author | Kees Cook <keescook@chromium.org> | 2018-09-18 19:10:38 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-09-28 12:46:06 +0800 |
commit | 707cb6d1ff2cb27c2ab53e40835d4385d87b7d48 (patch) | |
tree | 4ef9b7d6183e37619ef00ccb901293e038b16716 /crypto/sha3_generic.c | |
parent | c2751ef4503d6de2c4a703e2b4ace60e2b2be0bf (diff) | |
download | linux-crypto-707cb6d1ff2cb27c2ab53e40835d4385d87b7d48.tar.gz linux-crypto-707cb6d1ff2cb27c2ab53e40835d4385d87b7d48.zip |
crypto: skcipher - Introduce crypto_sync_skcipher
In preparation for removal of VLAs due to skcipher requests on the stack
via SKCIPHER_REQUEST_ON_STACK() usage, this introduces the infrastructure
for the "sync skcipher" tfm, which is for handling the on-stack cases of
skcipher, which are always non-ASYNC and have a known limited request
size.
The crypto API additions:
struct crypto_sync_skcipher (wrapper for struct crypto_skcipher)
crypto_alloc_sync_skcipher()
crypto_free_sync_skcipher()
crypto_sync_skcipher_setkey()
crypto_sync_skcipher_get_flags()
crypto_sync_skcipher_set_flags()
crypto_sync_skcipher_clear_flags()
crypto_sync_skcipher_blocksize()
crypto_sync_skcipher_ivsize()
crypto_sync_skcipher_reqtfm()
skcipher_request_set_sync_tfm()
SYNC_SKCIPHER_REQUEST_ON_STACK() (with tfm type check)
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/sha3_generic.c')
0 files changed, 0 insertions, 0 deletions